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
Editorial System in Django?

Hello, I want to build a editorial system in my Django project with Roles (Author, Editor) and transition rules (switch from Draft to Published etc.). Do you have any suggestions for existing packages?

/r/djangolearning
https://redd.it/1p0d339
Pre-PEP: Rust for CPython

@emmatyping, @eclips4 propose introducing the Rust programming language to CPython. Rust will initially only be allowed for writing optional extension modules, but eventually will become a required dependency of CPython and allowed to be used throughout the CPython code base.

Discuss thread: https://discuss.python.org/t/pre-pep-rust-for-cpython/104906

/r/Python
https://redd.it/1p0e1yj
PY ImageMapper - HTML Image Map Generator

PY ImageMapper is a Windows desktop app for creating HTML image maps. Load an image, draw clickable areas (rectangles, circles, polygons), set properties (links, alt text, IDs, CSS classes, data attributes), and export HTML with <img> and <map><area> tags. It includes zoom/pan, grid/snap, color preferences, project save/load, and hover highlighting in the exported HTML.

https://github.com/non-npc/PY-ImageMapper/

/r/Python
https://redd.it/1p0jl23
PyCharm Fundraiser extended- ending TOMORROW November 19th

I just wanted to make a request that the Django Software Foundation's largest fundraiser of the year is tomorrow, and we are currently below goals.

It's the easiest charity in the world, because it's "forcing" a willing company to donate for you. You just buy their product (PyCharm Pro) and 100% of the cost you pay goes to the DSF.

https://www.jetbrains.com/pycharm/promo/support-django/?utm\_campaign=pycharm&utm\_content=django25&utm\_medium=referral&utm\_source=dsf-banner

If you are already a current PyCharm user but want to help another way, we take donations through our website: https://www.djangoproject.com/fundraising/ where if you want you can get a name and link on the donations page. Or on github https://github.com/sponsors/django where you can have it displayed there if you want. If your company is able to make a larger donation, I can help you talk to them about corporate sponsorship (application here: https://www.djangoproject.com/foundation/corporate-membership/join/ )

/r/django
https://redd.it/1p0epdx
cqrs file structure and business logic

Hi, first time posting here so please don't bite me.

Anyone using cqrs pattern in django? Like selectors for fetching and services for pushing?


I looked into HackSoftware's django style and Kraken's. They seem to be quite into the idea of separating pure retrieval and state change.


Then this question hit me: where do I put actual business logic that combine selectors and services?


Putting some module like usecases or steps sound doable but at the same time is it necessary? Let me know what you guys think.

/r/django
https://redd.it/1p0ucg0
Skylos: Code quality library

Hello everyone,

Summary

Skylos is a code health scanner that finds dead code, secrets, quality issues(although limited coverage for now) and dangerous patterns in your repo, then displays them in your CLI. We do have a CI gate as well as a VSC extension.

The VSC extension runs all the flags meaning it will continuously scan for dead code, secrets, quality issues and dangerous patterns. Once you hit save, it will highlight anything that is being flagged with the warning on the same line as the issue. You can turn off the highlights in the settings. The CLI on the other hand, is a flag-based approach meaning that it will just be purely dead code unless you add the flags as shown in the quick start.

How it works

We build an AST-level map of all your functions, defs, classes, variables etc, then applies the rule engine to see where each symbol is referenced

Quick start

To flag everything:

skylos /path/to/your/project --danger --quality --secrets

To flag only danger:

skylos /path/to/your/project --danger

To flag only dead code:

skylos /path/to/your/project

For the VSC extension, just go to marketplace and look for Skylos

The current version for the CLI is 2.5.0 while the current

/r/Python
https://redd.it/1p0wck6
Apple AIML Residency Program 2026 R

Haven't seen a 2026 post - wanted to use this to consolidate info from everyone on the process. Anyone have any idea when they start sending out info session updates?

/r/MachineLearning
https://redd.it/1p0lart
[P] Human Action Classification: Reproducible baselines for UCF-101 (87%) and Stanford40 (88.5%) with training code + pretrained models

# Human Action Classification: Reproducible Research Baselines

Hey r/MachineLearning! I built reproducible baselines for human action recognition that I wish existed when I started.

# 🎯 What This Is

**Not an attempt to beat or compare with SOTA.** This is a reference baseline for research and development. Most repos I found are unmaintained with irreproducible results, with no pretrained models. This repo provides:

* Reproducible training pipeline
* Pretrained models on HuggingFace
* Complete documentation
* Two approaches: Video (temporal) + Image (pose-based)

# 📊 Results

**Video Models (UCF-101 - 101 classes):**

* MC3-18: **87.05%** accuracy (published: 85.0%)
* R3D-18: **83.80%** accuracy (published: 82.8%)

**Image Models (Stanford40 - 40 classes):**

* ResNet50: **88.5%** accuracy
* Real-time: 90 FPS with pose estimation

# 🎬 Demo (Created using test samples)

https://i.redd.it/diopygguk72g1.gif

# 🔗 Links

