Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
Hi guys! Today I am releasing my first project and wanted some reviews on it.

What My Project Does:

My project is a simple but useful life manager, some of the things that you can do on it are:

ADD TASKS: You can add some task with a time limit and coin reward, ex: "Study for the finals, 2 days, 50 coins".

CREATE REWARDS: Also, you can create buyable rewards in the shop, example: "Watch a movie, cost: 40 coins".

KEEP TRACK OF YOUR PRODUCTIVITY: The system automatically keep track of the amount of tasks completed by day and plot them at a graph.

Target Audience:

Its meant for anyone that struggles with procrastination and productivity.

Comparison:

I wanted to create my own to make it as simple as possible to use, at the same time of maintaing the important features, tasks tracking and a clear UI


If you have some suggestion I would love to hear it and I really hope that this project helps someone out there.

So, if you want to take a look at it, its in my github at this link: https://github.com/Gabriel-Dalmolin/life\_manager

/r/Python
https://redd.it/1hkvb0z
Athens Greece backend/frontend devs

Any Django devs on here based in Athens, Greece? I'm at a small startup, Django/Vue tech stack, trying to decide where to build out our engineering team (Warsaw vs Athens).

Anyone I could take for lunch in the new year to get some scuttlebutt on the dev market in Athens?

Looking for insight on:

1. Quality / depth of the talent market - are the best people still here or most emigrated in the crisis?
2. Where Devs look for jobs
3. Who are the local employers known for having the best talent
4. Typical salaries for top people that love writing code
5. Popular events / meetups / conferences

/r/django
https://redd.it/1hklfqu
It took me way longer than I'd like to admit to realize how crucial setting up CustomUser is before the first migration.

When I built my first solo Django project, one of the biggest headaches I ran into—and the first thing that made me cry into my coffee—was thinking I had set up the custom user model correctly, only to be hit with a bunch of errors. After some confusion, I realized that since I’d already made migrations, my only choices were to refactor my database or delete it and start over. It was extra terrible because I thought I was done with the project, but failing to set up the custom user model properly ended up costing me another four hours of work. It really made me panic and feel like my whole project was doomed.

Recently I’ve been thinking about what beginners might need to help them learn Django in the smoothest and fastest way possible, and felt that helping them avoid this mistake could be really helpful. So I made a YT video where I basically beg people to set up a custom user and quickly show them how - as it really just takes seconds.


For anyone else who’s had a similar experience, what was your "Django nightmare" moment? Any tips you’d give to those just starting out?

/r/django
https://redd.it/1hk18b7
Tuesday Daily Thread: Advanced questions

# Weekly Wednesday Thread: Advanced Questions 🐍

Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.

## How it Works:

1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.

## Guidelines:

* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.

## Recommended Resources:

* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.

## Example Questions:

1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the

/r/Python
https://redd.it/1hl0y7q
A smart dollhouse that understands natural language commands and uses MicroPython, REST, LLMs

What My Project Does: I created a smart dollhouse that can understand commands in any language and control IoT devices through natural conversation. Using a Raspberry Pi Pico W running MicroPython, I implemented a REST API server that controls LEDs, motors, and sensors. The system uses LLMs to translate natural language commands (in any language!) into API calls. For example, you can say "turn on the yellow LED" in English, "выключи желтый led" in Russian, or "Apaga la led amarilla" in Spanish, and the system will understand and execute the command.

Target Audience: This is primarily an educational/demonstration project aimed at:

Python developers interested in IoT and LLMs
Makers and hobbyists looking to experiment with natural language interfaces
Anyone learning about REST APIs and microcontrollers
Students and educators exploring practical applications of LLMs

Comparison: While there are many IoT projects using voice assistants like Alexa (which I started with), my approach differs in several ways:

1. Language Flexibility: Unlike Alexa, which requires exact phrases, this system understands natural language in any language
2. Lightweight Implementation: Uses Microdot instead of Flask, making it suitable for microcontrollers
3. HATEOAS Implementation: Implements proper REST API design principles for better discoverability
4. Open Architecture: Unlike commercial solutions, this is fully

/r/Python
https://redd.it/1hkxil3
BeatPrints, create eye-catching, pinterest-style music posters effortlessly

Github | Documentation

Hey r/Python !

I just released a project called BeatPrints, a tool for creating pinterest-style music posters for your favorite tracks. It pulls data from Spotify, grabs lyrics using lrclib’s API, and lets you generate posters that really stand out.

# What My Project Does

BeatPrints makes it simple to generate beautiful music posters for free. It fetches songs or albums from Spotify and lets you create custom lyric-based or album-themed posters.

# Target Audience

This is for anyone who loves collecting song posters as keepsakes or wants unique music art to decorate their room. It's a very niche project, as you can see.

# Comparison

Unlike paid services like Etsy, BeatPrints is completely free, open-source :>

I made this tool so people can easily create music posters without spending money. Check it out and let me know what you think!

/r/Python
https://redd.it/1hl6eck
R Automating the Search for Artificial Life with Foundation Models

Happy to release this new work, Automating the Search for Artificial Life with Foundation Models, right before the holiday season!

Blog: https://sakana.ai/asal/

Paper: https://arxiv.org/abs/2412.17799

Website version of paper: https://pub.sakana.ai/asal/

GitHub: https://github.com/SakanaAI/asal

Abstract

