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/expectationManager3 • Mar 08 '26
Hi there,
Are there any high-level libraries for handling persisted subinterpreters in-process yet?
Specifically, I will load a complex set of classes running within a single persisted subinterpreter, then sending commands to it (via Queue?) from the main interpreter.
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/Rockykumarmahato • Mar 08 '26
I created a simple roadmap for anyone who wants to become a Machine Learning Engineer but feels confused about where to start.
The roadmap focuses on building strong fundamentals first and then moving toward real ML engineering skills.
Main stages in the roadmap:
• Python fundamentals • Math for machine learning (linear algebra, probability, statistics) • Data analysis with NumPy and Pandas • Machine learning with scikit-learn • Deep learning basics (PyTorch / TensorFlow) • ML engineering tools (Git, Docker, APIs) • Introduction to MLOps • Real-world projects and deployment
The idea is to move from learning concepts → building projects → deploying models.
I’m still refining the roadmap and would love feedback from the community.
What would you add or change in this path to becoming an ML Engineer?
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/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/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/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/Ctziapo • Mar 07 '26
md-a4 is a local Flask-based web application that renders Markdown files into fixed A4-sized pages ($210 \times 297\text{mm}$) 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/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.
GitHub: https://github.com/ntua-el21661/md-a4
Would love feedback on the pagination algorithm or suggestions for features — contributions welcome!
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/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/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/Ok-Emphasis4085 • Mar 07 '26
https://github.com/yhelioui/color-palette-extractor
What My Project Does
colorpalette) * Clean import API for integration in other scriptsTarget Audience
Comparison
First 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/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/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, 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/philtrondaboss • Mar 07 '26
Why isn't the __init__ method called __inst__? It's called when the object it instantiated, not when it's initialized. This is annoying me more than it should. Am I just completely wrong about this, is there some weird backwards compatibility obligation to a mistake, or is it something else?
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/CommonAd3130 • Mar 06 '26
Firstly, hi everyone! I'm the 18-year-old CS student from Turkey who posted about Dracula-AI a while ago. You guys gave me really good criticism last time and I tried to fix everything. After v0.8.0 I kept working and honestly the library looks very different now. Let me explain what changed.
I'm not going to lie, there were some bad bugs. The async version had missing await statements in important places like clear_memory(), get_stats(), and get_history(). This was causing memory leaks and database locks in Discord bots and FastAPI apps. Also there was an infinite retry loop bug — even a simple local ValueError was triggering the backoff system, which was completely wrong. I fixed all of these. I also wrote 26 automated tests with API mocking so this kind of thing doesn't happen again.
You can now send images, PDFs, and documents to Gemini through Dracula. Just pass a file_path to chat():
response = ai.chat("What's in this image?", file_path="photo.jpg")
print(response)The desktop UI also got an attachment button for this. Async file reading uses asyncio.to_thread so it doesn't block your event loop.
This one is big for Discord bot developers. You can now give each user their own isolated session with one line:
ai = Dracula(api_key=os.getenv("GEMINI_API_KEY"), session_id=user_id)Multiple instances can share one database file without their histories mixing together. If you have an old memory.db from before, the migration happens automatically — no manual work needed.
This version added a lot of things I am really proud of:
auto_compress=True. You keep the context without the memory bloat.schema to chat() and get back a validated object instead of a plain string. Really useful for building real apps.@ai.before_chat and @ai.after_chat hooks to transform messages before they go to Gemini or modify replies before they come back to you.cache_ttl=60 to cache identical responses for 60 seconds. Zero overhead if you don't use it.token_budget=10000 to stop your app from spending too much. ai.estimated_cost() tells you the USD cost so far.ai.fork() creates a copy of the current conversation so you can explore different directions independently.Added 6 new built-in personas: philosopher, therapist, tutor, hacker, stoic, and storyteller. All personas now have detailed character names, backstories, and behavioral rules, not just a simple prompt line.
The library has grown a lot since I first posted. I learned about database migrations, async architecture, Pydantic, middleware patterns, and token cost estimation, all things I didn't know before.
If you want to try it:
pip install dracula-ai
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/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/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/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:
Repo:
https://github.com/jnsquire/dapper
Docs:
https://jnsquire.github.io/dapper/
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/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?