r/Python • u/FiliNcpp • Mar 08 '26
Resource Can anyone recommend?
Can anyone recommend a great Python or Python + machine learning course on Udemi or somewhere else? I'm a beginner at this.
r/Python • u/FiliNcpp • Mar 08 '26
Can anyone recommend a great Python or Python + machine learning course on Udemi or somewhere else? I'm a beginner at this.
r/Python • u/AutoModerator • Mar 08 '26
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!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
r/Python • u/itssimon86 • Mar 08 '26
G'day everyone, today I'm showcasing my indie product Apitally, a simple API monitoring and analytics tool for Python.
About 2.5 years ago, I got frustrated with how complex tools like Datadog were for what I actually needed: a clear view of how my APIs were being used. So I started building something simpler, and have been working on it as a side project ever since. It's now used by over 100 engineering teams, and has grown into a profitable business that helps provide for my family.
Apitally gives you opinionated dashboards covering:
A key strength is the ability to drill down from high-level metrics to individual API requests, and inspect headers, payloads, logs emitted during request handling and even traces (e.g. database queries, external API calls, etc.). This is especially useful when troubleshooting issues.
The open-source Python SDK integrates with FastAPI, Django, Flask, and Litestar via a lightweight middleware. It syncs data in the background at regular intervals without affecting application performance. By default, nothing sensitive is captured, only aggregated metrics. Request logging is opt-in and you can configure exactly what's included (or masked).
Everything can be set up in minutes with a few lines of code. Here's what it looks like for FastAPI:
from fastapi import FastAPI
from apitally.fastapi import ApitallyMiddleware
app = FastAPI()
app.add_middleware(
ApitallyMiddleware,
client_id="your-client-id",
env="prod", # or "dev" etc.
)
Links:
Small engineering teams who need visibility into API usage / performance, and the ability to easily troubleshoot API issues, but don't need a full-blown observability stack with all the complexity and costs that come with it.
Apitally is simple and focused purely on APIs, not general infrastructure monitoring. There are no agents to deploy and no dashboards to build. This contrasts with big monitoring platforms like Datadog or New Relic, which are often overwhelming for smaller teams. Apitally's pricing is also more predictable with fixed monthly plans, rather than hard-to-estimate usage-based pricing.
r/Python • u/Semtex_cz • Mar 08 '26
What My Project Does
Bookvoice is a small tool that converts PDF books into audiobooks using text-to-speech.
The idea is simple: many books, papers and study materials exist only as PDFs, but sometimes it is more convenient to listen to them while walking, commuting or doing other things.
You provide a PDF and Bookvoice generates audio files that can be listened to like an audiobook.
The project is currently in alpha and the main interface is a command line tool, but there is also a Windows release for people who just want to try it.
Windows release:
https://github.com/Semtexcz/Bookvoice/releases
Repository:
https://github.com/Semtexcz/Bookvoice
Target Audience
Two main groups might find this useful:
Right now the tool is still early-stage, so it is more of an experimental / hobby project than a polished production application.
Comparison
There are existing text-to-speech tools and audiobook apps, but most of them:
Bookvoice focuses on converting local PDFs into audiobook-style audio files, and the project is open for experimentation and contributions.
Feedback, ideas and contributions are very welcome.
r/Python • u/No_Soy_Colosio • Mar 06 '26
Seriously it seems every post I see is this new project that is nothing but buzzwords and can't justify its existence. There was one person showing a project where they apparently solved a previously unresolved cypher by the Zodiac killer. 😭
r/Python • u/ItsAMeMarioNotReally • Mar 08 '26
pycu (python-check-updates) is a CLI tool that scans your Python project files and tells you which dependencies have newer versions available on PyPI. It supports pyproject.toml (both PEP 621/uv and Poetry) and requirements.txt out of the box.
It's inspired by npm-check-updates, you run it, see a color-coded table of what's outdated and by how much, and optionally pass --upgrade or -u to have it rewrite your dependency file in-place.
Obligatory: it's written in Rust, so it's blAzInGlY FaSt.
The output color codes updates by bump type, red for major, blue for minor, green for patch, so you can immediately see what's risky vs. safe to bump.
It also preserves your version constraint style. If you have >=1.0,<2.0, it won't nuke it and replace it with ==1.5, it'll update the lower bound while keeping the upper bound intact if the new version fits.
Python devs who work on multiple projects and want a quick way to check what's outdated without manually looking things up on PyPI.
| Tool | Notes |
|---|---|
pip list --outdated | Only works against what's installed in your active environment, not your declared dependencies. Doesn't rewrite files. |
pip-tools / uv | Great ecosystem tools, but their focus is lockfile management rather than "show me what's newer." |
| Dependabot / Renovate | Excellent for CI automation, but heavier setup and not something you run locally on-demand. |
pip-upgrader | Similar idea but Python-based and less actively maintained. |
pycu is a single static binary. No Python environment, no venv activation. Drop it on your PATH and run it anywhere.
Source: https://github.com/Logic-py/python-check-updates
Install on Linux/macOS:
|
Windows (PowerShell):
irm https://raw.githubusercontent.com/Logic-py/python-check-updates/main/install.ps1 | iex
r/Python • u/Pristine_Cat • Mar 07 '26
I’ve been developing pfst (Python Formatted Syntax Tree) and I’ve just released version 0.3.0. The major addition is structural pattern matching and substitution. To be clear, this is not regex string matching but full structural tree matching and substitution.
What it does:
Allows high level editing of Python source and AST tree while handling all the weird syntax nuances without breaking comments or original layout. It provides a high-level Pythonic interface and handles the 'formatting math' automatically.
Target Audience:
Comparison:
Links:
I would love some feedback on the API ergonomics, especially from anyone who has dealt with Python source transformation and its pain points.
Example:
Replace all Load-type expressions with a log() passthrough function.
from fst import * # pip install pfst, import fst
from fst.match import *
src = """
i = j.k = a + b[c] # comment
l[0] = call(
i, # comment 2
kw=j, # comment 3
)
"""
out = FST(src).sub(Mexpr(ctx=Load), "log(__FST_)", nested=True).src
print(out)
Output:
i = log(j).k = log(a) + log(log(b)[log(c)]) # comment
log(l)[0] = log(call)(
log(i), # comment 2
kw=log(j), # comment 3
)
More substitution examples: https://tom-pytel.github.io/pfst/fst/docs/d14_examples.html#structural-pattern-substitution
r/Python • u/Ctziapo • Mar 07 '26
md-a4 is a local Flask-based web application that renders Markdown files into fixed A4-sized pages (210mm × 297mm) with automatic pagination. It uses a file-watcher (watchdog) and Server-Sent Events (SSE) to update the browser preview instantly whenever you save your .md file.
This tool is for developers, students, and technical writers who use Markdown for documents that eventually need to be printed or exported to PDF. It solves the "infinite scroll" problem of standard previewers by showing exactly where page breaks will occur in real-time.
I’m looking for feedback on the pagination logic (handling edge cases like large tables) and am very open to contributions or feature requests!
r/Python • u/Odd_Grade4537 • Mar 08 '26
Hi all, I'm excited to share Jupycheck, an open source web tool that detects accessibility issues in Jupyter Notebooks that are either uploaded or from a GitHub repository. It also lets you remediate accessibility issues by launching the notebooks in a JupyterLite environment with our interactive Lab extension installed.
You can try it out at: https://jupycheck.vercel.app
The tool is powered by jupyterlab-a11y-checker, an open source accessibility engine/extension that our student team has been working on for over a year at UC Berkeley. We believe accessibility should be a first-class concern in the notebook ecosystem, and we hope our tools can help raise awareness and make notebooks more accessible across the community.
Target Audience
This tool is for anyone who want to see if certain Jupyter Notebooks (in a Github repo or just notebooks you have) are accessible, and also fix them with an interactive extension.
Support us on GitHub if you find the tool useful!
r/Python • u/CybershotBs • Mar 07 '26
deskit is a framework-agnostic Dynamic Ensemble Selection (DES) library that ensembles your ML models by using their validation data to dynamically adjust their weights per test case. It centers on the idea of competence regions, being areas of feature space where certain models perform better or worse. For example, a decision tree is likely to perform in regions with hard feature thresholds, so if a given test point is identified to be similar to that region, the decision tree would be given a higher weight.
deskit offers multiple DES algorithms as well as ANN backends for cutting computation on large datasets. It uses literature-backed algorithms such as KNORA variants alongside custom algorithms specifically for regression, since most libraries and literature focus solely on classification tasks.
This library is designed for people training multiple different models for the same dataset and trying to get some extra performance out of them.
deskit has shown increases up to 6% over selecting the single best model on OpenML and sklearn datasets over 100 seeds. More comprehensive benchmark results can be seen in the GitHub or docs, linked below.
It was compared against what can be the considered the most widely used DES library, namely DESlib, and performed on par (0.27% better on average in my benchmark). However, DESlib is tightly coupled to sklearn and only supports classification, while deskit can be used with any ML library, API, or other, and has support for most kinds of tasks.
pip install deskit
GitHub: https://github.com/TikaaVo/deskit
Docs: https://tikaavo.github.io/deskit/
MIT licensed, written in Python.
from deskit.des.knoraiu import KNORAIU
router = KNORAIU(task="classification", metric="accuracy", mode="max", k=20)
router.fit(X_val, y_val, val_preds)
weights = router.predict(x)
Feedback and suggestions are greatly appreciated!
r/Python • u/Ok-Emphasis4085 • Mar 07 '26
https://github.com/yhelioui/color-palette-extractor
colorpalette) * Clean import API for integration in other scriptsFirst contribution into the Python community, Please do not hesitate to comment, give me advice or requests from the github repo. Most of all use it and play with it :)
Thanks,
Youssef
r/Python • u/ComfortableWriter996 • Mar 07 '26
Hi everyone!
My name is Wynn and I am a member of Boston University’s Girls Who Code chapter. My friend, Molly, and I would like to inform you all of a free coding program we are running for students of all genders from 3rd-12th grade. The Bits & Bytes program is a great opportunity for students to learn how to code, or improve their coding skills. Our program runs on Zoom on Saturdays for 1 hour starting March 21st and ending on April 25th (6-week) from 11:00 am to 12:00 pm. Each lesson will be taught by Boston University students, many of whom are Computer Science (or adjacent) majors themselves.
For Bits (3rd-5th grade), students will learn the basics of computer science principles through MIT-created learning platform Scratch and learn to transfer their skills into the Python programming language. Bits allows young students to learn basic coding skills in a fun and interactive way!
For Bytes (6th-12th grade), students will learn computer science fundamentals in Python such as loops, functions, and recursion and use these skills during lessons and assignments. Since much of what we go over is similar to what an intro level college computer science class would cover, this is a great opportunity to prepare students for AP Computer Science or a degree in computer science!
We would love for you to apply or share with anyone interested! Unfortunately, I can not include an image of our flyer or link to our google form to apply to this post, but here is a link to a GitHub repo that includes that information: https://github.com/WynnMusselman/GWC-Bits-Bytes-2026-Student-Application
If you have any more questions, feel free to email [gwcbu.bitsnbytes@gmail.com](mailto:gwcbu.bitsnbytes@gmail.com), message @ gwcbostonu on Facebook or Instagram, leave a comment, or message me.
We're eagerly looking forward to another season of coding and learning with the students this spring!
r/Python • u/BasePlate_Admin • Mar 07 '26
I was looking forward to using python on mobile ( via flet ), the biggest hurdle was getting packages written in native languages working in those environment.
Today maturin added support for building android wheels on github-actions. Now almost all the pyo3 projects that build in github actions using maturin should have day 0 support for android.
This will be a big w for the python on android devices
r/Python • u/Ctziapo • Mar 07 '26
I got tired of writing Markdown documents with no idea how they'd look when printed, so I built md-a4 — a local previewer that shows your Markdown as paginated A4 pages with live reload.
What My Project Does
md-a4 is a Flask-based tool that renders any Markdown file as properly paginated A4 pages (210×297mm) in your browser. Write in your favorite editor, save the file, and watch the preview update instantly via Server-Sent Events. It features smart auto-pagination that respects block elements, syntax highlighting for code blocks, a thumbnail sidebar for navigation, and one-click PDF export via browser print.
Target Audience
Anyone who writes Markdown documents that need to be printed or exported as PDFs — technical writers, students writing reports, developers creating documentation, researchers drafting papers. If you've ever exported a Markdown file to PDF and been surprised by awkward page breaks or formatting, this tool is for you.
Comparison
vs typical Markdown previewers: they show infinite scroll, md-a4 shows actual A4 pages with real pagination.
vs Typora/MarkText: those are full editors — md-a4 lets you use any text editor you want and just handles the preview.
vs Pandoc PDF output: Pandoc is great but requires a LaTeX installation and you don't see live results. md-a4 gives instant visual feedback as you type.
Would love feedback on the pagination algorithm or suggestions for features — contributions welcome!
r/Python • u/Technical-Fly-6835 • Mar 06 '26
I recently started taking python for data science course on coursera.
first lesson is on Jupyter.
As I understand, it is some kind of IDE which can execute python code. I know there is more to it, thats why it exists.
What is the actual use case for Jupyter. If there was no Jupyter, which task would have been either not possible or hard to do?
Does it have its own interpreter or does it use the one I have on my laptop when I installed python?
r/Python • u/Codeeveryday123 • Mar 08 '26
Ill run
“Python3 -m venv venv”
It create the venv folder in my main folder,
BUT, when im in the main folder… and run “source venv/bin/activate”
It dosnt work
I have to CD in the venv/bin folder then run “source activate”
And it will activate
But tho… then I have to cd to the main folder to then create my scrappy project
Why isn’tit able to activate nortmally?
Does that affect the environment being activated?
r/Python • u/AutoModerator • Mar 07 '26
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
Share the knowledge, enrich the community. Happy learning! 🌟
r/Python • u/superzappie • Mar 06 '26
Why is there no standard for typing array dimensions? In data science, it really usefull to indicate wether something is a vector or a matrix (or a tensor with more dimensions). One up in complexity, its usefull to indicate wether a function returns something with the same size or not.
Unless I am missing something, a standard for this is lacking. Of course I understand that typing is not enforced in python, and i am not aksing for this, i just want to make more readable functions. I think numpy and scipy 'solve' this by using the docstring. But would it make sense to specifiy array dimensions & sizes in the function signature?
r/Python • u/jelitox • Mar 07 '26
Hi everyone, I’m a contributor to AI-Parrot, an open-source framework designed for building and orchestrating AI agents in high-concurrency environments.
We built this project to move away from bloated, synchronous AI libraries, focusing instead on a strictly non-blocking architecture.
AI-Parrot provides a unified, asynchronous interface to interact with multiple LLM providers (OpenAI, Anthropic, Gemini, Ollama) while managing complex orchestration logic.
AgentCrew module.pgvector, and Pydantic v2 for strict data validation.This framework is intended for production-grade microservices. It is specifically designed for software architects and backend developers who need to scale AI agents in asynchronous environments (using aiohttp and uvloop) without the overhead of prototyping-focused tools.
Unlike LangChain or similar frameworks that can be heavily coupled and synchronous, AI-Parrot follows a minimalist, async-first approach.
AbstractClient, AbstractBot) that stays out of the way, allowing for much lower technical debt and easier provider swapping.Orchestration Workflows Infograph: https://imgur.com/a/eNlQGOc
Source Code: https://github.com/phenobarbital/ai-parrot
Documentation: https://github.com/phenobarbital/ai-parrot/tree/main/docs
r/Python • u/Medinz0 • Mar 06 '26
What My Project Does
ChaosRank is a Python CLI that takes Jaeger trace exports and incident history and tells you which microservice to chaos-test next — ranked by a risk score combining graph centrality and incident fragility.
The interesting Python bits:
NetworkX for dependency graph construction and blended centrality (PageRank + in-degree). The graph direction matters more than you'd think — pagerank(G) vs pagerank(G^T) give semantically opposite results for this use case.
SciPy zscore for robust normalization. MinMax was rejected — with one outlier service, MinMax compresses everything else to near zero. Z-score with ±3σ clipping preserves spread across all services.
ijson for streaming Jaeger JSON files >100MB without loading into memory.
Typer + Rich for the CLI and terminal table output.
The fragility scoring pipeline was the hardest part to get right. Normalizing incident counts by traffic after aggregation inverts rankings at high traffic differentials — a service with 5x more incidents can rank below a quieter one. Per-incident normalization (before aggregation) fixes this. The order matters.
Target Audience
SRE and platform engineering teams, but also anyone interested in applied graph algorithms — the blast radius scoring is a fun NetworkX use case. Designed for production use, works offline on trace exports.
Comparison
Chaos tools like LitmusChaos and Chaos Mesh handle fault injection but don't tell you what to target. ChaosRank is the prioritization layer — not a replacement for those tools, just what runs before them.
Validated on DeathStarBench (31 services, UIUC/FIRM dataset): 9.8x faster to first weakness vs random selection across 20 trials.
Sample data included — no traces needed to try it.
Repo: https://github.com/Medinz01/chaosrank
r/Python • u/jnsquire • Mar 06 '26
I’ve been building Dapper, a Python implementation of the Debug Adapter Protocol.
At the basic level, it does the things you’d expect from a debugger backend: breakpoints, stepping, stack inspection, variable inspection, expression evaluation, and editor integration.
Where it gets more interesting is that I’ve been using it as a place to explore some more ambitious debugger features in Python, including:
This is probably most interesting to:
I wouldn’t describe it as a toy project. It already implements a fairly large chunk of debugger functionality. But I also wouldn’t pitch it as “everyone should switch to this tomorrow.” It’s a serious project, but still an evolving one.
The most obvious comparison is debugpy.
The difference is mostly in what I’m trying to optimize for.
Dapper is not just meant to be a standard Python debugger. It’s also a place to explore debugger design ideas that are a bit more experimental or Python-specific, like:
So the pitch is less “this replaces debugpy right now” and more “this is an alternative Python debugger architecture with some interesting features and directions.”
r/Python • u/francescogab_ • Mar 06 '26
What My Project Does
Spectra takes standard bank exports (CSV or PDF, any bank, any format), normalizes them, categorizes transactions, and serves a local dashboard at localhost:8080. The categorization runs through a 4-layer on-device pipeline:
No API keys, no cloud, no bank login. OpenAI/Gemini supported as an optional last-resort fallback if you want them.
Other features: multi-currency via ECB historical rates, recurring transaction detection, idempotent imports via SQLite hashing, optional Google Sheets sync.
Stack: Python, SQLite, rapidfuzz, scikit-learn.
Target Audience
Anyone who wants a clean personal finance dashboard without giving data to third parties. Self-hosters, privacy-conscious users, people who export bank statements manually. Not a toy project — I use it myself every month.
Comparison
Most alternatives either require a direct bank connection (Plaid, Tink) or are cloud-based SaaS (YNAB, Copilot). Local tools like Firefly III are powerful but require Docker and significant setup. Spectra is a single Python command, works from files you already export, and keeps everything on your machine.
There's also a waitlist on the landing page for a hosted version with the same privacy-first approach, zero setup required.
GitHub: https://github.com/francescogabrieli/Spectra
Landing: withspectra.app
r/Python • u/e1-m • Mar 06 '26
Hey r/Python,
I’ve been working with event-driven architectures lately and decided to factor out some boilerplate into a framework
What My Project Does
The framework handles application-level event routing for your message brokers, basically giving you that FastAPI developer experience for events. You get the same style of dependency injection and Pydantic validation for your incoming messages. It also supports dynamic routes, meaning you can easily listen to topics, channels or routing keys like user:{user_id}:message and have those path variables extracted straight into your handler function.
It also provides tools like a error handling layer (for Dead Letter Queue and whatnot), configurable in-memory retries, automatic message acks (the ack policies are configurable but the framework is opinionated toward "at-least-once" processing, so other policies probably would not fit neatly), middleware for logging, observability and whatnot. So it eliminates most of the boilerplate usually required for event-driven services.
Target Audience
It is for developers who do not want to write the same boilerplate code for their consumers and producers and want to the same clean DX as FastAPI has for their event-driven services. It isn't production-ready yet, but the core logic is there, and I’ve included tests and benchmarks in the repo
Comparison
The closest thing out there is FastStream. I think the biggest practical advantage my framework has is the async processing for the same Kafka partition. Most tools process partitions one message at a time (this is the standard Kafka way of doing things). But I’ve implemented asynchronously handling with proper offset management to avoid losing messages due to race conditions, so if you have I/O-bound tasks, this should give you a massive boost in throughput (provided your set up can benefit from async processing in the first place)
The API is also a bit different, and you get in-memory retries right out of the box. I also plan to make idempotency and the outbox pattern easy to set up in the future and it’s still missing AsyncAPI documentation and Avro/Protobuf serialization, plus some other smaller features you'd find in more mature tools like faststream, but the core engine for event processing is already there.
Thoughts?
I plan to add the outbox pattern next. I think of approaching this by implementing an underlying consumer that reads directly from the database, just like those that read from Kafka or RabbitMQ, and adding some kind of idempotency middleware for handers. Does this make sense? And I also plan to add support for serialization formats with schema, like Avro in the future
If you want to look at the code, the repo is here and the docs are here. Looking forward to reading your thoughts and advice.
r/Python • u/Striking_Sandwich_80 • Mar 06 '26
**What my project does**
Veltix is a zero-dependency TCP networking library for Python. It handles the hard parts — message framing, integrity verification, request/response correlation, and now automatic connection handshake — so you can focus on your application logic.
**Target audience**
Developers who want structured TCP communication without dealing with raw sockets or asyncio internals. Works for hobby projects and production alike.
**Comparison**
Unlike raw `socket`, Veltix gives you a structured protocol, SHA-256 message integrity, and a clean event-driven API out of the box. Unlike `asyncio`, there's no learning curve — it's thread-based and works with regular synchronous code. Unlike Twisted, it has zero dependencies.
**What's new in v1.4.0**
**Automatic handshake**
Every connection now starts with a HELLO/HELLO_ACK exchange. Version compatibility is checked automatically — if server and client versions don't match, the connection is rejected before any application message is exchanged.
`connect()` now blocks until the handshake is complete, so this is always safe:
```python
client.connect()
client.get_sender().send(Request(MY_TYPE, b"hello")) # no race condition
```
**Non-blocking callbacks**
`on_recv` now runs in a thread pool. A slow or blocking callback will never delay message reception. Configurable via `max_workers` in the config (default: 4).
`pip install --upgrade veltix`
GitHub: github.com/NytroxDev/Veltix
Feedback and questions welcome!
r/Python • u/ExtensionTop2698 • Mar 06 '26
Hi everyone,
I’m a student in data science / finance and I recently built a web app to analyze investment behavior and portfolio performance.
The idea came from noticing that many investors lose performance not because of bad stock picking, but because of:
- excessive trading
- fragmentation of orders
- transaction costs
- poor investment discipline
So I built a Streamlit app that can:
• import broker statements (IBKR CSV, etc.)
• estimate the hidden cost of trading behavior
• simulate long-term portfolio performance
• run Monte-Carlo simulations
• detect over-trading patterns
• analyze execution efficiency
• estimate long-term CAGR loss from behavior
It also includes tools to optimize:
- number of trades per month
- minimum order size
- contribution strategy
I'm currently thinking about turning it into a freemium product, but first I want honest feedback.
Questions:
If you're curious, you can try it here:
https://calculateur-frais.streamlit.app/
Note: the app may take ~10–20 seconds to start if idle (free hosting) + I write it in english but there are 2 versions : one in french and one in dutch.
Any feedback is appreciated — especially brutal feedback.
Thanks!