With the recent Nobel Prize awarded for radical advances in protein discovery, foundation models (FMs) for exploring large combinatorial spaces promise to revolutionize many scientific fields. Artificial Life (ALife) has not yet integrated FMs, thus presenting a major opportunity for the field to alleviate the historical burden of relying chiefly on manual design and trial-and-error to discover the configurations of lifelike simulations. This paper presents, for the first time, a successful realization of this opportunity using vision-language FMs. The proposed approach, called Automated Search for Artificial Life (ASAL), (1) finds simulations that produce target phenomena, (2) discovers simulations that generate temporally open-ended novelty, and (3) illuminates an entire space of interestingly diverse simulations. Because of the generality of FMs, ASAL works effectively across a diverse range of ALife substrates including Boids, Particle Life, Game of Life, Lenia, and Neural Cellular Automata. A major result highlighting the potential of this technique is the discovery of previously unseen Lenia and Boids lifeforms, as well as cellular automata that are open-ended like Conway's Game of Life. Additionally,

/r/MachineLearning
https://redd.it/1hl4o42
Sec Bot: Configurable Discord Bot that notifies you of new filings

What my project does:

Discord Bot that monitors the SEC for new filings, and pushes it to the discord channel(s) of your choice.

Features:

Filter by submission type (e.g. form 3,4,5, 10-K, etc.)
Filter by company (e.g. Apple, META,...)

Target Audience:

People interested in finance, stocks, investing, who want a free (open-source) way to keep track of regulatory disclosures.

Comparison:

I'm not aware of other open source solutions. There is a free solution provided by CapEdge, but they limit how many companies / form types you can keep track of.


Links: GitHub

/r/Python
https://redd.it/1hktpqa
The Inner Workings of Python Dataclasses Explained

Ever wondered how those magical dataclass decorators work? Wonder no more! In my latest article, I explain the core concepts behind them and then create a simple version from scratch! Check it out!

https://jacobpadilla.com/articles/python-dataclass-internals


(reposting since I had to fix a small error in the article)

/r/Python
https://redd.it/1hl8qrf
Granian vs Daphne

I’m integrating channels into a new project. Previously I’ve used gunicorn with 8 uvicorn workers to run a single asgi app that deals with all http requests and websockets.

I’m wondering if there is an advantage to running a wsgi instance using gunicorn (or granian) for http and a separate asgi instance using Daphne (or uvicorn) solely for handling websockets.

Can anyone suggest which approach is better?

/r/django
https://redd.it/1hlaepi
where to revise python to start learning ai

i learned python 6 years ago and i want place where i can revise and start learning about ai after, i totally forgot python syntax but ive been programming using c/c++ for embedded systems. i need it free and fast paced

/r/Python
https://redd.it/1hlaot3
Looking for Feedback on My Portfolio

Hey everyone,

I’ve been putting together my portfolio as a junior developer and would love to get some feedback. I’m aiming to land a junior web developer role, ideally as a back-end developer.

Here’s the link to my portfolio: https://andersonportfolio.pythonanywhere.com/

Feel free to point out anything—whether it’s about structure, best practices, code quality, or any improvements you think I should make. I’m open to all kinds of feedback!

Thanks in advance for your time and help!

/r/django
https://redd.it/1hlc81t
Puppy: best friend for your 2025 python projects

TLDR: https://github.com/liquidcarbon/puppy helps you install and manage python projects, environments, and notebook kernels.

# What My Project Does

\- installs python and dependencies, in complete isolation from any existing python on your system
\- `pup add myenv pkg1 pkg2` uses uv to handle projects, packages and virtual environments; `pup list` shows what's already installed
\- `pup clone` and `pup sync` help build environments from external repos with `pyproject.toml` files
\- `import pup; pup.fetch("myenv")`  for reproducible, future-proof scripts and notebooks


Puppy works the same on Windows, Mac, Linux (tested with GitHub actions).

Get started (mix and match installer's query params to suit your needs):

curl -fsSL "https://pup-py-fetch.hf.space?python=3.12&pixi=jupyter&env1=duckdb,pandas" | bash

# Target Audience

Loosely defining 2 personas:

1. Getting Started with Python (or herding folks who are):
1. puppy is the easiest way to go from 0 to modern python - one-command installer that lets you specify python version, venvs to build, repos to clone - getting everyone from 0 to 1 in an easy and standardized way
2. if you're confused about virtual environments and notebook kernels, check out pup.fetch that lets you build and activate environments from jupyter or any other interactive shell
2. Competent - check out Multi-Puppy-Verse and Where

/r/Python
[https://redd.it/1hllr3j
Zero-knowledge encryption in Django

Hello,

I built a web app (rn local only) for professional (job/work related) purposes to help my friend as a marketer/ writer (he writes for different companies and manages that stuff on his laptop as a local machine). Now some of his friends want to try it out, and it will be too much work to help them run in their local server with a virtual environment. I also want to try and scale it out if it works.

I have another simple project in Django that helps manage funding, source of funding, etc., and other personal user data.


Now the issue is I want to make sure I as a super admin or admin, or the server owner (or as a developer) don't have access to any of the writings or work they have saved in that system or server.

How can I achieve that in Django?

I was thinking of using their username (only one username for each user) to generate a mnemonic for that user and encrypt and decrypt their data when they log in and access.

I do not know how blockchain works and I am a mid-level Django

/r/django
https://redd.it/1hlehkq
Wednesday Daily Thread: Beginner questions

# Weekly Thread: Beginner Questions 🐍

Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.

## How it Works:

1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.

## Guidelines:

This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).

## Recommended Resources:

If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.

## Example Questions:

1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?

Let's help each other learn Python! 🌟

/r/Python
https://redd.it/1hlpmma
Constructors: init, new, both, neither?

Hi all, I'm doing some research on what programmers believe is the class constructor in Python. I made a poll here: https://strawpoll.com/05ZdzVzdmn6 and would appreciate all responses, thanks!



/r/Python
https://redd.it/1hlrtm0