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
Ascii Video Player

Hello People!
A few months ago, I built an ASCII video player that converts any video into an ASCII art version (with audio support). Back then, I didn’t have the confidence to share it, but now I’ve decided to put it out there!

What My Project Does

ASCII-Flix lets you watch videos directly in your terminal by converting frames into ASCII characters, creating a retro, text-based viewing experience. It supports 2 modes for different ASCII rendering styles and plays the original audio alongside the video.

I used OpenCV, python-curses, and Pygame(for audio support) .

Target Audience:

This project is for anyone who enjoys creative terminal-based projects, ASCII art enthusiasts, and people who like experimenting with unconventional ways of watching videos. If you’re into tech nostalgia, retro computing aesthetics, or just want to try something fun in your terminal, you’ll probably enjoy this!

Comparison:

This was inspired by ASCII Theatre, which allows you to watch movies in ASCII art format in the terminal. However, ASCII Theatre is a more refined version of this concept. ASCII-Flix, on the other hand, is something I made for fun—it’s a lighthearted experiment that brings a unique way to experience videos in ASCII form.

How to use it:
1. pip install ascii-flix
2. Type the command ascii-flix on your

/r/Python
https://redd.it/1j96mku
Need help with authentication

I am currently working on a project with django rest api and react js. I am confused in selecting a proper authentication method. It's a small internal web based app that would only be used within the company and targeting less than 60 users.
Should I go for jwt based authentication or try to implement session based authentication. Even though I have experience in the backend Development, I am used to code in jwt based authentication since we had a react native based app.
Does jwt have any security issues?
If session authentication is better how can I make it work with react js. I remember trying this few years back and cookies were not working when on different domains. I am planning to dockerize entire thing. Will the session work properly then?

Nb: I have been working on spring boot project for few years. My first few years was with django. Returning to django now.

/r/django
https://redd.it/1j93kwy
MVP codeStructure suggestion for CLOUDWISE(my multiple cloud APP)

Starting a 15-day MVP to manage AWS resources via natural language. Any tips for structuring a Flask project with multiple cloud provider integrations?

/r/flask
https://redd.it/1j989y5
LambdaLabs: Create HTTP routes, lambdas and databases in runtime.

What My Project Does:
LambdaLabs is a small-scale, hobby and proof-of-concept project that enables dynamic creation of routes, serverless lambdas, and databases. It runs over FastAPI with almost no performance overhead.

Target Audience:
Currently this project is just a toy / hobby project for getting more into python.

The goal with this project was to build a small-scale, lightweight application that allows the same power as FastAPI without introducing overhead usually associated with these kind of applications.


https://github.com/joexbayer/LambdaLabs

/r/Python
https://redd.it/1j9fqu1
We launched serverless hosting option for Flask apps

Hey r/flask ,

I’ve been deploying Flask and Django apps for years, and one thing that always frustrated me is the cost—especially for small projects that don’t get much traffic.

# The problem:

Paying for idle time – Most hosting providers charge 24/7, even if your app is mostly idle.
Multiple apps, multiple bills – Want to run a few small services? You’ll likely pay for each one separately, even if they barely get used.

I wanted a more efficient way to host Flask apps, so I built Leapcell—a serverless option that deploys instantly, gives you a URL, and only charges for actual usage (no idle costs).

If you’ve struggled with the cost of Python hosting, I’d love to hear your feedback!

Try Leapcell: **https://leapcell.io/**

/r/flask
https://redd.it/1j9fhhk
13 Months into Django - Built a Boilerplate to Share

I started learning Django 13 months ago and I really enjoy it. I've been building web apps and improving my skills ever since.

The more I built, the more I noticed setup was eating my time: auth, payments, same old grind.

So I put together a little boilerplate to skip the hassle - Django with HTMX, Tailwind + Kutty, Stripe, Wagtail, Django-Allauth all ready in 15 minutes.

It’s been a time-saver for me, and a couple friends didn’t hate it. Figured I’d share with the community that got me started.

Here's the repo if you're curious

/r/django
https://redd.it/1j9jyc4
For Hire Full Remote Software engineer with 6+ years of experience

I’m a Software Engineer with over 6 years of experience - including YC backed startups as founding engineer - building scalable systems, crafting high-performance backends, LLM based features and delivering impactful AI/ML-driven solutions.

