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
Django Recipe Managment Application

Hey 👋 folks I just relase a new version of my recipes managment app on github.
The new things are:
- Scrape recipe from any url with help of openai chat model
- Generate and scrape recipe by ingredients again with openai token
more is comming

Give a star 🌟 to follow for updates.
https://github.com/mikebgrep/fork.recipes

There is an API only if you want to use in your application 😉

https://github.com/mikebgrep/forkapi

/r/django
https://redd.it/1i4g6vw
Question about Django with postgres

i’m following a tutorial to learn django , I’m understanding everything but when it comes to the sqlite I’m a little bit confused.
. At uni i’ve worked with SQLServer and recently with Postgres so I’m confident in sql it self, I’ve designed databases , build scripts with the basic CRUD operations, triggers, procedures functions etc etc , in both Postgres and sqlserver.

But I’m failing to understand how we would integrate Postgres with Django, as the tutorial uses only SQLite.
How would that work with a previously database created in Postgres ? Would we create the models in resonance with the tables created on Postgres? And let’s say I need to get all the products in the table products to display it on a web page , would I still use the “Products.objects.all()” or somehow Django can import for example a View created on Postgres that displays all products?

Sorry if the question doesn’t make sense , but would really appreciate the help.

/r/django
https://redd.it/1i4kztn
Sunday Daily Thread: What's everyone working on this week?

# Weekly Thread: What's Everyone Working On This Week? 🛠️

Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!

## How it Works:

1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.

## Guidelines:

Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.

## Example Shares:

1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!

Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟

/r/Python
https://redd.it/1i4l38y
Feedback on book recommendation site

I'm working on a book recommendation site called www.smartbookfinder.com using Flask.

I come from a data science/engineering background, so this is my first foray into web development.

It started off because I wasn't happy with Goodreads' recommendations, and I thought I could build a chatgpt wrapper that would give better recommendations. But then, I got hooked on adding additional features.

The whole thing is on my GitHub. I have no idea about best practices for stuff like this so it's kind of a mess. Let me know what you think.

https://github.com/ferraijv/book_recommendation

/r/flask
https://redd.it/1i4c5hu
Helping new website developers to build their portfolio

We are looking for someone who is new and needs help in building a portfolio to get a job in the future. We are an E-commerce company present from 2 years so it will add immensely to make a strong portfolio, if you want to make your portfolio feel free to DM me.

/r/djangolearning
https://redd.it/1i1f2pf
D Self-Promotion Thread

Please post your personal projects, startups, product placements, collaboration needs, blogs etc.

Please mention the payment and pricing requirements for products and services.

Please do not post link shorteners, link aggregator websites , or auto-subscribe links.

--

Any abuse of trust will lead to bans.

Encourage others who create new posts for questions to post here instead!

Thread will stay alive until next one so keep posting after the date in the title.

--

Meta: This is an experiment. If the community doesnt like this, we will cancel it. This is to encourage those in the community to promote their work by not spamming the main threads.

/r/MachineLearning
https://redd.it/1i4oujz
I Made a VR Shooter in Python

I'm working on a VR shooter entirely written in Python. I'm essentially writing the engine from scratch too, but it's not that much code at the moment.

Video: [https://youtu.be/Pms4Ia6DREk](https://youtu.be/Pms4Ia6DREk)

Tech stack:

* PyOpenXR (OpenXR bindings for Python)
* GLFW (window management)
* ModernGL (modernized OpenGL bindings for Python)
* Pygame (dynamic 2D UI rendering; only used for the watch face for now)
* PyOpenAL (spatial audio)

Source Code:

[https://github.com/DaFluffyPotato/pyvr-example](https://github.com/DaFluffyPotato/pyvr-example)

I've just forked my code from the public repository to a private one where I'll start working on adding netcode for online multiplayer support (also purely written in Python). I've played 1,600 hours of Pavlov VR. lol

# What My Project Does

It's a demo VR shooter written entirely in Python. It's a game to be played (although it primarily exists as a functional baseline for my own projects and as a reference for others).

# Target Audience

Useful as a reference for anyone looking into VR gamedev with Python.

# Comparison

I'm not aware of any comparable open source VR example with Python. I had to fix a memory leak in PyOpenXR to get started in the first place (my PR was merged, so it's not an issue anymore), so there probably haven't been too many projects that have taken this route yet.




/r/Python
https://redd.it/1i4o1g2
Most common Python linter, formatter?

I've been asked to assist a group which is rewriting some of its ETL code from PHP to Python. When I was doing python, we used Black and pypy for formatting and linting.

Are these still good choices? What other tools might I suggest for this group? Are there any good Github CI/CD which might be useful?

And any good learning/training resources to recommend?

/r/Python
https://redd.it/1i4t28v
Flask and XML _ How and why to save data in xml format for coffee shop

I have completed Flask code for an online coffee shop. I would like to save some data in xml format. The project requires that makes use of xml. How can I do that for a coffee shop. My orders are currenly being saved in a sqlite database. What would be the reasons of saving data in xml format for an online shop.

Those who have done online shopping before, please help.

/r/flask
https://redd.it/1i4bj8t
uv ill like uv - My first blog post

https://zaloog.github.io/2025/01/19/uv.html

This year starting a blog and writing about more tech related topics besides just developing hobby projects is on my bucket list.

Since I still see a lot of people not knowing about uv, and I adopted it pretty much asap, I decided to write a bit about it and hope other feel it helpful and might also join the journey.

Have fun :)

/r/Python
https://redd.it/1i50f7i
Video Editing with Python for Subtitles

Hello everyone, I was looking for an open source video subtitle generator. something like this one:

https://www.captions.media/

