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
EHTML — Extended HTML for Real Apps. Sharing it in case it helps someone.

Hi everyone! I’ve been working on a project called EHTML, an HTML-first approach to building dynamic pages using mostly HTML. It lets you handle things like templating, loops, conditions, data loading, reusable components, and nested forms — all without a build step or heavy JavaScript setup.

I originally built it to simplify my own workflow for small apps and prototypes, but I figured others who prefer lightweight or no-build approaches might find it useful too. It runs entirely in the browser using native ES modules and custom elements, so there’s no bundler or complex tooling involved.

If you enjoy working close to the browser or like experimenting with minimalistic web development, you might find it interesting. Just sharing in case it helps someone or sparks ideas. Cheers!


Link: https://e-html.org/

/r/django
https://redd.it/1oyuy8h
MkSlides: easily turn Markdown files into beautiful slides using a workflow similar to MkDocs!

What my project does:

MkSlides (Demo, GitHub) is a static site generator that's geared towards building slideshows. Slideshow source files are written in Markdown, and configured with a single YAML configuration file. The workflow and commands are heavily inspired by MkDocs and reveal-md.

Features:

Build static HTML slideshow files from Markdown files.
Turn a single Markdown file into a HTML slideshow.
Turn a folder with Markdown files into a collection of HTML slideshows.
Publish your slideshow(s) anywhere that static files can be served.
Locally.
On a web server.
Deploy through CI/CD with GitHub/GitLab (like this repo!).
Preview your site as you work, thanks to python-livereload.
Use custom favicons, CSS themes, templates, ... if desired.
Support for emojis like :smile: :tada: :rocket: :sparkles: thanks to emoji.
Depends heavily on integration/unit tests to prevent regressions.
And more!

Example:

Youtube: https://youtu.be/RdyRe3JZC7Q

Want more examples? An example repo with slides demonstrating all possibilities (Mermaid.js and PlantUML support, multi-column slides, image resizing, ...) using Reveal.js with the HOGENT theme can be found at https://github.com/HoGentTIN/hogent-markdown-slides .

Target audience:

Teachers, speakers on conferences, programmers, anyone who wants to use slide presentations, ... .

Comparison with other tools:

This tool is a

/r/Python
https://redd.it/1oyriug
SmartRSS-RSS parser and Reader in Flask

I recently built a RSS reader and parser using python for Midnight a hackathon from Hack Club All the source code is here

What My Project Does: Parses RSS XML feed and shows it in a Hacker News Themed website.

Target Audience: People looking for an RSS reader, other than that it's a Project I made for Midnight.

Comparison: It offers a fully customizable Reader which has Hacker News colors by default. The layout is also like HN

This project is built using Flask 🤩

You can leave feedback if you want to so I can improve it.
Upvotes are helpful, please upvote if you think this is a good project

A sample image of the Project



/r/flask
https://redd.it/1oysyob
What advice would you give yourself as you embarked on your first Django build?

So my first project is a company secretarial platform to track filings, draft minutes, resolutions, M&As etc from templates as well and holding share registers and statutory appointments and AML/KYC info. I’ve only got a bit of python experience and I’ve never written anything in Django (also seem to be learning a bit of powershell on the fly too). Any rookie errors I could avoid on advice of you good fellas would be much appreciated 👌🏻

/r/djangolearning
https://redd.it/1oyy42x
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/1oz1c67
Ultra-strict Python template v2 (uv + ruff + basedpyright)

Some time ago I shared a strict Python project setup. I’ve since reworked and simplified it, and this is the new version.

> pystrict-strict-python – an ultra-strict Python project template using uv, ruff, and basedpyright, inspired by TypeScript’s --strict mode.

Compared to my previous post, this version:

- focuses on a single pyproject.toml as the source of truth,
- switches to basedpyright with a clearer strict configuration,
- tightens the ruff rules and coverage settings,
- and is easier to drop into new or existing projects.

What it gives you

- Strict static typing with basedpyright (TS --strict style rules):
- No implicit Any
- Optional/None usage must be explicit
- Unused imports / variables / functions are treated as errors
- Aggressive linting & formatting with ruff:
- pycodestyle, pyflakes, isort
- bugbear, security checks, performance, annotations, async, etc.
- Testing & coverage:
- pytest + coverage with 80% coverage enforced by default
- Task runner via poethepoet:
- poe format → format + lint + type check
- poe check → lint + type check (no auto-fix)
- poe metrics → dead code + complexity + maintainability
- poe quality → full quality pipeline
- Single-source config: everything is in