I've worked on everything from scaling products to millions of users at startups to optimizing workflows in enterprise environments.

Open to consulting gigs and full time roles.

Tech Stack

Languages — Python, JavaScript, Typescript

Frameworks & Packages — Django, React

Datastores & Caches — PostgreSQL, Redis, RabbitMQ, Kafka, DynamoDB

Deployment Tools — Docker, Docker Compose

Cloud providers — AWS, GCP

Feel free to comment or DM.

/r/django
https://redd.it/1j9q4cs
ZipNN: High-Speed Compression for AI Models

📌 **Repo:** [GitHub - zipnn/zipnn](https://github.com/zipnn/zipnn)

# 📌 What My Project Does

ZipNN is a compression library designed for **AI models, embeddings, KV-cache, gradients, and optimizers**. It enables storage savings and **fast decompression on the fly**—directly on the CPU.

* **Decompression speed**: Up to **80GB/s**
* **Compression speed**: Up to **13GB/s**
* Supports **vLLM & Safetensors** for seamless integration

# 🎯 Target Audience

* **AI researchers & engineers** working with **large models**
* **Cloud AI users** (e.g., Hugging Face, object storage users) looking to optimize **storage and bandwidth**
* **Developers handling large-scale machine learning workloads**

# 🔥 Key Features

* **High-speed compression & decompression**
* **Safetensors plugin** for easy integration with vLLM:pythonCopyEditfrom zipnn import zipnn\_safetensors zipnn\_safetensors()
* **Compression savings**:
* **BF16**: 33% reduction
* **FP32**: 17% reduction
* **FP8 (mixed precision)**: 18-24% reduction

# 📈 Benchmarks

* **Decompression speed:** 80GB/s
* **Compression speed:** 13GB/s

# Why Use ZipNN?

* **Faster uploads & downloads** (for cloud users)
* **Lower egress costs**
* **Reduced storage costs**

# 🔗 How to Get Started

* **Examples:** [GitHub - ZipNN Examples](https://github.com/zipnn/zipnn/tree/main/examples)
* **Docker:** [ZipNN on DockerHub](https://hub.docker.com/r/zipnn/vllm-openai)

ZipNN is seeing **200+ daily downloads on PyPI**—we’d love your feedback! 🚀

/r/Python
https://redd.it/1j9hype
UV or PyEnv for student python teaching / python installs (linux)

I teach python across a number of courses (primarily on linux) from 1st year just learning to program to MSc Level Machine learning.

For the last few years I have used pyenv to manage the python versions the students are using, either as a pyenv global for a specific version of python for the 1st years. To using pyenv for anaconda install for the MSc students.

I have not really used virtual envs with the students as it adds a lot of complexity to the students learning and they tend not te be very good at tidying up etc.

I'm thinking of moving to uv but as it doesn't quite work like pyenv I'm not sure how to manage the students python installs.

My initial idea is to write a script to install uv and then install the required python version and then install the required default packages (numpy etc etc) and generate a default root / home level venv and make this transparent to the students so basically when they login they are in a venv with everything they need.

Pros to this is the students just run python and it works which for the 1st years is a big win.

In

/r/Python
https://redd.it/1j9g0ii
Gemma 3 released: beats Deepseek v3 in the Arena, while using 1 GPU instead of 32 N

Chatbot Arena Elo Score


https://blog.google/technology/developers/gemma-3/

/r/MachineLearning
https://redd.it/1j9npsl
Need help with authentication

I am currently working on a project with django rest api and react js. I am confused in selecting a proper authentication method. It's a small internal web based app that would only be used within the company and targeting less than 60 users.
Should I go for jwt based authentication or try to implement session based authentication. Even though I have experience in the backend Development, I am used to code in jwt based authentication since we had a react native based app.
Does jwt have any security issues?
If session authentication is better how can I make it work with react js. I remember trying this few years back and cookies were not working when on different domains. I am planning to dockerize entire thing. Will the session work properly then?

Nb: I have been working on spring boot project for few years. My first few years was with django. Returning to django now.

/r/djangolearning
https://redd.it/1j93lz7
What's your best use AI code assistant?

I'm currently researching AI code assistants. As I use VSCode, and Github Copilot's free version I can switch among the models GPT4o, Gemini 2.0-flash, Claude 3.5 sonnet, or o3-mini but I've heard other developers using Cursor, PyCharm (With AI assistant), or Trae (With DeepSeek). Since I consider myself an intermediate Django developer I would love to ask to experienced devs overview while using an assistant if it's accurate in code analysis and code generation, and if it has been useful while creating new features that require broad Django knowledge and third-party apps

/r/django
https://redd.it/1j9se9o
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/1j9yry8
Busy writing a Django React ssr app

I'm currently writing a Django app for where I can use react components inside my Django templates using Django tags. I created it as I hated the idea of using 2 servers, nextjs AND Django, where Django is light-years ahead and then dealing with silly nextjs methodologies.

It truly streamlined my development giving me smooth react SSR meaning better vital scores plus I get to manage components in a Django way, it forced me to write cleaner reusable react components. That and people often get lost in on nextjs as they would naturally try to force business logic in places where they shouldn't belong. And you are finally forced to write extra API endpoints for silly get requests on trivial things from Django to nextjs.I did a trial run in wagtail as well which gives you crazy control CMS style.

If anyone is interested I'd be happy to open-source as for now it is only part of my project i am working on, if so we can collaborate on making it even better but this is what it looks like currently when you use it in Django templates.

Arguments include.

1. Component Name

2. Ssr - should the component render server side?

3. Ssp - server

/r/django
https://redd.it/1ja4cf4
Spotify Api Recommender System

Hi guys,
Lately spotify's recommendations have been going from bad to worse imo. I have been thinking to build a better recommender system on top of the spotify api. I hope to find some help in the sub regarding some techniques and some starter idea to go by.
I'm very new to building recommender systems tbh. Thanks in advance for your help.

/r/Python
https://redd.it/1ja6glq
Beginner Question regarding Flask-Login's loginrequired decorator

So I want to create a route where the user has to be logged in to view the contents of a post.

Normally you would write the @ login\
required decorator before the function definition.

But I want the authors to be able to make their posts viewable to anyone even if they are not logged in.

Currently i use current_user.is_authenticated and if the user is anonymous i use the redirect() function to manually redirect the user to the login. My question was if there is a better way to do it with the decorator like you normally do

/r/flask
https://redd.it/1j9r1qt
A python program that Searches, Plays Music from YouTube Directly

music-cli is a lightweight, terminal-based music player designed for users who prefer a minimal, command-line approach to listening to music. It allows you to play and download YouTube videos directly from the terminal, with support for mpv, VLC, or even terminal-based playback.

Now, I know this isn't some huge, super-polished project like you guys usually build here, but it's actually quite good.

What music-cli does

• Play music from YouTube or your local library directly from the terminal
• Search for songs, enter a query, get the top 5 YouTube results, and play them instantly
• Choose your player—play directly in the terminal or open in VLC/mpv
• Download tracks as MP3 files effortlessly
• Library management for your downloaded songs
• Playback history to keep track of what you've listened to

Target Audience

This project is perfect for Linux users, terminal enthusiasts, and those who prefer lightweight, no-nonsense music solutions without relying on resource-heavy graphical apps.

How it differs from alternatives

Unlike traditional music streaming services, music-cli doesn't require a GUI or a dedicated online music player. It’s a fast, minimal, and customizable alternative, offering direct control over playback and downloads right from the terminal.

GitHub Repo: https://github.com/lamsal27/music-cli

Any feedback, suggestions, or contributions are welcome.



/r/Python
https://redd.it/1ja8m8t
Will you use a RAG library?

Hi there peeps,

I built a sophisticated RAG system based on local first principles - using pgvector as a backend.

I already extracted out of this system the text-extraction logic, which I published as Kreuzberg (see: https://github.com/Goldziher/kreuzberg). My reasoning was that this is not directly coupled to my business case (https://grantflow.ai) and it could be an open source library. But the core of the system I developed is also, with some small adjustments, generic.

I am considering publishing it as a library, but I am not sure people will actually use this. That's why I'm posting - do you think there is a place for such a library? Would you consider using it? What would be important for you?

Please lemme know. I don't want to do this work if it's just gonna be me using it in the end.

/r/Python
https://redd.it/1ja5mlc
Selenium time.sleep vs implicitlywait

Hello, im looking for understanding of time.sleep vs implicitly\
wait.

I was attempting to submit a google form and when using implicitly_wait I was getting an error saying element not interactable.

I changed it to time.sleep and now it works. What gives?

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