* GitHub: [https://github.com/dronefreak/human-action-classification](https://github.com/dronefreak/human-action-classification)
* HuggingFace Models:
* MC3-18: [https://huggingface.co/dronefreak/mc3-18-ucf101](https://huggingface.co/dronefreak/mc3-18-ucf101)
* R3D-18: [https://huggingface.co/dronefreak/r3d-18-ucf101](https://huggingface.co/dronefreak/r3d-18-ucf101)
* Stanford40 Models: [https://huggingface.co/dronefreak/human-action-classification-stanford40](https://huggingface.co/dronefreak/human-action-classification-stanford40)

# 💡 Why I Built This

Every video classification paper cites UCF-101, but finding working code is painful:

* Repos abandoned 3+ years ago
* Tensorflow 1.x dependencies
* Missing training scripts
* No pretrained weights

This repo is what I needed: a clean starting point with modern PyTorch, complete training code, and published pre-trained models.

# 🤝 Contributions Welcome

Looking for help with:

* Additional datasets (Kinetics, AVA, etc.)
* Two-stream

/r/MachineLearning
https://redd.it/1p16kqx
Pyrefly Beta Release (fast language server & type checker)

As of v0.42.0, Pyrefly has now graduated from Alpha to Beta.

At a high level, this means:

- The IDE extension is ready for production use right now
- The core type-checking features are robust, with some edge cases that will be addressed as we make progress towards a later stable v1.0 release

Below is a peek at some of the goodies that have been shipped since the Alpha launch in May:

Language Server/IDE:
- automatic import refactoring
- Jupyter notebook support
- Type stubs for third-party packages are now shipped with the VS Code extension

Type Checking:
- Improved type inference & type narrowing
- Special handling for Pydantic and Django
- Better error messages

For more details, check out the release announcement blog: https://pyrefly.org/blog/pyrefly-beta/

/r/Python
https://redd.it/1p1axnq
Twenty years of Django releases

On November 16th 2005 - Django got its first release: 0.90 (don’t ask). Twenty years later, today we just shipped the first release candidate of [Django 6.0](https://docs.djangoproject.com/en/dev/releases/6.0/). I compiled a few stats for the occasion:

* **447 releases over 20 years**. Average of 22 per year. Seems like 2025 is special because we’re at 38.
* **131 security vulnerabilities addressed** in those releases. Lots of people poking at potential problems!
* **262,203 releases of Django-related packages**. Average of 35 per day, today we’re at 52 so far.

Full blog post: [Twenty years of Django releases](https://www.djangoproject.com/weblog/2025/nov/19/twenty-years-of-django-releases/). And we got JetBrains to extend their [30% off offer](https://www.jetbrains.com/pycharm/promo/support-django/) as a birthday gift of sorts

/r/Python
https://redd.it/1p1euh3
My first real project in python

Hi, I'm 15 and I recently started python. For my firt project I did a calculator.

Here is the program:

num1=int(input("choisissez un nombre"))



num2=int(input("choisissez un nombre")) #sélection des nombres



operator=int(input("choisissez un operateur 1=+ ;2=- ;3=/ "))



if operator ==1:

result=num1+num2



elif operator ==2: #calcule

result=num1-num2



elif operator ==3:

result=num1/num2



print("voici votre résultat",result)


I'm here for advice on this program and more generally on python.

If you have little project like this I take too.

Thank you for reading.

/r/Python
https://redd.it/1p1khap
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/1p1o6zl
R Segment Anything Model 3 (SAM 3) is released

Abstract: We present Segment Anything Model (SAM) 3, a unified model that detects, segments, and tracks objects in images and videos based on concept prompts, which we define as either short noun phrases (e.g., “yellow school bus”), image exemplars, or a combination of both. Promptable Concept Segmentation (PCS) takes such prompts and returns segmentation masks and unique identities for all matching object instances. To advance PCS, we build a scalable data engine that produces a high-quality dataset with 4M unique concept labels, including hard negatives, across images and videos. Our model consists of an image-level detector and a memory-based video tracker that share a single backbone. Recognition and localization are decoupled with a presence head, which boosts detection accuracy. SAM 3 doubles the accuracy of existing systems in both image and video PCS, and improves previous SAM capabilities on visual segmentation tasks. We open source SAM 3 along with our new Segment Anything with Concepts (SA-Co) benchmark for promptable concept segmentation.

Paper: https://ai.meta.com/research/publications/sam-3-segment-anything-with-concepts/

Demo: https://aidemos.meta.com/segment-anything

Code: https://github.com/facebookresearch/sam3

Website: https://ai.meta.com/sam3

/r/MachineLearning
https://redd.it/1p1cfvx
New Django 6.0 base model template dropped!

/r/django
https://redd.it/1p1g411
Is it possible that i get typehints / auto complete for jinja html? in vsc

I was seeing a full flask course where the tutor was using pycharm, he changed the templating somthing and he was kinda getting typehints , Is this possible for vsc, I have installed jinja, jinja better but still i am not getting those


/r/flask
https://redd.it/1p1u87x
whereproc: a small CLI that tells you where a running process’s executable actually lives

I’ve been working on some small, practical command-line utilities, and this one turned out to be surprisingly useful, so I packaged it up and put it on PyPI.

What My Project Does

whereproc is a command-line tool built on top of psutil that inspects running processes and reports the full filesystem path of the executable backing them. It supports substring, exact-match, and regex searches, and it can match against either the process name or the entire command line. Output can be human-readable, JSON, or a quiet/scripting mode that prints only the executable path.

whereproc answers a question I kept hitting in day-to-day work: "What executable is actually backing this running process?"

Target Audience

whereproc is useful for anyone:

debugging PATH issues
finding the real location of app bundles / snap packages
scripting around PID or exe discovery
process verification and automation

Comparison

There are existing tools that overlap with some functionality (ps, pgrep, pidof, Windows Task Manager, Activity Monitor, Process Explorer), but:

- whereproc always shows the resolved executable path, which many platform tools obscure or hide behind symlinks.
- It unifies behavior across platforms. The same command works the same way on Linux, macOS, and Windows.
- It provides multiple match modes (substring, exact, regex, command-line search) instead of

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