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
How to "reverse engineer" your junior django developer job search.

/r/django
https://redd.it/1l8ph3g
Hi Guys! I know Django and started learning RestAPI . So what projects I can make with these two only. Any Playlist or GitHub Repo

Sams as title.

/r/djangolearning
https://redd.it/1l6lr1v
What version do you all use at work?

I'm about to switch jobs and have been required to use only python 3.9 for years in order to maintain consistency within my team. In my new role I'll responsible for leading the creation of our python based infrastructure. I never really know the best term for what I do, but let's say full-stack data analytics. So, the whole process from data collection, etl, through to analysis and reporting. I most often use pandas and duckdb in my pipelines. For folks who do stuff like that, what's your go to python version? Should I stick with 3.9?

P.S. I know I can use different versions as needed in my virtual environments, but I'd rather have a standard and note the exception where needed.

/r/Python
https://redd.it/1l8chj0
Project Generate Beautiful Chessboard Images from FEN Strings 🧠♟️

Hi everyone! I made a small Python library to generate beautiful, customizable chessboard images from FEN strings.


What is FEN string ?

FEN (Forsyth–Edwards Notation) is a standard way to describe a chess position using a short text string. It captures piece placement, turn, castling rights, en passant targets, and move counts — everything needed to recreate the exact state of a game.



🔗 GitHub: chessboard-image

pip install chessboard-image

# What My Project Does

Convert FEN to high-quality chessboard images
Support for white/black POV
Optional rank/file coordinates
Customizable themes (colors, fonts)

# Target Audience

Developers building chess tools
Content creators and educators
Anyone needing clean board images from FEN It's lightweight, offline-friendly, and great for side projects or integrations

# Comparison

python-chess supports FEN parsing and SVG rendering, but image customization is limited
Most web tools aren’t Python-native or offline-friendly
This fills a gap: a Python-native, customizable image generator for chessboards

Feedback and contributions are welcome! 🙌

/r/Python
https://redd.it/1l8hdwz
Should I really use React/Vue with Django instead of alpine js?

I've been using alpine js and I was happy with it. Let me cut to the chase

How it works now: I have a page where user creates an instance. An instance has a bunch of characteristics and foreign key to product (which has category and name itself) and all the fields are static - just stylized selects and inputs, but there is just a change event handler which saves any changes in session so that user could go back to editing

What I'm trying to do: with alpine I replaced two selects (where user chooses product category and product name) with a single button - "select a product" and after clicking a modal appears with options depending on the step - either category or name, once both category and name are selected a card with this product appears and a button turns into "change a product"

What's wrong: everything worked just fine until I started filling this mess with initial values from draft form, so that you need to combine django {% if %} with alpine x-if which turned into a horrible flickering mess

P.S I also have tried using Vue js alongside django with SFC component and i really love it, especially

/r/django
https://redd.it/1l8vc1s
Juvio - UV Kernel for Jupyter

Hi everyone,

I would like to share a small open-source project that brings uv-powered ephemeral environments to Jupyter. In short, whenever you start a notebook, an isolated venv is created with dependencies stored directly within the notebook itself (PEP 723).

🔗 GitHub: https://github.com/OKUA1/juvio (MIT License)

What it does

💡 Inline Dependency Management

Install packages right from the notebook:

%juvio install numpy pandas

Dependencies are saved directly in the notebook as metadata (PEP 723-style), like:

# /// script
# requires-python = "==3.10.17"
# dependencies =
# "numpy==2.2.5",
# "pandas==2.2.3"
#
# ///

⚙️ Automatic Environment Setup

When the notebook is opened, Juvio installs the dependencies automatically in an ephemeral virtual environment (using uv), ensuring that the notebook runs with the correct versions of the packages and Python.

📁 Git-Friendly Format

Notebooks are converted on the fly to a script-style format using # %% markers, making diffs and version control painless:

# %%
%juvio install numpy
# %%
import numpy as np
# %%
arr = np.array(1, 2, 3)
print(arr)


/r/Python
https://redd.it/1l8xwsc
Host your flask app on AWS for free

