pythondaily | Education

Telegram-канал pythondaily - Python Daily

1102

Daily Python News Question, Tips and Tricks, Best Practices on Python Programming Language Find more reddit channels over at @r_channels

Subscribe to a channel

Python Daily

[P] Docext: Open-Source, On-Prem Document Intelligence Powered by Vision-Language Models

We’re excited to open source `docext`, a zero-OCR, on-premises tool for extracting structured data from documents like invoices, passports, and more — no cloud, no external APIs, no OCR engines required.
 Powered entirely by **vision-language models (VLMs)**, `docext` understands documents visually and semantically to extract both field data and tables — directly from document images.
 **Run it fully on-prem** for complete data privacy and control. 

**Key Features:**

*  Custom & pre-built extraction templates
*  Table + field data extraction
*  Gradio-powered web interface
*  On-prem deployment with REST API
*  Multi-page document support
*  Confidence scores for extracted fields

Whether you're processing invoices, ID documents, or any form-heavy paperwork, `docext` helps you turn them into usable data in minutes.
 Try it out:

* `pip install docext` or launch via Docker
* Spin up the web UI with `python -m` [`docext.app.app`](https://github.com/nanonets/docext)
* Dive into the [Colab demo](https://github.com/nanonets/docext#colab-notebook)

 GitHub: [https://github.com/nanonets/docext](https://github.com/nanonets/docext)
 Questions? Feature requests? Open an issue or start a discussion!

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

Читать полностью…

Python Daily

How should model relationships be set?

I am having trouble deciding between two methods of creating my models for my Django app, this is an app where users can create, track, and manage workouts. The problem Is I'm not sure whether to extend the user model, and have each user have a workouts field, or if I should add an "owners" field to the workouts model, and manage the user's workouts that way. What would be considered best practice? What are the Pros and cons of each approach?

first approach:

class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
workouts = models.ManyToManyField(workouts.Workout, blank=True)

second approach:

class Workout(models.Model):
# rest of fields
owners = models.ManyToManyField(User)

/r/django
https://redd.it/1jto51z

Читать полностью…

Python Daily

What type database replication is better for django?

"What type of database replication strategy do you recommend for a Django application running in a multi-AZ AWS environment? I'm considering options like Master-Slave replication, Read-Write splitting, or AWS Aurora Multi-AZ. Which one offers the best scalability, high availability, and ease of maintenance for handling both read-heavy and write-heavy workloads?"


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

Читать полностью…

Python Daily

If you work on freelance platforms like UpWork how should we show it in our Resume/CV?

If you have done like 15+ full projects for someone on UpWork how would you show that in your Resume to apply on regular 9-5 full time jobs?

Would you list everything you did with company name and duration of project or just make a big list of things you did and put it under UpWork Experience Heading?

In Accounting role there was a person showing how a Resume should be structured and he showcased his work by clients like he just picked any 10 clients he worked with in his firm and create an heading for each one of them then in the heading he listed the work he did for the client like Bookkeeping, Financial Statements, Financial Statement Analysis, Tax Returns Filing etc.

So are we supposed to do the same in freelance field as well?

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

Читать полностью…

Python Daily

To advance in my accounting career I need better grip on data analysis.

I came across Pandas and NumPy and the functionality of it over Excel and Power Query is looking too good and powerful.

Is learning just these two fully would be enough for my accounting role progression or I need to look into some other things as well?

I am in the phase of changing my job and want to apply to a better role please give some directional guidance where to move next.

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

Читать полностью…

Python Daily

🚨 Testing Phase – Cloud Infrastructure Cost & Setup ( www.saketmanolkar.me )

/r/django
https://redd.it/1jtaqdr

Читать полностью…

Python Daily

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/1jt84zi

Читать полностью…

Python Daily

10 Common Django Deployment Mistakes (And How to Avoid Them)
https://medium.com/p/7ca2faac8f62

/r/django
https://redd.it/1jss48t

Читать полностью…

Python Daily

HOW IN WORLD IS THE EFFICIENT WAY TO connect a DATABASE to the flask app

Literally spent 6 hours for 7 days trying to find an efficient way. STILL cant get a clarity on how to connect the postgresql database to my flaskapp.
im using supabase free tier now but i want to know how connecting databases to flask app or django app is performed in professional way to make it scalable and most importantly not to look stupid when a professional see my project repo.
how do i learn this , im frustrated with overwhelming info in documentation and yt videos


/r/flask
https://redd.it/1jstzb7

Читать полностью…

Python Daily

Your experiences with asyncio, trio, and AnyIO in production?

I'm using asyncio with lots of create_task and queues. However, I'm becoming more and more frustrated with it. The main problem is that asyncio turns exceptions into deadlocks. When a coroutine errors out, it stops executing immediately but only propagates the exception once it's been awaited. Since the failed coroutine is no longer putting things into queues or taking them out, other coroutines lock up too. If you await one of these other coroutines first, your program will stop indefinitely with no indication of what went wrong. Of course, it's possible to ensure that exceptions propagate correctly in every scenario, but that requires a level of delicate bookkeeping that reminds me of manual memory management and long-range gotos.

I'm looking for alternatives, and the recent structured concurrency movement caught my interest. It turns out that it's even supported by the standard library since Python 3.11, via asyncio.TaskGroup. However, this StackOverflow answer as well as this newer one suggest that the standard library's structured concurrency differs from trio's and AnyIO's in a subtle but important way: cancellation is edge-triggered in the standard library, but level-triggered in trio and AnyIO. Looking into the topic some more, there's a blog post on vorpus.org that

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

Читать полностью…

Python Daily

Maintainer of Empyrebase (Python Firebase wrapper) – What features would you like to see?

# What My Project Does
Empyrebase is a Python wrapper for Firebase that simplifies access to core services like Realtime Database, Firestore, Authentication, and Cloud Storage. It provides a clean, modular interface with token auto-refresh, streaming support, and strong type hinting throughout.

# Target Audience
Primarily intended for developers building Python backends, CLI tools, or integrations that need Firebase connectivity. Suitable for production use, with growing adoption and a focus on stability and testability.

# Comparison
It’s built as a modern alternative to the abandoned pyrebase, with working support for Firestore (which pyrebase lacks), full type hints, token refresh support during streaming, modularity, and better structure for testing/mocking.

# Current Features

🔥 Realtime Database: full CRUD, streaming, filtering
📦 Firestore: read/write document access
🔐 Auth: signup, login, token refresh
📁 Cloud Storage: upload/download/delete files
🧪 Built-in support for mocking and testing
⏱ Token auto-refresh
🧱 Fully type-hinted and modular

# Looking for Feedback
I’m actively developing this and would love feedback from the community:

What features would you find most useful?
Are there any Firebase capabilities you'd want added?
Any pain points with similar wrappers you’ve used before?

Suggestions welcome here or on GitHub. Thanks in advance!

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

Читать полностью…

Python Daily

Loadouts for Genshin Impact v0.1.7 is OUT NOW with support for Genshin Impact v5.5 Phase 1

# About

This is a desktop application that allows travelers to manage their custom equipment of artifacts and weapons for playable characters and makes it convenient for travelers to calculate the associated statistics based on their equipment using the semantic understanding of how the gameplay works. Travelers can create their bespoke loadouts consisting of characters, artifacts and weapons and share them with their fellow travelers. Supported file formats include a human-readable Yet Another Markup Language (YAML) serialization format and a JSON-based Genshin Open Object Definition (GOOD) serialization format.

This project is currently in its beta phase and we are committed to delivering a quality experience with every release we make. If you are excited about the direction of this project and want to contribute to the efforts, we would greatly appreciate it if you help us boost the project visibility by starring the project repository, address the releases by reporting the experienced errors, choose the direction by proposing the intended features, enhance the usability by documenting the project repository, improve the codebase by opening the pull requests and finally, persist our efforts by sponsoring the development members.

# Technologies

Pydantic
Pytesseract
PySide6
Pillow

# Updates

Loadouts for Genshin Impact v0.1.7 is OUT NOW with the addition of support for recently released artifacts like Long Night's Oath and Finale of

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

Читать полностью…

Python Daily

I'm thrilled to announce the realease of Flask Quickstart Generator version 1.1.3!

pypi => https://pypi.org/project/flask-quickstart-generator/

github =>https://github.com/Kennarttechl/flask_quickstart_generator.git

https://redd.it/1jso9w3
@pythondaily

Читать полностью…

Python Daily

Solved Django Imports not working

I've been working with Django for the past three years, and I recently discovered the reason why VS Code sometimes shows yellow warnings saying that packages like Django aren't imported—even though all the necessary packages are already installed.

This usually happens when your code editor is using a different Python version than the one your project is set up with. If you're using a virtual environment, make sure to select the correct Python interpreter associated with that environment. Once you do that, the issue should be resolved.

/r/djangolearning
https://redd.it/1jsgha4

Читать полностью…

Python Daily

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/1jshakh

Читать полностью…

Python Daily

Mastering Code-First Database Deployments with Flask and SQLAlchemy
https://www.deployhq.com/blog/mastering-code-first-database-deployments-with-flask-and-sqlalchemy

/r/flask
https://redd.it/1jtr2k7

Читать полностью…

Python Daily

Is Payoneer good for payment integration with Django?

Stripe is not supported in my country

/r/django
https://redd.it/1jth65f

Читать полностью…

Python Daily

Can someone recommend django opensource user management and payment packages?

Hi, all,
I am learning django and want to use django as the framework to develop a web application, the application allows user to sign up, take a trial with a credit card and then after certain days(for example 7 days), start a monthly membership. subcribers can upload their files and my app(another seperator server) will process the files and return the results to the subcribers.

I am looking for the following packages, prefer to be opensource, so I can change and integrate them:
1. user management -- allow sign up with email, with credit card, membership management, subscriber can cancel the subcription, login and logout, forget password.
2. payment package, monthly auto charges the membership.

These two features are common packages, please recommend available opensource package, so there is no need to build it from scratch.

Thank you very much!

/r/django
https://redd.it/1jtehnj

Читать полностью…

Python Daily

Python - scrappage google map

Bonjour,

J'ai peu de connaissance en informatique, mais pour une mission à mon taff j'ai réussi à l'aide de Pythn et Sellenium à réaliser un script qui me permet de scrapper les données d'entreprises sur google map (de manière gratuite).

j'ai donc 2 question :

1) est-ce quelque chose de bien que j'ai réussi a faire ? et est-il possible de réaliser un business pour revendre des lisitng ?

2) Comment pourriez-vous me conseiller ?

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

Читать полностью…

Python Daily

Txtify: Local Whisper with Easy Deployment - Transcribe and Translate Audio and Video Effortlessly

Hey everyone,

I wanted to share Txtify, a project I've been working on. It's a free, open-source web application that transcribes and translates audio and video using AI models.

GitHub Repository: https://github.com/lkmeta/txtify
Online Demo: Txtify Website

# What My Project Does

Accurate AI Transcription and Translation: Uses Whisper from Hugging Face for solid accuracy in over 30 languages (need DeepL key for this).
Multiple Export Formats: .txt.pdf.srt.vtt, and .sbv.
Self-Hosted and Open-Source: You have full control of your data.
Docker-Friendly: Spin it up easily on any platform (arm+amd archs).

# Target Audience

Translators and Transcriptionists: Simplify transcription and translation tasks.
Content Creators and Educators: Generate subtitles or transcripts to improve accessibility.
Developers and Tinkerers: Extend Txtify or integrate it into your own workflows.
Privacy-Conscious Users: Host it yourself, so data stays on your servers.

# Comparison

Unlike Paid Services: Txtify is open-source and free—no subscriptions.
Full Control: Since you run it, you decide how and where it’s hosted.
Advanced AI Models: Powered by Whisper for accurate transcriptions and translations.
Easy Deployment: Docker container includes everything you need, with a “dev” branch that strips out extra libraries (like Poetry) for a smaller image for AMD/Unraid..

# Feedback Welcome

I’d love to hear what you think, especially if you try it on AMD hardware or Unraid. If you have any

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

Читать полностью…

Python Daily

Bootstrapping Python projects with copier

TLDR: I used copier to create a python project template that includes logic to deploy the project to GitHub

I wrote a blog post about how I used copier to create a Python project template. Not only does it create a new project, it also deploys the project to GitHub automatically and builds a docs page for the project on GitHub pages.

Read about it here: https://blog.dusktreader.dev/2025/04/06/bootstrapping-python-projects-with-copier/

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

Читать полностью…

Python Daily

How should I price a simple Django web app project for a small business client?

Hi everyone,

I'm new to freelancing and looking to start building web apps with Django, but I have no idea how to charge clients for projects like this.

I recently got a client — a small business in the USA making between $5–10 million per year (20 employees). They have no in-house IT staff and want to hire me to develop a web-based upload service for their customers. I would also be responsible for ongoing administration for that Django app.
I’m unsure how to price this kind of project.

Here are the core requirements they mentioned:

* Users should be able to create accounts and log in
* They should be able to upload files, view/download/delete them
* Each user is limited to 10 files and 1GB of total storage
* The state of the file can be tracked by the user and edited by the admin ("in progress", "open state" or "closed").
* There needs to be a custom and simple admin dashboard (not Django admin) for managing users and files (view users, download/delete their files, delete users)

I’ve asked around, and opinions on pricing vary wildly. Some say I should charge $30k (which feels way too high to me), while others suggest $4k (which seems too

/r/django
https://redd.it/1jszzsd

Читать полностью…

Python Daily

[R] Image classification by evolving bytecode
https://zyme.dev/blog/1_image_classification_by_evolving_bytecode

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

Читать полностью…

Python Daily

Flask sessions are NOT persisting despite trying to make them do so

from flask import Flask, request, jsonify, session, rendertemplate
from flask
cors import CORS, crossorigin # Import CORS
from datetime import datetime
import pymysql
import bcrypt
from datetime import timedelta
app = Flask(name)
app.secret
key = 'supersecretkeythatyouwillneverguess'
CORS(app, supportscredentials=True)  # Enable Cross-Origin Resource Sharing (CORS)
app.config['SESSION
COOKIESAMESITE'] = 'Lax'  # or 'Strict' if you want stricter rules
app.config['SESSION
COOKIESECURE'] = False
# Make the session permanent to persist across requests
app.permanent
sessionlifetime = timedelta(days=7)  # For example, session lasts 7 days
   
@app.route('
/login', methods=['POST'])
def login():
    try:
        # Extract data from the incoming JSON request
        data = request.get
json()
        print(f"given data: {data}")
        username = data'username'
        password = data'password'

   

/r/flask
https://redd.it/1jsvoaz

Читать полностью…

Python Daily

Looking for a Hosting Provider for Flask App – Unlimited Bandwidth, Low Cost

Hey folks,

I’m looking for recommendations on hosting a lightweight Flask app. Unlimited bandwidth is a must.

Here are my main requirements:

Support for Flask (Python backend)

Unlimited or high bandwidth (ideally no hard limits)

Low cost – I’m on a tight budget


Not looking for anything too fancy — just something reliable and affordable where I won’t get throttled or hit with surprise charges if usage increases.

/r/flask
https://redd.it/1jss1vw

Читать полностью…

Python Daily

Memo - Manage your Apple Notes and Reminders from the terminal

Hello everyone!

This is my first serious project, so please be kind 😄

The project is still in beta, and currently only supports Apple Notes — Apple Reminders integration is coming later. There’s still a lot of work ahead, but I wanted to share the first beta to get some feedback and test it out in the wild.

You can find the project here: https://github.com/antoniorodr/memo

I’d be more than grateful for any feedback, suggestions, or contributions. Thank you so much!

What My Project Does?

memo is a simple command-line interface (CLI) tool for managing your Apple Notes (and eventually Apple Reminders). It’s written in Python and aims to offer a fast, keyboard-driven way to create, search, and organize notes straight from your terminal.

Target Audience

Everyone who works primarily from the terminal and doesn’t want to switch to GUI apps just to jot down a quick note, organize thoughts, or check their Apple Notes. If you love the keyboard, minimalism, and staying in the flow — this tool is for you.

How It’s Different?

Unlike other note-taking tools or wrappers around Apple Notes, memo is built specifically for terminal-first users who want tight, native integration with macOS without relying on sync services or third-party platforms. It uses Python to directly access the native Notes database on your

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

Читать полностью…

Python Daily

I'm thrilled to announce the realease of Flask Quickstart Generator version 1.1.3!


pypi => https://pypi.org/project/flask-quickstart-generator/

github =>https://github.com/Kennarttechl/flaskquickstartgenerator.git

\- What's New in v1.1.3

\- Built-in Admin Dashboard

\- User Authentication System

\- Profile & Account Management

\- User Registration with Role Assignment

\- Comprehensive Error Handling Pages

\- Maintenance Mode (503)

\- Flash Messaging for Rate Limits

\- Session Timeout Auto Logout

\- Responsive Design

\- Theme Customization

\- Automatic DB Migration Initialization

\- Debug Logging Setup

\- Color-Coded Terminal Logs

/r/flask
https://redd.it/1jsobcp

Читать полностью…

Python Daily

I used to have a friend. Then we talked about Django. Also I made a Django + HTMX Tutorial Series for Beginners and Nonbelievers

So like the title says, she insisted Django was just a backend framework and definitely not a fullstack framework. I disagreed. Strongly.

Because with Django + HTMX, you can absolutely build full dynamic websites without touching React or Vue. Add some CSS or a UI lib, and boom: a powerful site with a database, Django admin, and all the features you want.

She refused to believe me. We needed an arbitrator. I suggested ChatGPT because I really thought it would prove that I was right.

It did not.

ChatGPT said “Django is a backend framework.” 

I got so mad!

I showed my friend websites I had built entirely with Django. She inspected them then  said "Yeah these are like so nice, but like I totally bet they were hell to build..." Then she called me a masochistic psychopath! 

I got even more mad.

I canceled all my plans, sacrificed more sleep than I would ever admit to my therapist, and started working on a coding series; determined to show my former friend, the world, and ChatGPT that Django, with just a touch of HTMX, is an overpowered, undefeated framework. Perhaps even… the one to rule them all.

Okay, I am sorry about the wall of text; I have

/r/django
https://redd.it/1js10gx

Читать полностью…

Python Daily

N Llama 4 release

Llama4 ELO score vs cost


https://www.llama.com/

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

Читать полностью…

Python Daily

Orpheus: YouTube Music Downloader and Synchronizer

Hey everyone! long history short I move on to YouTube Music a few months ago and decided to create this little script to download and synchronize all my library, so I can have the same music on my offline players (I have an iPod and Fiio M6). Made this for myself but hope it helps someone else. 

# What My Project Does

This script connects to your YouTube Music account and show you all the playlists you have so you can select one or more to download. The script creates an `m3u8` playlist file with all the tracks and also handle deleted tracks on upstream (if you delete a track in YT Music, the script will remove that track from you local storage and local playlist as well)

# Target Audience

This project is meant for everyone who loves using offline music players like iPods or Daps and like to have the same media in all the platforms on a easy way

# Comparison

This is a simple and light weight CLI app to manage your YouTube Music Library including capabilities to inject metadata to the downloaded tracks and handle upstream track deletion on sync





https://github.com/norbeyandresg/orpheus

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

Читать полностью…
Subscribe to a channel