/r/Python
https://redd.it/1oz4x0f
Easiest frontend framework to get started

Hi,

Since the beginning I have solely worked on the DRF. Sometimes if I need frontend then AI does that for me, but now I want to dive into World of frontend as well.

Which one is easiest to start?

Whenever I try frontend I just find that there is a ton of code.

Many of my python files don't generally cross 1000 lines. I am able to easily break them down into components and as per requirement put them into their respective files. But for frontend devs 500 / 1000 lines seems pretty common.

I tried django templates but there is lot to write, vanilla html requires you to write a ton. I also tried react, but still there is a lot to write.


Which one will be easy to get started?

/r/django
https://redd.it/1oz4yj2
Looking to Collaborate on Django + Frontend Projects (We’re a Duo, Still Leveling Up)

We’re two friends trying to get better by building real projects with others.

I’m learning AI/ML and Django backend
My friend is learning frontend (HTML, CSS, JS moving toward React)

If anyone here is working on a Django project and needs contributors, we’d love to join and help out. We’re not experts yet but we’re serious about learning and can handle tasks if you guide us a bit.

If you’re open to collaborating just reply or DM. Thanks

/r/django
https://redd.it/1oz8vdh
Created a complete Python 3.14 reference with hands-on examples (GitHub repo included)

I wanted to share a comprehensive resource I created covering all 8 major features in Python 3.14, with working code examples and side-by-side comparisons against Python 3.12.

**What's covered:**

* Deferred evaluation of annotations - import performance impact
* Subinterpreters with isolated GIL - true parallelism benchmarks
* Template strings and comparison with F Strings
* Simplified except/except\* syntax
* Control flow in finally blocks
* Free-threads - No GIL
* Enhanced error messages - debugging improvements
* Zstandard compression support - performance vs gzip

**What makes this different:**

* Side-by-side code comparisons (3.12 vs 3.14)
* Performance benchmarks for each feature
* All code available in GitHub repo with working examples

**Format:** 55-minute video with timestamps for each feature