Just wanted to share another method of hosting your app in a serverless manner using AWS, best part is for most projects it's free as it's well covered by the free tier's generous monthly million requests

We use zappa to package our app and push to Aws with an API gateway that is integrated with our flask packaged as a lambda function. Any API calls will then be routed by zappa's handler to appropriate Flask app's endpoints

Created a YouTube tutorial on this today: https://youtu.be/6Bk-hpI1mNA?si=GqrzhiduAwSKJjAf

Appreciate any feedback, thanks!

/r/flask
https://redd.it/1l8zdgg
Is Python really important for cybersecurity?

I've seen some people saying that Python isn't really necessary to get started in the field, but I began learning it specifically because I plan to move into cybersecurity in the future. I’d love to hear from people already working in the area — how much does Python actually matter?

/r/Python
https://redd.it/1l95skp
Building Dynamic Django Forms

Hi guys, whats your proven strategy (and/ or library) for building dynamic django forms that can span multiple pages with save point.

/r/django
https://redd.it/1l8vonr
How to deploy my flask web app

I used Google AI Studio to create a web-based customer management and payment collection dashboard, primarily designed for cable operators. It was built using Flask (Python) and Bootstrap (HTML/CSS). This application helps manage customers, track payments, generate reports, and provide actionable business insights. The website looks good and is useful to me, but I want to deploy it on the internet. I have watched many tutorials on YouTube, but none of them worked for me. I tried platforms like Vercel, Render, Railway, and more, but they gave me various errors. I am a beginner and not very familiar with the code, so can you please help me? I will provide the GitHub source code link.

/r/flask
https://redd.it/1l8uirt
What was your first Django application?

Mine was accounting application for my trader character in EVE Online.

It read my buy/sell transactions from the official API, parsed the data with xml.sax, and calculated the profit margin per item. Also, it used special html tags for EVE's in-game browser.

/r/django
https://redd.it/1l8nr9n
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!

# Weekly Thread: Professional Use, Jobs, and Education 🏢

Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.

---

## How it Works:

1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.

---

## Guidelines:

- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.

---

## Example Topics:

1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?

---

Let's help each other grow in our careers and education. Happy discussing! 🌟

/r/Python
https://redd.it/1l987wu
Deploying to vercel

How can i deploy a flask app to vercel with these requirements:

flask==3.0.2
flask-cors==4.0.0
scikit-learn==1.4.1.post1
numpy==1.26.4
xgboost==2.0.3
pandas==2.2.0
tensorflow-cpu==2.16.1

I am getting a maximum size of 300mb file limit

Note: I am using python 3.11 in my local flask app

/r/flask
https://redd.it/1l9d6xi
How can I access currentuser outside of an route.

Hello, im trying to make a polling mechanism, so im making a background process using "ThreadPoolExecutor", I added a status boolean to my users table so they will only be able to send 1 request at time, but i´ve ran into a problem where I cant change the current\
user.status to False after the background process is over since its outside of an route.

def backgroundtranslation(filecontent, wmodel, transcription, model, pitch, speechrate, userid):
try:
srt
file = whispertranscribe(filecontent, wmodel, transcription)
audio = text
tospeech(srtfile, model, pitch, speechrate)
output = add
stream(audio, filecontent)

# Save as user
id.mp4
destination = os.path.join(CONTENTFOLDER, f"{userid}.mp4")
shutil.move(output, destination)

print(f"Translation complete: saved to {destination}")


/r/flask
https://redd.it/1l8uuq3
Mastering Modern Time Series Forecasting: A Python Guide to Statistical, ML & Deep Learning Methods

I’ve been working on a Python-focused book called Mastering Modern Time Series Forecasting — written to bridge the gap between theory and practice for time series modeling.

It covers a wide range of methods, from classical models like ARIMA, ETS, Theta, MSTL, TBATS to modern machine learning and deep learning techniques like CatBoost, LightGBM, Transformers, N-BEATS, and TFT.

The focus is on both fundamentals and practical implementation, using tools like statsforecastmlforecastneuralforecastscikit-learnstatsmodelsPyTorch, and Darts. Topics include handling messy time series data, feature engineering, evaluation, and deployment.

