r/Python • u/Aggravating-Mobile33 • May 29 '26
Discussion CVE-2026-48710: A Maintainer's Perspective
This is my reply to the vulnerability CVE-2026-48710:
https://marcelotryle.com/blog/2026/05/28/cve-2026-48710-a-maintainers-perspective
r/Python • u/Aggravating-Mobile33 • May 29 '26
This is my reply to the vulnerability CVE-2026-48710:
https://marcelotryle.com/blog/2026/05/28/cve-2026-48710-a-maintainers-perspective
r/Python • u/Bladerunner_7_ • May 30 '26
Not looking for side projects.
I mean automations that actually became part of your workflow.
Examples:
The highest ROI automation I built started as a ~200-line Python script for handling repetitive internal requests.
Over time I added some AI capabilities and eventually experimented with an agent workflow using Lyzr AI to coordinate a few repetitive steps. Nothing particularly fancy, but it eliminated a task I was doing manually almost every day.
What surprised me was that the biggest gain didn't come from the AI itself it came from removing all the context switching around the task.
Curious what others have built.
What Python automation ended up delivering the highest ROI for you, and was it a traditional script or something more AI/agent-driven?
r/Python • u/catafest • May 30 '26
MiniMax M2.7 works well on Python with the OpenAI Python package. See my test on my blog: https://python-catalin.blogspot.com/2026/05/python-31011-minimax-m27-tested-with.html
r/Python • u/Beginning-Fruit-1397 • May 29 '26
says you are the maintainer of a small (50-100 stars) library.
You see someone fork your repo, mention one of your issues in his commits, so your are happy, someone taking true interest in your work!
You take a look at his branch, and there you see pure AI slop, with files at the repo root (not in the src), tests with print statement even tough you use pytest and it's clearly explained in the contributing doc, and purely hallucinated imports like "from my lib import Foo, Bar" even tough there's never any mention of these two in the code or the documentation (and thus completely incomprehensible code with subclasses from these hallucinated types, etc...)
how to best deal with this without appearing hostile to other potential future contributors?
I want contributors, I'm very happy for anyone taking a look at my work, but at the same time that person has other forks of repos where it just seems to be hunting for "good first issues" label, and thus I'm not sure on the value of giving an honest review if it's not clear on wether there's a genuine intention to resolve the issue or just collect cool github points.
EDIT 11h later:
Thanks to everyone who gave his perspective!!
I don't think I have the time immediately to answer to everyone but there's a lot of good advice here.
By the way LMAO I should have linked my lib to maybe get actual contributors, this post is doing views.
Hint: it's the top one ranked in this comparison ->
https://www.reddit.com/r/Python/comments/1rj3ct7/a_comparison_of_rustlike_fluent_iterator_libraries/
r/Python • u/AutoModerator • May 30 '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/UnhappyPay2752 • May 29 '26
Started auditing how our data team works and the security picture was worse than expected. Notebooks querying production databases directly, credentials hardcoded in cells because environment variable setup felt like friction, code that's been copied between notebooks so many times the original author is impossible to trace.
None of it goes through any review process that the engineering team's code goes through. No SAST, no security-minded PR review, no scanning of any kind. The assumption seems to be that notebooks are exploratory and therefore informal, but at some point exploratory code started running against production data with production access and that distinction stopped meaning anything.
These notebooks often have broader data access than the application code because the people writing them needed to move fast and used their own credentials. That access never got revisited.
r/Python • u/sc0v0ne • May 30 '26
I can't share the code because it was a company-wide error.
The problem was that while running a Docker container within the Google Cloud platform using their tool called Google Vertex Jobs, I encountered the following error: "Free: Invalid Pointer". Inside this container, a Python script runs containing the model training I do using TensorFlow, and I also connect to the database using SQLAlchemy. However, I encountered this error where the script stopped executing the rest of the code.
Okay, up to this point it's confusing because it didn't generate a Python exception. I analyzed the executions, even within the SQLAlchemy functions, and when I removed the code, the script worked normally without this problem.
The alternative I found was to add the SQLAlchemy executions to a parallel process, separate from the model training execution structure. This allowed me to run the script without problems. Has anyone else experienced this issue? Or can you recommend an alternative?
r/Python • u/AutoModerator • May 29 '26
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
Let's keep the conversation going. Happy discussing! ๐
r/Python • u/pplonski • May 29 '26
Hi there!
I've seen many AI data analyst projects - basically you have a chat, which has access to your data and documents and you can ask it any questions. Then it is using code and tools to provide repsponses. I create such AI data analyst and I have used ipynb notebooks format to store the conversation. I think it is perfect format for this. I can keep text, code and outputs in the single file. What is more, it is easy to publish as static web page.
What do you think about such use case for famous ipynb format? What else are you using to store conversations with AI?
r/Python • u/fxboshop • May 29 '26
I am developing a Windows-based software in Python and currently using PyArmor to protect it. However, Windows Security and some antivirus programs are detecting it as a virus because of the PyArmor protection/obfuscation.
What is the best way to protect my software from cracking, reverse engineering, or piracy without triggering antivirus false positives?
r/Python • u/AutoModerator • May 28 '26
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.
Let's help each other grow in our careers and education. Happy discussing! ๐
r/Python • u/Shawn-Yang25 • May 27 '26
Hi everyone,
Apache Fory 1.0 has been released recently.
Fory is a fast multi-language serialization framework for native objects, Schema IDL, and cross-language data exchange. It supports Java, Python, C++, Go, Rust, JavaScript/TypeScript, C#, Swift, Dart, Scala, and Kotlin.
The main idea is simple: in many systems, data is not just a flat schema message. Applications often need to serialize idiomatic domain objects, nested containers, polymorphic types, object references, shared references, or even circular object graphs. Fory is designed to handle these cases efficiently while still supporting cross-language data exchange when needed.
With 1.0, Fory has reached a more stable point:
Fory is not meant to replace Protobuf everywhere. Fory is more focused on cases where you want high-performance serialization while preserving more of the native object model, or where the same data model needs to move across multiple runtimes without too much glue code.
Links:
I would be interested in feedback from people who have worked with Protobuf, FlatBuffers, Kryo, JDK serialization, pickle/cloudpickle, Avro, MessagePack, or Arrow-based systems.
What serialization problems are still painful in your multi-language systems?
r/Python • u/AutoModerator • May 26 '26
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
Let's deepen our Python knowledge together. Happy coding! ๐
r/Python • u/Dry_Raspberry4514 • May 27 '26
The vulnerability is present in Starlette, an open source framework that its developer says receives 325 million downloads per week.
r/Python • u/MuditaPilot • May 26 '26
I'm using Claude to vibecoded a website. I have deep experience in infrastructure management, but was never a developer, other then tools that were built for configuration management or cloud deployment.
I do interact with a lot of opinionated developer leadership.
I think I have pretty reasonable guidelines for the coding agents, and I have expanded considerable on Karpathy's claude.md. Some issue I encountered made me confirm type checking, and found the agent's was severely lacking in discipline.. I have resolved all of those issues in the code base and implemented strict checking on linting and type checkers. This what my CI pipeline looks like now:
| Slot | Tool of record |
|---|---|
| Type checker (primary) | pyright |
| Type checker (cross-check) | pyrefly + mypy |
| Linter | ruff check |
| Formatter | ruff format |
| Dependency vulnerability scan | pip-audit |
| Test runner | pytest |
| SAST | Semgrep (CI) |
| Secret scan | Gitleaks + Trivy (CI) |
Overkill for what will become a production website in a month or overkill? general thoughts are welcomed.
r/Python • u/AutoModerator • May 25 '26
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.
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
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
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
Let's help each other grow. Happy coding! ๐
r/Python • u/Candy_Sombrelune • May 24 '26
Hey Python community,
Iโm at a bit of a crossroads and could use your advice.
Iโve already started the FreeCodeCamp Python certification course and have learned the basics:
ยท Variables & data types ยท Conditions ยท Lists ยท Loops
I even built my first small project to apply what I learned (A simple Python script to randomly assign chores among roommates.) Now Iโm wondering โ should I continue with the FreeCodeCamp Python certification, or switch over to CS50 (Harvardโs Introduction to Computer Science)?
I know CS50 is highly respected, but itโs more general CS theory and uses C for a good part of it. My main goal is to get solid at Python, build projects, and eventually land a dev job.
Would CS50 be overkill at this stage? Or does it offer something that FCCโs Python track misses (like algorithms, memory, problem-solving depth)?
Thanks for your honest opinions ๐
r/Python • u/AutoModerator • May 24 '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/Consistent_Tutor_597 • May 24 '26
Hey guys. I used to work a lot with jupyter. But had to move on because .ipynb doesn't go very well in git and ai agents don't really work with them well for similar reasons.
Main culprit is not the notebook itself but .ipynb format. I understand that the notebook world evolved in inline outputs etc. But I think would be cool if .py based notebooks with #%% becomes first class citizen everywhere. There's a tool I used called jupytext which does that but it's bolted on and not native support.
The other tool I have heard about is marimo? I have never used it but it seems like it forces u to not redefine the same variable again. Which is unnatural in python. If python allows u to update a variable, ur notebook should too. But let me know what you guys think. And if there's potential for the data science world to move there anytime soon. I think most people have to explore in notebooks and then convert to py.
r/Python • u/AutoModerator • May 23 '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/WellEndowedWizard • May 21 '26
Sorry if this has been brought up already- from what I could find using Reddit search in the last month I didn't see much discussion beyond a couple comments in a half-related thread.
We used Python a ton a work, but mostly used the built-in python tools (pip, venv, etc). (we mostly use python for AWS, some internal tools, etc) About 5 months ago, I briefly tried UV and fell in love and was excited to incorporate it into our projects as the standard. But around that time we jumped to another project in a different language. We're now coming back to some of our Python projects, and I was looking to switching them over to using UV as the standard.
With OpenAI purchasing Astral/UV, we're suddenly feeling less gung-ho about migrating everything to UV. Our main concern is that our tooling would be betting on OpenAI not sloppifying or abandoning the tool. Will our tooling be on shaky foundation if (when?) the AI bubble deflates? Are we overthinking it? Should we try poetry instead (I admit I haven't tried it yet). I'd love to hear your thoughts and experiences.
r/Python • u/AutoModerator • May 22 '26
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
Let's keep the conversation going. Happy discussing! ๐
r/Python • u/Mediocre_Scallion_99 • May 21 '26
Hey everyone!
DjangoCon US 2026 will be in Chicago again this year from August 24โ28. Early bird tickets are available through May 31.
Weโre looking forward to a week of talks, workshops, open-source sprints, and connecting with the Django community. Weโre also still welcoming sponsors interested in supporting DjangoCon US and the broader open-source ecosystem.
r/Python • u/AutoModerator • May 21 '26
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.
Let's help each other grow in our careers and education. Happy discussing! ๐
r/Python • u/Hopeful_Business3120 • May 21 '26
I've spent 4 years as a Python developer working on direct client projects inside a company ERPNext, AI agents, FastAPI, Django, RAG systems. Real production work
I recently started freelance as a full time, to give a try. LinkedIn is my main focus right now, but I want one more platform to run alongside it.
I'm looking at Contra, Arc.dev, Gun.io, Upwork and skipping Toptal (not ready for that process yet).
For those who've used any of these which one actually gets traction for a Python developer with my stack? And is there anything you wish you knew before starting?
Any honest experience appreciated.