**GitHub Repository:** [https://github.com/devnomial/video1\_python\_314](https://github.com/devnomial/video1_python_314)

**Video:** [https://www.youtube.com/watch?v=odhTr5UdYNc](https://www.youtube.com/watch?v=odhTr5UdYNc)

I've been working with Python for 12+ years and wanted to create a single comprehensive resource since most existing content only covers 2-3 features.

Happy to answer questions about any of the features or implementation details. Would especially appreciate feedback or if I missed any important edge cases.

/r/Python
https://redd.it/1ozdi7j
Creating real time industrial applications (SCADA systems) in Django. Need recommendations?

Hi all, We are building machine vision based solutions for various industries. An e.g. scenario:
Counting passing boxes on the conveyor line.

1. The image is fetched from the camera.
2. Object detection algorithms tracks if the box has moved past the counting line.
3. if crossed, updates the counter.

For this entire application, can I develop a web app in Django which shows the following:

1. Total count
2. Hourly count
3. Live video feed
4. Pages to download analytics reports.

NOTE: This has to run real time on a decently powerful PC. If yes, Can you please link some tutorials/ github repos for the same?

/r/django
https://redd.it/1oz97vp
What happened to mCoding?

James was one of the best content creators in the Python community. I was always excited for his videos. I've been checking his channel every now and then but still no sign of anything new.

Is there something I'm missing?

/r/Python
https://redd.it/1ozkzsb
jTable and Django integration: django-jtable pypi project (alpha)

/r/django
https://redd.it/1ozqp3t
Does anyone else in ML hate PyTorch for its ABI?

I love PyTorch when I’m using it, but it really absolutely poisons the ML ecosystem. The fact that they eschewed a C ABI has caused me and my team countless hours trying to help people with their scripts not working because anything that links to PyTorch is suddenly incredibly fragile.

Suddenly your extension you’re loading needs to, for itself and all libraries it links:

- Have the same ABIs for every library PyTorch calls from (mostly just libstdc++/libc++)
- Use the exact same CXX ABI version
- Exact same compiler version
- Exact same PyTorch headers
- Exact same PyTorch as the one you’re linking

And the amount of work to get this all working efficiently is insane. And I don’t even know of any other big ML C++ codebases that commit this sin. But it just so happens that the most popular library in ML does.

/r/Python
https://redd.it/1ozhgfa
Is Continuous Learning Just Procrastination in Disguise?

Hey devs. We all talk about procrastination, but we rarely acknowledge one of its most “acceptable” forms: endlessly studying without applying anything.

Many of us (myself included) stack up courses, tutorials, notes, and videos… but never turn them into a real project. So what happens when a junior repeats the same mistake and asks you:

What’s the sign that tells you you’re no longer learning… but avoiding the actual work?

What would your advice be?

/r/flask
https://redd.it/1ozpc5s
How to Benchmark your Python Code

Hi!

https://codspeed.io/docs/guides/how-to-benchmark-python-code

I just wrote a guide on how to test the performance of your Python code with benchmarks. It 's a good place to start if you never did it!

Happy to answer any question!

/r/Python
https://redd.it/1ozhv03
Tuesday Daily Thread: Advanced questions

# Weekly Wednesday Thread: Advanced Questions 🐍

Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.

## How it Works:

1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.

## Guidelines:

* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.

## Recommended Resources:

* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.

## Example Questions:

1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the

/r/Python
https://redd.it/1ozwrmm
' " """ So, what do you use when? """ " '

I realized I have kind of an idiosyncratic way of deciding which quotation form to use as the outermost quotations in any particular situation, which is:

* Multiline, """.
* If the string is intended to be human-visible, ".
* If the string is not intended to be human-visible, '.

I've done this for so long I hadn't quite realized this is just a convention I made up. How do you decide?

/r/Python
https://redd.it/1ozr7d7
Need help!!

As a django developer it is so hard to land a job for me. I learnt redis, kafka, built projects like pdfsummarizers, ecomm with redis, celery based projects too... But still i am not getting a shortlisted for a company.

Most of the companies give assignments to shortlist the candidates but when i submit it , i didn't get any response from them. How can i land a job then?? The job market is already so tight.

/r/django
https://redd.it/1p05uma
Lacuna – High-performance sparse matrices for Python, Rust backend

**What My Project Does**

Lacuna is a high-performance sparse matrix library for Python, backed by Rust (SIMD + Rayon) with a NumPy-friendly API. It currently provides:

* 2-D formats: **CSR, CSC, COO**
* N-D tensors: **COOND** (N-dimensional COO)
* Kernels for `float64` values / `int64` indices:
* SpMV / SpMM
* Reductions: total sum, row/column sums
* Transpose
* Arithmetic: add, sub, Hadamard (elementwise)
* Cleanup: `prune(eps)`, `eliminate_zeros`
* N-D COO ops:
* `sum`, `mean`
* `reduce_*_axes`, `permute_axes`, `reshape`
* broadcasting Hadamard
* unfold to CSR/CSC along a mode or grouped axes

The Python API is designed to work smoothly with NumPy, using zero-copy reads of input buffers when it’s safe.

**Target Audience**

Lacuna is intended for people who:

* Work with **large sparse matrices or tensors** (e.g. scientific computing, FEM/CFD, graph problems, PageRank, power iterations)
* Need **high-performance kernels** but want to stay in Python/NumPy world
* Are interested in experimenting with **N-D sparse arrays** (beyond 2-D matrices) without densifying

It’s currently a **work-in-progress** project (APIs and performance characteristics may change), so it’s best suited for experimentation, research, and early adopters rather than critical production workloads.

**Comparison**

* **SciPy.sparse**
* Very mature and

/r/Python
https://redd.it/1p02oi1
Zuban supports Autoimports now

Auto-imports are now supported. This is likely the last major step toward feature parity with Pylance. The remaining gaps are inlay hints and code folding, which should be finished in the next few weeks.

Zuban is a Python Language Server and type checker:

* [zubanls.com](https://zubanls.com)
* [Repository](https://github.com/zubanls/zuban)
* [Changelog](https://docs.zubanls.com/en/latest/changelog.html)

Appreciate any feedback!

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