📘 The book is in early release (220+ pages) and growing fast.
📂 A companion GitHub repo is live and code will be added progressively:
🔗 GitHub Repo

I’m publishing the book on Gumroad and LeanPub — links will be in the comments if anyone’s interested.

Open to feedback or discussion — thanks for reading!

/r/Python
https://redd.it/1l9gdhu
What ever happened to "Zope"?!

This is just a question out of curiosity, but back in 1999 I had to work with Python and Zope, as time progressed, I noticed that Zope is hardly if ever mentioned anywhere. Is Zope still being used? Or has it kinda fallen into obscurity? Or has it evolved in to something else ?

/r/Python
https://redd.it/1l9furl
SimplePyQ - Queueing tasks in Python doesn't have to be complicated

Hey everybody!

I just wanted to share a small library I wrote for some internal tooling that I thought could be useful for the wider community, called SimplePyQ.

The motivation for this was to have something minimalistic and self-contained that could handle basic task queueing without any external dependencies (such as Airflow, Redis, RabbitMQ, Celery, etc) to minimize the time and effort to get that part of a project up and running, so that I could focus on the actual things that I needed.

There's a long list of potential improvements and new features this library could have, so I wanted to get some real feedback from users to see if it's worth spending the time. You can find more information and share your ideas on our GitHub.

Do you have any questions? Ask away!

TL;DR to keep the automod happy

# What My Project Does

It's a minimalistic task queueing library with minimal external dependencies.

# Target Audience

Any kind users, ideally suitable for fast "zero to value" projects.

# Comparison

Much simpler to set up and use compared to Celery. Even more minimalistic with less requirements than RQ.

/r/Python
https://redd.it/1l9frz7
History of time and date

Hi all
Would anyone be so kind to write some sort of code to get me the results of when the NQ and ES made the daily high or low. The date and time of when this happened. Have a good day
Thank you


/r/Python
https://redd.it/1l9ku4j
I built a fullstack solopreneur project template with free cloud hosting and detailed tutorials

Hey everyone,
I’ve been working on a fullstack template aimed at solo devs or indie hackers who want to build and ship something without spending money on infrastructure. I put a lot of effort into making sure everything works out of the box and included step-by-step guides so you can actually deploy it—even if you’ve never done it before.

What’s in it:

Detailed Tutorials & config template to eploy backend to Vercel and frontend to Cloudflare (both have free tiers)
Supabase for database and auth (also free tier)
Generate frontend client based on backend API
Dashboard with metrics and analytics
User management and role-based access control
Sign up / sign in with OAuth
Task management with full CRUD
Pre-configured dev setup with Docker and hot reload

it’s meant to be used as a quick project starter for app developed by a single person, It followed solid backend/frontend practices, used modern tools (React 19, TypeScript, Tailwind, OpenAPI, etc.), and tried to keep the architecture clean and easy to extend.

frontend is based on this great project called shadcn-admin (https://github.com/satnaing/shadcn-admin)

If you’re trying to build and deploy a real app with no cost, this could be interesting to you. Whether you’re making a SaaS,

/r/Python
https://redd.it/1l9q16q
P: I reimplemented all of frontier deep learning from scratch to help you learn

Hey friends, the world needs more serious AI researchers. Many AI/LLM beginners mentioned to me that they learn better from implementations than from papers/math, but existing open-source examples rarely go beyond basic nanoGPT-level demos.

To help bridge the gap, I spent the last two months full-time reimplementing and open-sourcing a self-contained implementation of most modern deep learning techniques from scratch. The result is beyond-nanoGPT, containing 20k+ lines of handcrafted, minimal, and extensively annotated PyTorch code for your educational pleasure.

It contains a clean, working implementation + demo of everything from KV caching to linear attention to diffusion Transformers to AlphaZero to even a minimal coding agent that can make end-to-end PRs autonomously.

I'd love feedback on how to make it more helpful for people interested in transitioning into deep learning research. I will continue to add features and maintain the repo for the foreseeable future. The roaring 2020s are a surreal time to be alive, and we need all hands on deck.

/r/MachineLearning
https://redd.it/1l9lb0c