I've tried moviepy but in my experiences it's not very useful. any other open source tool recommendations or python just not useful for this kind of tasks. Thanks!

/r/Python
https://redd.it/1i51o3d
OSS billing library based in SQL and Python

I just released the 0.1.0 of the project I’ve been working on called bframe. It’s a billing library that is built on top of duckdb and has a client written in python. The project is in active development and I’m looking for feedback!

Repository

Documentation


## What My Project Does

bframe connects to your database (or just files) and generates invoices, line items and the like based off of source data. The library doesn’t require a server and can be fully executed in process which makes it easy to run and test. bframe offers git like branching, time travel and extensive documentation making it a good fit for operators who want better control over their tools.


## Target Audience

bframe is a production application designed for developers and operators. The library supports subscriptions, usage based billing and more; meaning most software based businesses are a good fit.


## Comparison

The largest difference between bframe and alternatives is how we treat persistence. This library connects to an existing store (bring your own infra), while other solutions use their own storage. The approach bframe employs has all of the advantages of running your own infrastructure along with a few others: 

1. No server or internet connection is required which makes it

/r/Python
https://redd.it/1i53m5k
Adding Metadata-Driven User Defined Fields. Will This Work?

In my Loan Origination System project, I have various models with predefined default fields. When a given institution integrates its data, I'm cognizant that each different institution is likely to have its own user-defined fields that won't have a (key-value) match to the default fields.

I need to be able to allow system admins to make use of their user-defined fields on the front-end. Additionally, allowing the ability to create new user defined fields within the system, for data they may want stored in the application but not necessarily on their core. Ideally, I'd accomplish this without substantially changing the structure of each model and changes to the schemas.

I realize I could just add a single JSON field to each model. However, wouldn't I then be required to handle validation and field-types at the application level?

Instead, will something like this work? Are there better approaches?

from django.db import models
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType

FIELDSOURCECHOICES = (
    ('integration', 'Uploaded/Integrated'),
    ('internal', 'Admin/Customer-Created'),
)



/r/django
https://redd.it/1i52ktd
Send sign up confirmation emails via zoho

Hi everybody,


I am working on a webapplication and creating the sign up form.


I want to send an automated email to the user to confirm his email adress.


We are using Zoho as our email provider.


I cant find documentation from zoho on how to connect to the email. Can you provide some assistance?


Best

/r/django
https://redd.it/1i5e689
Monday Daily Thread: Project ideas!

# Weekly Thread: Project Ideas 💡

Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.

## How it Works:

1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.

## Guidelines:

* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.

# Example Submissions:

## Project Idea: Chatbot

**Difficulty**: Intermediate

**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar

**Description**: Create a chatbot that can answer FAQs for a website.

**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)

# Project Idea: Weather Dashboard

**Difficulty**: Beginner

**Tech Stack**: HTML, CSS, JavaScript, API

**Description**: Build a dashboard that displays real-time weather information using a weather API.

**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)

## Project Idea: File Organizer

**Difficulty**: Beginner

**Tech Stack**: Python, File I/O

**Description**: Create a script that organizes files in a directory into sub-folders based on file type.

**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)

Let's help each other grow. Happy

/r/Python
https://redd.it/1i5d1ag
I created a simple mailing program; pymailer

# What My Project Does

pymailer is a simple program the uses SMTP and IMAP to connect to your gmail account to send and fetch emails.

# Target Audience

No one in particular, I made this mainly because I need it for my other projects. I just thought it would be cool to share.

# Comparison

I'm sure there are many mailing programs written in python and other languages but I think mine is pretty simple and easy to understand.

https://github.com/cipherodev/pymailer

/r/Python
https://redd.it/1i5l8j5
Boosts AI LLMs For Multilingual And Multimodal Tasks

Distributed computing is revolutionizing AI by speeding up the training and deployment of language models, enhancing their ability to perform multilingual and multimodal tasks. This technology enables AI systems to process vast datasets, improving their accuracy and efficiency.

Learn more about how distributed computing boosts AI LLMs For Multilingual.

/r/Python
https://redd.it/1i5m9jd
My first steps with Playwright

In my previous company, I developed a batch job that tracked metrics across social media, such as Twitter, LinkedIn, Mastodon, Bluesky, Reddit, etc. Then I realized I could duplicate it for my own "persona". The problem is that some media don’t provide an HTTP API for the metrics I want.

I searched for a long time but found no API access for the metrics above. I scraped the metrics manually every morning for a long time and finally decided to automate this tedious task. Here’s what I learned.

https://blog.frankel.ch/first-steps-playwright/


/r/Python
https://redd.it/1i55qc9
MStock: The Tool I Built to Track Macy’s Restocks 🛍️

Hey everyone 👋



I wanted to share a personal project I made: MStock. I kept running into the same problem—I wanted multiple items from Macy’s that were out of stock, and I was tired of constantly checking for updates. So, I built this tool to notify me the moment something comes back in stock!



What My Project Does

MStock is a Python tool that:

• Monitors Macy’s Product Pages: Tracks multiple items at once.

• Sends Notifications: Alerts me via email or SMS (through iMessage on macOS).

• Provides Product Details: Like price, ratings, and reviews, so I don’t miss out on key info.

• Handles Failures Gracefully: Uses smart caching to keep product info even if a check fails.


Target Audience

If you frequently shop at Macy’s and hate missing out on restocks, MStock is perfect for you. It’s especially useful for anyone tracking multiple products or looking for a hands-off way to monitor stock status.



Why I Built It

There were a few items I really wanted, but they were sold out for weeks. I didn’t want to miss them when they came back, so I made MStock to handle the tracking for me. Now, I get a notification as soon as something is available again, and

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