<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"><category term="Python" label="r/Python"/><updated>2026-06-02T01:40:03+00:00</updated><icon>https://www.redditstatic.com/icon.png/</icon><id>/r/Python/.rss</id><link rel="self" href="https://www.reddit.com/r/Python/.rss" type="application/atom+xml" /><link rel="alternate" href="https://www.reddit.com/r/Python/" type="text/html" /><logo>https://b.thumbs.redditmedia.com/8HiO52_EuT_h63Qg.png</logo><subtitle>The largest Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language. --- If you have questions or are new to Python use r/LearnPython</subtitle><title>Python</title><entry><author><name>/u/AutoModerator</name><uri>https://www.reddit.com/user/AutoModerator</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;h1&gt;Weekly Thread: What&amp;#39;s Everyone Working On This Week? 🛠️&lt;/h1&gt; &lt;p&gt;Hello &lt;a href=&quot;/r/Python&quot;&gt;r/Python&lt;/a&gt;! It&amp;#39;s time to share what you&amp;#39;ve been working on! Whether it&amp;#39;s a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you&amp;#39;re up to!&lt;/p&gt; &lt;h1&gt;How it Works:&lt;/h1&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Show &amp;amp; Tell&lt;/strong&gt;: Share your current projects, completed works, or future ideas.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Discuss&lt;/strong&gt;: Get feedback, find collaborators, or just chat about your project.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Inspire&lt;/strong&gt;: Your project might inspire someone else, just as you might get inspired here.&lt;/li&gt; &lt;/ol&gt; &lt;h1&gt;Guidelines:&lt;/h1&gt; &lt;ul&gt; &lt;li&gt;Feel free to include as many details as you&amp;#39;d like. Code snippets, screenshots, and links are all welcome.&lt;/li&gt; &lt;li&gt;Whether it&amp;#39;s your job, your hobby, or your passion project, all Python-related work is welcome here.&lt;/li&gt; &lt;/ul&gt; &lt;h1&gt;Example Shares:&lt;/h1&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Machine Learning Model&lt;/strong&gt;: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Web Scraping&lt;/strong&gt;: Built a script to scrape and analyze news articles. It&amp;#39;s helped me understand media bias better.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Automation&lt;/strong&gt;: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Let&amp;#39;s build and grow together! Share your journey and learn from others. Happy coding! 🌟&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/AutoModerator&quot;&gt; /u/AutoModerator &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1t8r5sf/sunday_daily_thread_whats_everyone_working_on/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1t8r5sf/sunday_daily_thread_whats_everyone_working_on/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1t8r5sf</id><link href="https://www.reddit.com/r/Python/comments/1t8r5sf/sunday_daily_thread_whats_everyone_working_on/" /><updated>2026-05-10T00:00:12+00:00</updated><published>2026-05-10T00:00:12+00:00</published><title>Sunday Daily Thread: What's everyone working on this week?</title></entry><entry><author><name>/u/AutoModerator</name><uri>https://www.reddit.com/user/AutoModerator</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;h1&gt;Weekly Wednesday Thread: Advanced Questions 🐍&lt;/h1&gt; &lt;p&gt;Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.&lt;/p&gt; &lt;h2&gt;How it Works:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Ask Away&lt;/strong&gt;: Post your advanced Python questions here.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Expert Insights&lt;/strong&gt;: Get answers from experienced developers.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Resource Pool&lt;/strong&gt;: Share or discover tutorials, articles, and tips.&lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;Guidelines:&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;This thread is for &lt;strong&gt;advanced questions only&lt;/strong&gt;. Beginner questions are welcome in our &lt;a href=&quot;#daily-beginner-thread-link&quot;&gt;Daily Beginner Thread&lt;/a&gt; every Thursday.&lt;/li&gt; &lt;li&gt;Questions that are not advanced may be removed and redirected to the appropriate thread.&lt;/li&gt; &lt;/ul&gt; &lt;h2&gt;Recommended Resources:&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;If you don&amp;#39;t receive a response, consider exploring &lt;a href=&quot;/r/LearnPython&quot;&gt;r/LearnPython&lt;/a&gt; or join the &lt;a href=&quot;https://discord.gg/python&quot;&gt;Python Discord Server&lt;/a&gt; for quicker assistance.&lt;/li&gt; &lt;/ul&gt; &lt;h2&gt;Example Questions:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;How can you implement a custom memory allocator in Python?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;What are the best practices for optimizing Cython code for heavy numerical computations?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;How do you set up a multi-threaded architecture using Python&amp;#39;s Global Interpreter Lock (GIL)?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;How would you go about implementing a distributed task queue using Celery and RabbitMQ?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;What are some advanced use-cases for Python&amp;#39;s decorators?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;How can you achieve real-time data streaming in Python with WebSockets?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;What are the performance implications of using native Python data structures vs NumPy arrays for large-scale data?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Best practices for securing a Flask (or similar) REST API with OAuth 2.0?&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;What are the best practices for using Python in a microservices architecture? (..and more generally, should I even use microservices?)&lt;/strong&gt;&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Let&amp;#39;s deepen our Python knowledge together. Happy coding! 🌟&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/AutoModerator&quot;&gt; /u/AutoModerator &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tuabj3/tuesday_daily_thread_advanced_questions/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tuabj3/tuesday_daily_thread_advanced_questions/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tuabj3</id><link href="https://www.reddit.com/r/Python/comments/1tuabj3/tuesday_daily_thread_advanced_questions/" /><updated>2026-06-02T00:00:05+00:00</updated><published>2026-06-02T00:00:05+00:00</published><title>Tuesday Daily Thread: Advanced questions</title></entry><entry><author><name>/u/AlSweigart</name><uri>https://www.reddit.com/user/AlSweigart</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Pay at least $36 for 15 ebooks from No Starch Press benefiting &lt;a href=&quot;https://www.python.org/psf-landing/&quot;&gt;the PSF&lt;/a&gt;: &lt;a href=&quot;https://www.humblebundle.com/books/python-good-stuff-no-starch-books&quot;&gt;https://www.humblebundle.com/books/python-good-stuff-no-starch-books&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Hello, I&amp;#39;m Al Sweigart, author of a few books in the bundle. Here&amp;#39;s some info about them:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;p&gt;&lt;em&gt;Automate the Boring Stuff with Python&lt;/em&gt; - I wrote this to be a programming book for office workers who wanted to escape Excel. It&amp;#39;s a book for complete beginners with no coding experience, or for folks who want to skip to Part 2 and learn about several useful packages in the Python ecosystem for web scraping, graph generation, image manipulation, text-to-speech, OCR, regex, sending mobile notifications, and more. &lt;em&gt;Automate&lt;/em&gt; is now in it&amp;#39;s third edition.&lt;/p&gt;&lt;/li&gt; &lt;li&gt;&lt;p&gt;&lt;em&gt;Cracking Codes with Python&lt;/em&gt; - This was the third book I wrote (and self-published), and then No Starch published a new edition under a new title. (It was previously called Hacking Secret Ciphers with Python.) I had found several &amp;quot;ciphers and code breaking&amp;quot; books that discussed ciphers (&lt;a href=&quot;https://en.wikipedia.org/wiki/The_Code_Book&quot;&gt;The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography&lt;/a&gt; by Simon Singh is great) but I didn&amp;#39;t find any books on writing code to do the code breaking. I wanted Python programs you could literally run on ciphertext that would actually work. Writing this book was a lot of fun. It&amp;#39;s also aimed at completely new programmers, using encryption and code breaking programs as the example programming projects.&lt;/p&gt;&lt;/li&gt; &lt;li&gt;&lt;p&gt;&lt;em&gt;The Big Book of Small Python Projects&lt;/em&gt; - As a kid I loved books like &lt;a href=&quot;https://www.atariarchives.org/basicgames/&quot;&gt;BASIC Computer Games&lt;/a&gt; that just listed the source code for actual programs you could run. I learned way more from having these small examples, so I wanted an updated version of this. (Admittedly, a &lt;em&gt;lot&lt;/em&gt; of those BASIC games were buggy or just not fun.) There are 81 programs that use text-based user interfaces (TUI), not out of old-school nostalgia but because it&amp;#39;s really helpful to learners to have the program source code and program output be the same medium: text. Like, you can look at the text output and find the &lt;code&gt;print()&lt;/code&gt; call that caused it. It makes coding less abstract.&lt;/p&gt;&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;(Note that my books are released under a Creative Commons license and can be found online, but these ebooks have much nicer formatting than the HTML pages on my website.)&lt;/p&gt; &lt;p&gt;No Starch Press is my publisher, but I genuinely do love their books. The ones in this bundle that are on my to-read list that I&amp;#39;m especially excited about:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;p&gt;&lt;em&gt;Practical Deep Learning: 2nd Edition&lt;/em&gt; - I&amp;#39;ve been wanting to read this since the first edition, especially now that I&amp;#39;m diving into LLMs more. This book doesn&amp;#39;t shy away from technical details but it&amp;#39;s not a textbook: there&amp;#39;s actual practical information here.&lt;/p&gt;&lt;/li&gt; &lt;li&gt;&lt;p&gt;&lt;em&gt;Make Python Talk&lt;/em&gt; - I&amp;#39;ve already read this and used some of it as the basis for a PyCon talk on text-to-speech and speech recognition. This is stuff that was really unreliable twenty years ago, but these days it&amp;#39;s so easy to add it to your Python scripts with just a few lines of code.&lt;/p&gt;&lt;/li&gt; &lt;li&gt;&lt;p&gt;&lt;em&gt;Computer Science from Scratch&lt;/em&gt; - One of my biggest gripes with CS education is that they often talk about concepts in some abstract way on a whiteboard or in Powerpoint slides, and they don&amp;#39;t just give you code you can play with. I&amp;#39;m really interested in diving into this one.&lt;/p&gt;&lt;/li&gt; &lt;li&gt;&lt;p&gt;&lt;em&gt;Python for Excel Users&lt;/em&gt; - My &lt;em&gt;Automate&lt;/em&gt; book touches on using Python and spreadsheets, but I&amp;#39;m glad there&amp;#39;s an entire book on the topic now.&lt;/p&gt;&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;But of course, &lt;em&gt;Python Crash Course&lt;/em&gt; by Eric Matthes is a great book for beginners who want to learn to code. (It consistently beats &lt;em&gt;Automate the Boring Stuff&lt;/em&gt; on Amazon.) This is a great collection of ebooks.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Remember to max out the amount of your payment goes to the Python Software Foundation. Scroll down to and click Adjust Donation, then click Custom Amount to edit what percentage of your contribution is split between Developers/Publishers, Humble Bundle, and Charity.&lt;/strong&gt;&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/AlSweigart&quot;&gt; /u/AlSweigart &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tu10qu/new_humble_bundle_of_python_ebooks_benefiting_the/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tu10qu/new_humble_bundle_of_python_ebooks_benefiting_the/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tu10qu</id><link href="https://www.reddit.com/r/Python/comments/1tu10qu/new_humble_bundle_of_python_ebooks_benefiting_the/" /><updated>2026-06-01T18:23:27+00:00</updated><published>2026-06-01T18:23:27+00:00</published><title>New Humble Bundle of Python ebooks benefiting the Python Software Foundation</title></entry><entry><author><name>/u/hmoein</name><uri>https://www.reddit.com/user/hmoein</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/NavodPeiris/grizzlars&quot;&gt;Grizzlars&lt;/a&gt; is Python bindings for the C++ DataFrame with an interface almost identical to Pandas. It is a bit of work in progress. It depends on an older version of C++ DataFrame than the latest release. But it is moving along surely.&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/hmoein&quot;&gt; /u/hmoein &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tuapxu/python_bindings_for_the_c_dataframe/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tuapxu/python_bindings_for_the_c_dataframe/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tuapxu</id><link href="https://www.reddit.com/r/Python/comments/1tuapxu/python_bindings_for_the_c_dataframe/" /><updated>2026-06-02T00:16:41+00:00</updated><published>2026-06-02T00:16:41+00:00</published><title>Python bindings for the C++ DataFrame</title></entry><entry><author><name>/u/shivama205</name><uri>https://www.reddit.com/user/shivama205</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Shipping a small tool I built for a docs pipeline at work. Cleanly converts .excalidraw to PNG or SVG without needing Node, node-canvas, or a headless Chrome.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Quick taste:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;code&gt;pip install excalidraw-render&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;code&gt;excalidraw-render diagram.excalidraw # → diagram.png&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;code&gt;excalidraw-render diagram.excalidraw -f svg&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;code&gt;excalidraw-render ./docs/ # batch mode&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Why a new tool?&lt;/strong&gt; The existing options:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;`excalidraw_export` (npm): SVG-only, depends on node-canvas which is famously hard to install&lt;/li&gt; &lt;li&gt;`@excalidraw/excalidraw` (npm): React library, needs a headless browser to render&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;For automating diagram exports in CI/docs generators, both are heavy. excalidraw-render is just Python + cairosvg.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Honest trade-off:&lt;/strong&gt; no roughjs hand-drawn style — that&amp;#39;s a JS library with no native Python port. The output is clean vector instead, which is usually what doc pipelines want. A pyroughjs port is on the roadmap.&lt;/p&gt; &lt;p&gt;v0.1 covers most element types (rectangle, ellipse, diamond, arrow with all 10 arrowhead variants, line, text, freedraw, image, frame). v0.2 adds PDF/JPEG, terminal output for iTerm2/Kitty/Sixel, a Markdown preprocessor that inlines .excalidraw references, and watch mode.&lt;/p&gt; &lt;p&gt;Also brew-installable on macOS: &lt;code&gt;brew install shivama205/tap/excalidraw-render&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Repo: &lt;a href=&quot;https://github.com/shivama205/excalidraw-render&quot;&gt;https://github.com/shivama205/excalidraw-render&lt;/a&gt; (Listed in [&lt;a href=&quot;https://github.com/willianjusten/awesome-svg&quot;&gt;awesome-svg github&lt;/a&gt;] under Optimization &amp;amp; Tools.)&lt;/p&gt; &lt;p&gt;Feedback welcome, especially on element edge cases I might&amp;#39;ve missed.&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/shivama205&quot;&gt; /u/shivama205 &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tu4d2z/excalidrawrender_render_excalidraw_files_to/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tu4d2z/excalidrawrender_render_excalidraw_files_to/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tu4d2z</id><link href="https://www.reddit.com/r/Python/comments/1tu4d2z/excalidrawrender_render_excalidraw_files_to/" /><updated>2026-06-01T20:15:51+00:00</updated><published>2026-06-01T20:15:51+00:00</published><title>excalidraw-render: render .excalidraw files to PNG/SVG in pure Python, no Node, no headless browser</title></entry><entry><author><name>/u/LorenzoNardi</name><uri>https://www.reddit.com/user/LorenzoNardi</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;I&amp;#39;ve been working on a document processing tool that extracts structured data from PDFs (invoices, bank statements, contracts) and I ran into two problems that aren&amp;#39;t well documented anywhere: OCR fallback strategy and per-language field normalization. Sharing what worked.&lt;/p&gt; &lt;p&gt;**Problem 1: Silent OCR failure**&lt;/p&gt; &lt;p&gt;Most guides tell you to use `pdfplumber` or `PyMuPDF` to extract text. What they don&amp;#39;t tell you is that scanned PDFs return an empty string (or worse, garbage spacing characters) without raising any exception. You&amp;#39;ll process it, send it to an LLM, and get hallucinated data back – all silently.&lt;/p&gt; &lt;p&gt;My solution: check text length and density *before* calling the LLM. If the extracted text is below a threshold (I use 50 meaningful characters per page), fall back to Tesseract OCR:&lt;/p&gt; &lt;p&gt;```python&lt;/p&gt; &lt;p&gt;import pdfplumber&lt;/p&gt; &lt;p&gt;import pytesseract&lt;/p&gt; &lt;p&gt;from pdf2image import convert_from_bytes&lt;/p&gt; &lt;p&gt;def extract_text_with_fallback(pdf_bytes: bytes) -&amp;gt; str:&lt;/p&gt; &lt;p&gt;with pdfplumber.open(io.BytesIO(pdf_bytes)) as pdf:&lt;/p&gt; &lt;p&gt;text = &amp;#39;&amp;#39;.join(p.extract_text() or &amp;#39;&amp;#39; for p in pdf.pages)&lt;/p&gt; &lt;p&gt;# Scanned PDF check: meaningful chars per page&lt;/p&gt; &lt;p&gt;pages = len(pdf.pages) if pdf.pages else 1&lt;/p&gt; &lt;p&gt;if len(text.strip()) / pages &amp;lt; 50:&lt;/p&gt; &lt;p&gt;images = convert_from_bytes(pdf_bytes, dpi=300)&lt;/p&gt; &lt;p&gt;text = &amp;#39;\n&amp;#39;.join(pytesseract.image_to_string(img) for img in images)&lt;/p&gt; &lt;p&gt;return text&lt;/p&gt; &lt;p&gt;```&lt;/p&gt; &lt;p&gt;The `dpi=300` matters a lot – at 150dpi Tesseract misses characters on dense invoices. 300 is the sweet spot between accuracy and speed.&lt;/p&gt; &lt;p&gt;**Problem 2: Per-language field normalization**&lt;/p&gt; &lt;p&gt;European invoices are a nightmare. The same field can be:&lt;/p&gt; &lt;p&gt;- `Total` / `Totale` / `Gesamtbetrag` / `Montant total`&lt;/p&gt; &lt;p&gt;- Dates as `31/12/2024` (IT), `31.12.2024` (DE), `2024-12-31` (ISO)&lt;/p&gt; &lt;p&gt;- Decimals as `1.234,56` (IT/DE) vs `1,234.56` (EN)&lt;/p&gt; &lt;p&gt;Instead of trying to make one regex rule to catch all formats, I built a simple language detector that runs on a short sample of the text, then loads a locale-specific normalization config:&lt;/p&gt; &lt;p&gt;```python&lt;/p&gt; &lt;p&gt;LOCALE_CONFIGS = {&lt;/p&gt; &lt;p&gt;&amp;#39;it&amp;#39;: {&amp;#39;decimal_sep&amp;#39;: &amp;#39;,&amp;#39;, &amp;#39;thousand_sep&amp;#39;: &amp;#39;.&amp;#39;, &amp;#39;date_formats&amp;#39;: [&amp;#39;%d/%m/%Y&amp;#39;, &amp;#39;%d-%m-%Y&amp;#39;]},&lt;/p&gt; &lt;p&gt;&amp;#39;de&amp;#39;: {&amp;#39;decimal_sep&amp;#39;: &amp;#39;,&amp;#39;, &amp;#39;thousand_sep&amp;#39;: &amp;#39;.&amp;#39;, &amp;#39;date_formats&amp;#39;: [&amp;#39;%d.%m.%Y&amp;#39;]},&lt;/p&gt; &lt;p&gt;&amp;#39;en&amp;#39;: {&amp;#39;decimal_sep&amp;#39;: &amp;#39;.&amp;#39;, &amp;#39;thousand_sep&amp;#39;: &amp;#39;,&amp;#39;, &amp;#39;date_formats&amp;#39;: [&amp;#39;%m/%d/%Y&amp;#39;, &amp;#39;%Y-%m-%d&amp;#39;]},&lt;/p&gt; &lt;p&gt;&amp;#39;fr&amp;#39;: {&amp;#39;decimal_sep&amp;#39;: &amp;#39;,&amp;#39;, &amp;#39;thousand_sep&amp;#39;: &amp;#39; &amp;#39;, &amp;#39;date_formats&amp;#39;: [&amp;#39;%d/%m/%Y&amp;#39;]},&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;p&gt;def normalize_amount(raw: str, locale: str) -&amp;gt; float:&lt;/p&gt; &lt;p&gt;cfg = LOCALE_CONFIGS.get(locale, LOCALE_CONFIGS[&amp;#39;en&amp;#39;])&lt;/p&gt; &lt;p&gt;cleaned = raw.replace(cfg[&amp;#39;thousand_sep&amp;#39;], &amp;#39;&amp;#39;).replace(cfg[&amp;#39;decimal_sep&amp;#39;], &amp;#39;.&amp;#39;)&lt;/p&gt; &lt;p&gt;return float(re.sub(r&amp;#39;[^\d.]&amp;#39;, &amp;#39;&amp;#39;, cleaned))&lt;/p&gt; &lt;p&gt;```&lt;/p&gt; &lt;p&gt;For language detection I use `langdetect` on the first 500 characters of extracted text – fast, lightweight, accurate enough for this use case.&lt;/p&gt; &lt;p&gt;Hope this helps anyone building document processing pipelines. Happy to answer questions on edge cases I&amp;#39;ve hit.&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/LorenzoNardi&quot;&gt; /u/LorenzoNardi &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tu4hge/how_i_handle_ocr_fallback_and_perlanguage_field/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tu4hge/how_i_handle_ocr_fallback_and_perlanguage_field/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tu4hge</id><link href="https://www.reddit.com/r/Python/comments/1tu4hge/how_i_handle_ocr_fallback_and_perlanguage_field/" /><updated>2026-06-01T20:20:02+00:00</updated><published>2026-06-01T20:20:02+00:00</published><title>How I handle OCR fallback and per-language field parsing when extracting data from PDFs in Python (w</title></entry><entry><author><name>/u/AutoModerator</name><uri>https://www.reddit.com/user/AutoModerator</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;h1&gt;Weekly Thread: Project Ideas 💡&lt;/h1&gt; &lt;p&gt;Welcome to our weekly Project Ideas thread! Whether you&amp;#39;re a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.&lt;/p&gt; &lt;h2&gt;How it Works:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Suggest a Project&lt;/strong&gt;: Comment your project idea—be it beginner-friendly or advanced.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Build &amp;amp; Share&lt;/strong&gt;: If you complete a project, reply to the original comment, share your experience, and attach your source code.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Explore&lt;/strong&gt;: Looking for ideas? Check out Al Sweigart&amp;#39;s &lt;a href=&quot;https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242&quot;&gt;&amp;quot;The Big Book of Small Python Projects&amp;quot;&lt;/a&gt; for inspiration.&lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;Guidelines:&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;Clearly state the difficulty level.&lt;/li&gt; &lt;li&gt;Provide a brief description and, if possible, outline the tech stack.&lt;/li&gt; &lt;li&gt;Feel free to link to tutorials or resources that might help.&lt;/li&gt; &lt;/ul&gt; &lt;h1&gt;Example Submissions:&lt;/h1&gt; &lt;h2&gt;Project Idea: Chatbot&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;Difficulty&lt;/strong&gt;: Intermediate&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Tech Stack&lt;/strong&gt;: Python, NLP, Flask/FastAPI/Litestar &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;: Create a chatbot that can answer FAQs for a website.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;: &lt;a href=&quot;https://www.youtube.com/watch?v=a37BL0stIuM&quot;&gt;Building a Chatbot with Python&lt;/a&gt;&lt;/p&gt; &lt;h1&gt;Project Idea: Weather Dashboard&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Difficulty&lt;/strong&gt;: Beginner&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Tech Stack&lt;/strong&gt;: HTML, CSS, JavaScript, API&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;: Build a dashboard that displays real-time weather information using a weather API.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;: &lt;a href=&quot;https://www.youtube.com/watch?v=9P5MY_2i7K8&quot;&gt;Weather API Tutorial&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;Project Idea: File Organizer&lt;/h2&gt; &lt;p&gt;&lt;strong&gt;Difficulty&lt;/strong&gt;: Beginner&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Tech Stack&lt;/strong&gt;: Python, File I/O&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;: Create a script that organizes files in a directory into sub-folders based on file type.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;: &lt;a href=&quot;https://automatetheboringstuff.com/2e/chapter9/&quot;&gt;Automate the Boring Stuff: Organizing Files&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Let&amp;#39;s help each other grow. Happy coding! 🌟&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/AutoModerator&quot;&gt; /u/AutoModerator &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1ttbn5g/monday_daily_thread_project_ideas/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1ttbn5g/monday_daily_thread_project_ideas/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1ttbn5g</id><link href="https://www.reddit.com/r/Python/comments/1ttbn5g/monday_daily_thread_project_ideas/" /><updated>2026-06-01T00:00:05+00:00</updated><published>2026-06-01T00:00:05+00:00</published><title>Monday Daily Thread: Project ideas!</title></entry><entry><author><name>/u/Cold-Detective1356</name><uri>https://www.reddit.com/user/Cold-Detective1356</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Looking for an interesting physics(theoretical or not) or chemistry project to work with in python.&lt;/p&gt; &lt;p&gt;Please include your ideas and reasons below.&lt;/p&gt; &lt;p&gt;Also I might send progress through, so please send suggestions for additions!&lt;/p&gt; &lt;p&gt;&lt;code&gt;:D&lt;/code&gt;&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Cold-Detective1356&quot;&gt; /u/Cold-Detective1356 &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tu0dv2/what_is_a_good_project_idea_for_science/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tu0dv2/what_is_a_good_project_idea_for_science/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tu0dv2</id><link href="https://www.reddit.com/r/Python/comments/1tu0dv2/what_is_a_good_project_idea_for_science/" /><updated>2026-06-01T18:03:21+00:00</updated><published>2026-06-01T18:03:21+00:00</published><title>What is a good project idea for science?</title></entry><entry><author><name>/u/AutoModerator</name><uri>https://www.reddit.com/user/AutoModerator</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;h1&gt;Weekly Thread: What&amp;#39;s Everyone Working On This Week? 🛠️&lt;/h1&gt; &lt;p&gt;Hello &lt;a href=&quot;/r/Python&quot;&gt;r/Python&lt;/a&gt;! It&amp;#39;s time to share what you&amp;#39;ve been working on! Whether it&amp;#39;s a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you&amp;#39;re up to!&lt;/p&gt; &lt;h1&gt;How it Works:&lt;/h1&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Show &amp;amp; Tell&lt;/strong&gt;: Share your current projects, completed works, or future ideas.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Discuss&lt;/strong&gt;: Get feedback, find collaborators, or just chat about your project.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Inspire&lt;/strong&gt;: Your project might inspire someone else, just as you might get inspired here.&lt;/li&gt; &lt;/ol&gt; &lt;h1&gt;Guidelines:&lt;/h1&gt; &lt;ul&gt; &lt;li&gt;Feel free to include as many details as you&amp;#39;d like. Code snippets, screenshots, and links are all welcome.&lt;/li&gt; &lt;li&gt;Whether it&amp;#39;s your job, your hobby, or your passion project, all Python-related work is welcome here.&lt;/li&gt; &lt;/ul&gt; &lt;h1&gt;Example Shares:&lt;/h1&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Machine Learning Model&lt;/strong&gt;: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Web Scraping&lt;/strong&gt;: Built a script to scrape and analyze news articles. It&amp;#39;s helped me understand media bias better.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Automation&lt;/strong&gt;: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Let&amp;#39;s build and grow together! Share your journey and learn from others. Happy coding! 🌟&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/AutoModerator&quot;&gt; /u/AutoModerator &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tsfkgg/sunday_daily_thread_whats_everyone_working_on/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tsfkgg/sunday_daily_thread_whats_everyone_working_on/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tsfkgg</id><link href="https://www.reddit.com/r/Python/comments/1tsfkgg/sunday_daily_thread_whats_everyone_working_on/" /><updated>2026-05-31T00:00:06+00:00</updated><published>2026-05-31T00:00:06+00:00</published><title>Sunday Daily Thread: What's everyone working on this week?</title></entry><entry><author><name>/u/Chunky_cold_mandala</name><uri>https://www.reddit.com/user/Chunky_cold_mandala</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Hey all,&lt;/p&gt; &lt;p&gt;I&amp;#39;m new the world of interpreting pypi numbers and peaks and trends. What would you say about this? &lt;a href=&quot;https://pepy.tech/projects/gitgalaxy?timeRange=threeMonths&amp;amp;category=version&amp;amp;includeCIDownloads=true&amp;amp;granularity=daily&amp;amp;viewType=line&amp;amp;versions=Total%2C2.*%2C1.*&quot;&gt;https://pepy.tech/projects/gitgalaxy?timeRange=threeMonths&amp;amp;category=version&amp;amp;includeCIDownloads=true&amp;amp;granularity=daily&amp;amp;viewType=line&amp;amp;versions=Total%2C2.*%2C1.*&lt;/a&gt; I&amp;#39;ve got 11k downloads in 2 months but 36 GitHub stars. Is this a normal ratio? Are most of these bots? It seems like GitHub stars are rare but downloads have some basal amount of noise values? Or is this a strong signal that some ppl have found value in my project? why are the peaks so peaky?&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Chunky_cold_mandala&quot;&gt; /u/Chunky_cold_mandala &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tt7jc6/perspective_on_pypi_numbers/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tt7jc6/perspective_on_pypi_numbers/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tt7jc6</id><link href="https://www.reddit.com/r/Python/comments/1tt7jc6/perspective_on_pypi_numbers/" /><updated>2026-05-31T21:08:28+00:00</updated><published>2026-05-31T21:08:28+00:00</published><title>Perspective on pypi numbers</title></entry><entry><author><name>/u/Aggravating-Mobile33</name><uri>https://www.reddit.com/user/Aggravating-Mobile33</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;This is my reply to the vulnerability CVE-2026-48710:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://marcelotryle.com/blog/2026/05/28/cve-2026-48710-a-maintainers-perspective&quot;&gt;https://marcelotryle.com/blog/2026/05/28/cve-2026-48710-a-maintainers-perspective&lt;/a&gt;&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Aggravating-Mobile33&quot;&gt; /u/Aggravating-Mobile33 &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tr5s1c/cve202648710_a_maintainers_perspective/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tr5s1c/cve202648710_a_maintainers_perspective/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tr5s1c</id><link href="https://www.reddit.com/r/Python/comments/1tr5s1c/cve202648710_a_maintainers_perspective/" /><updated>2026-05-29T15:40:48+00:00</updated><published>2026-05-29T15:40:48+00:00</published><title>CVE-2026-48710: A Maintainer's Perspective</title></entry><entry><author><name>/u/catafest</name><uri>https://www.reddit.com/user/catafest</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;MiniMax M2.7 works well on Python with the OpenAI Python package. See my test on my blog: &lt;a href=&quot;https://python-catalin.blogspot.com/2026/05/python-31011-minimax-m27-tested-with.html&quot;&gt;https://python-catalin.blogspot.com/2026/05/python-31011-minimax-m27-tested-with.html&lt;/a&gt;&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/catafest&quot;&gt; /u/catafest &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tsf4n7/news_minimax_m27_works_well_on_python_with_openai/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tsf4n7/news_minimax_m27_works_well_on_python_with_openai/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tsf4n7</id><link href="https://www.reddit.com/r/Python/comments/1tsf4n7/news_minimax_m27_works_well_on_python_with_openai/" /><updated>2026-05-30T23:39:44+00:00</updated><published>2026-05-30T23:39:44+00:00</published><title>News : MiniMax M2.7 works well on python with openai python package.</title></entry><entry><author><name>/u/Beginning-Fruit-1397</name><uri>https://www.reddit.com/user/Beginning-Fruit-1397</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;says you are the maintainer of a small (50-100 stars) library.&lt;/p&gt; &lt;p&gt;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!&lt;/p&gt; &lt;p&gt;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&amp;#39;s clearly explained in the contributing doc, and purely hallucinated imports like &amp;quot;from my lib import Foo, Bar&amp;quot; even tough there&amp;#39;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...)&lt;/p&gt; &lt;p&gt;how to best deal with this without appearing hostile to other potential future contributors?&lt;/p&gt; &lt;p&gt;I want contributors, I&amp;#39;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 &amp;quot;good first issues&amp;quot; label, and thus I&amp;#39;m not sure on the value of giving an honest review if it&amp;#39;s not clear on wether there&amp;#39;s a genuine intention to resolve the issue or just collect cool github points.&lt;/p&gt; &lt;p&gt;EDIT 11h later:&lt;/p&gt; &lt;p&gt;Thanks to everyone who gave his perspective!! &lt;/p&gt; &lt;p&gt;I don&amp;#39;t think I have the time immediately to answer to everyone but there&amp;#39;s a lot of good advice here.&lt;/p&gt; &lt;p&gt;By the way LMAO I should have linked my lib to maybe get actual contributors, this post is doing views.&lt;/p&gt; &lt;p&gt;Hint: it&amp;#39;s the top one ranked in this comparison -&amp;gt;&lt;br/&gt; &lt;a href=&quot;https://www.reddit.com/r/Python/comments/1rj3ct7/a_comparison_of_rustlike_fluent_iterator_libraries/&quot;&gt;https://www.reddit.com/r/Python/comments/1rj3ct7/a_comparison_of_rustlike_fluent_iterator_libraries/&lt;/a&gt;&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Beginning-Fruit-1397&quot;&gt; /u/Beginning-Fruit-1397 &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqrlx5/how_to_deal_with_slop_prs_as_a_maintainer/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqrlx5/how_to_deal_with_slop_prs_as_a_maintainer/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tqrlx5</id><link href="https://www.reddit.com/r/Python/comments/1tqrlx5/how_to_deal_with_slop_prs_as_a_maintainer/" /><updated>2026-05-29T05:04:17+00:00</updated><published>2026-05-29T05:04:17+00:00</published><title>How to deal with slop PR's as a maintainer?</title></entry><entry><author><name>/u/AutoModerator</name><uri>https://www.reddit.com/user/AutoModerator</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;h1&gt;Weekly Thread: Resource Request and Sharing 📚&lt;/h1&gt; &lt;p&gt;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!&lt;/p&gt; &lt;h2&gt;How it Works:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Request&lt;/strong&gt;: Can&amp;#39;t find a resource on a particular topic? Ask here!&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Share&lt;/strong&gt;: Found something useful? Share it with the community.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Review&lt;/strong&gt;: Give or get opinions on Python resources you&amp;#39;ve used.&lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;Guidelines:&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;Please include the type of resource (e.g., book, video, article) and the topic.&lt;/li&gt; &lt;li&gt;Always be respectful when reviewing someone else&amp;#39;s shared resource.&lt;/li&gt; &lt;/ul&gt; &lt;h2&gt;Example Shares:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Book&lt;/strong&gt;: &lt;a href=&quot;https://www.amazon.com/Fluent-Python-Concise-Effective-Programming/dp/1491946008&quot;&gt;&amp;quot;Fluent Python&amp;quot;&lt;/a&gt; - Great for understanding Pythonic idioms.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Video&lt;/strong&gt;: &lt;a href=&quot;https://www.youtube.com/watch?v=pkYVOmU3MgA&quot;&gt;Python Data Structures&lt;/a&gt; - Excellent overview of Python&amp;#39;s built-in data structures.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Article&lt;/strong&gt;: &lt;a href=&quot;https://realpython.com/primer-on-python-decorators/&quot;&gt;Understanding Python Decorators&lt;/a&gt; - A deep dive into decorators.&lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;Example Requests:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Looking for&lt;/strong&gt;: Video tutorials on web scraping with Python.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Need&lt;/strong&gt;: Book recommendations for Python machine learning.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Share the knowledge, enrich the community. Happy learning! 🌟&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/AutoModerator&quot;&gt; /u/AutoModerator &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1trjyxs/saturday_daily_thread_resource_request_and/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1trjyxs/saturday_daily_thread_resource_request_and/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1trjyxs</id><link href="https://www.reddit.com/r/Python/comments/1trjyxs/saturday_daily_thread_resource_request_and/" /><updated>2026-05-30T00:00:05+00:00</updated><published>2026-05-30T00:00:05+00:00</published><title>Saturday Daily Thread: Resource Request and Sharing! Daily Thread</title></entry><entry><author><name>/u/Bladerunner_7_</name><uri>https://www.reddit.com/user/Bladerunner_7_</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Not looking for side projects.&lt;/p&gt; &lt;p&gt;I mean automations that actually became part of your workflow.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Data processing pipelines&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Report generation&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Monitoring scripts&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;Internal tools&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;File organization systems&lt;/em&gt;&lt;/p&gt; &lt;p&gt;The most valuable automation I built was probably only ~200 lines of code, but it eliminated a repetitive task I was doing daily.&lt;/p&gt; &lt;p&gt;What Python script ended up having the highest ROI for you?&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Bladerunner_7_&quot;&gt; /u/Bladerunner_7_ &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tromoz/what_python_automation_saved_you_the_most_hours/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tromoz/what_python_automation_saved_you_the_most_hours/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tromoz</id><link href="https://www.reddit.com/r/Python/comments/1tromoz/what_python_automation_saved_you_the_most_hours/" /><updated>2026-05-30T03:35:38+00:00</updated><published>2026-05-30T03:35:38+00:00</published><title>What Python automation saved you the most hours over the last year?</title></entry><entry><author><name>/u/Vivek-Kumar-yadav</name><uri>https://www.reddit.com/user/Vivek-Kumar-yadav</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;We&amp;#39;re building an AI agent that runs SQL queries against PostgreSQL databases and generates charts, anomaly reports, and analysis from natural language queries.&lt;/p&gt; &lt;p&gt;The agent is a SingleLLM ReAct loop — one model, one growing conversation, up to 15 iterations. No multi-agent orchestration, no separate planner.&lt;/p&gt; &lt;p&gt;The biggest performance problem we hit: the tool registry has 50+ tools. Sending all tool schemas to the LLM every iteration costs ~18,000 tokens per call. With 15 iterations that&amp;#39;s 270,000 tokens per query just for tool definitions before any real work.&lt;/p&gt; &lt;p&gt;Our fix: intent classification before the loop starts.&lt;/p&gt; &lt;p&gt;The LLM classifies the query into 1 of 13 intents (explore, analyze, time, segment, quality, report, predict, etc.) and we only pass the relevant tool group. 18K → 2K tokens per iteration. 89% reduction with no loss in output quality.&lt;/p&gt; &lt;p&gt;We also added:&lt;/p&gt; &lt;p&gt;- Dynamic intent recheck every 3 iterations (queries shift mid-loop)&lt;/p&gt; &lt;p&gt;- Intent-based model routing (Nova Micro for explore, Nova Lite for reasoning tasks)&lt;/p&gt; &lt;p&gt;- Tool call deduplication to prevent repeated list_tables fetches&lt;/p&gt; &lt;p&gt;- Parallel tool execution via asyncio.gather&lt;/p&gt; &lt;p&gt;- Separate retry logic for connection errors vs SQL syntax errors&lt;/p&gt; &lt;p&gt;Full architecture writeup with code, flowcharts, and the full ReAct loop mechanics here:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://vivekmind.com/blog/the-singlellm-agent-how-one-model-one-loop-and-15-iterations-build-a-reasoning-engine&quot;&gt;https://vivekmind.com/blog/the-singlellm-agent-how-one-model-one-loop-and-15-iterations-build-a-reasoning-engine&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Happy to answer questions about any of it — particularly around the intent classification design or the artifact emission pipeline.&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Vivek-Kumar-yadav&quot;&gt; /u/Vivek-Kumar-yadav &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1ts5bgw/how_we_cut_llm_token_usage_89_in_a_react_agent/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1ts5bgw/how_we_cut_llm_token_usage_89_in_a_react_agent/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1ts5bgw</id><link href="https://www.reddit.com/r/Python/comments/1ts5bgw/how_we_cut_llm_token_usage_89_in_a_react_agent/" /><updated>2026-05-30T17:01:50+00:00</updated><published>2026-05-30T17:01:50+00:00</published><title>How we cut LLM token usage 89% in a ReAct agent using intent classification — architecture writeup</title></entry><entry><author><name>/u/Candy_Sombrelune</name><uri>https://www.reddit.com/user/Candy_Sombrelune</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Hey guys,&lt;/p&gt; &lt;p&gt;Just wanted to share my current learning workflow as a Python beginner. I see a lot of advice warning against over-relying on AI, so I built a system that forces me to think first:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Map out the logic.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Write the pseudocode.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Code it out and try to polish/refactor it using my own brain power first.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Use Gemini in VS Code &lt;em&gt;only&lt;/em&gt; when I&amp;#39;m completely stuck, making sure to ask it for a deep, clear explanation of the code it provides.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Building the logic first and using AI as a tutor rather than a code generator has drastically improved my retention.&lt;/p&gt; &lt;p&gt;For those who use AI while learning, how do you make sure you&amp;#39;re still actually learning?&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Candy_Sombrelune&quot;&gt; /u/Candy_Sombrelune &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1trw3d2/my_4step_in_python_logic_pseudocode_code_ai_what/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1trw3d2/my_4step_in_python_logic_pseudocode_code_ai_what/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1trw3d2</id><link href="https://www.reddit.com/r/Python/comments/1trw3d2/my_4step_in_python_logic_pseudocode_code_ai_what/" /><updated>2026-05-30T10:19:38+00:00</updated><published>2026-05-30T10:19:38+00:00</published><title>My 4-step in Python (Logic -&gt; Pseudocode -&gt; Code -&gt; AI). What do you think?</title></entry><entry><author><name>/u/Angeeliiccc</name><uri>https://www.reddit.com/user/Angeeliiccc</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Hey, everyone!&lt;/p&gt; &lt;p&gt;I&amp;#39;m trying to find a decent home for my side projects (FastAPI stuff, one Django app, and a Celery worker that scrapes data overnight). Nothing crazy, I just want to SSH in, set up a venv, point Gunicord at my WSGI app, and not have the provider babysit my stack. Pay-as-you-go is a big plus since some of my bots only run a few hours a day.&lt;/p&gt; &lt;p&gt;So far I&amp;#39;ve looked at DO, Vultr, Serverspace and Linode - each has its own quirks around pricing, regions, and how much hand-holding they do.&lt;/p&gt; &lt;p&gt;What are you all running your Python apps on? Any hidden gem I&amp;#39;m missing, especially for heavier ML workloads or Celery queues?&lt;/p&gt; &lt;p&gt;Thanks!&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Angeeliiccc&quot;&gt; /u/Angeeliiccc &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqlya5/whats_python_cloud_hosting_using_these_days/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqlya5/whats_python_cloud_hosting_using_these_days/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tqlya5</id><link href="https://www.reddit.com/r/Python/comments/1tqlya5/whats_python_cloud_hosting_using_these_days/" /><updated>2026-05-29T00:44:59+00:00</updated><published>2026-05-29T00:44:59+00:00</published><title>What's Python cloud hosting using these days?</title></entry><entry><author><name>/u/UnhappyPay2752</name><uri>https://www.reddit.com/user/UnhappyPay2752</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;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&amp;#39;s been copied between notebooks so many times the original author is impossible to trace. &lt;/p&gt; &lt;p&gt;None of it goes through any review process that the engineering team&amp;#39;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. &lt;/p&gt; &lt;p&gt;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.&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/UnhappyPay2752&quot;&gt; /u/UnhappyPay2752 &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqtjal/jupyter_notebooks_touching_production_data_are/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqtjal/jupyter_notebooks_touching_production_data_are/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tqtjal</id><link href="https://www.reddit.com/r/Python/comments/1tqtjal/jupyter_notebooks_touching_production_data_are/" /><updated>2026-05-29T06:45:55+00:00</updated><published>2026-05-29T06:45:55+00:00</published><title>Jupyter notebooks touching production data are application code from a security standpoint</title></entry><entry><author><name>/u/sc0v0ne</name><uri>https://www.reddit.com/user/sc0v0ne</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;I can&amp;#39;t share the code because it was a company-wide error.&lt;/p&gt; &lt;p&gt;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: &amp;quot;Free: Invalid Pointer&amp;quot;. 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.&lt;/p&gt; &lt;p&gt;Okay, up to this point it&amp;#39;s confusing because it didn&amp;#39;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.&lt;/p&gt; &lt;p&gt;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?&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/sc0v0ne&quot;&gt; /u/sc0v0ne &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1trk774/free_invalid_pointer_running_sqlalquemy_and/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1trk774/free_invalid_pointer_running_sqlalquemy_and/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1trk774</id><link href="https://www.reddit.com/r/Python/comments/1trk774/free_invalid_pointer_running_sqlalquemy_and/" /><updated>2026-05-30T00:09:29+00:00</updated><published>2026-05-30T00:09:29+00:00</published><title>Free: Invalid Pointer - Running SQLAlquemy and Tensorflow in Google Vertex AI</title></entry><entry><author><name>/u/pplonski</name><uri>https://www.reddit.com/user/pplonski</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Hi there!&lt;/p&gt; &lt;p&gt;I&amp;#39;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.&lt;/p&gt; &lt;p&gt;What do you think about such use case for famous ipynb format? What else are you using to store conversations with AI?&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/pplonski&quot;&gt; /u/pplonski &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tr5esg/im_using_ipynb_notebook_format_to_store/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tr5esg/im_using_ipynb_notebook_format_to_store/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tr5esg</id><link href="https://www.reddit.com/r/Python/comments/1tr5esg/im_using_ipynb_notebook_format_to_store/" /><updated>2026-05-29T15:28:46+00:00</updated><published>2026-05-29T15:28:46+00:00</published><title>I'm using ipynb notebook format to store conversations with AI data analyst</title></entry><entry><author><name>/u/AutoModerator</name><uri>https://www.reddit.com/user/AutoModerator</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;h1&gt;Weekly Thread: Meta Discussions and Free Talk Friday 🎙️&lt;/h1&gt; &lt;p&gt;Welcome to Free Talk Friday on &lt;a href=&quot;/r/Python&quot;&gt;/r/Python&lt;/a&gt;! This is the place to discuss the &lt;a href=&quot;/r/Python&quot;&gt;r/Python&lt;/a&gt; community (meta discussions), Python news, projects, or anything else Python-related!&lt;/p&gt; &lt;h2&gt;How it Works:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Open Mic&lt;/strong&gt;: Share your thoughts, questions, or anything you&amp;#39;d like related to Python or the community.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Community Pulse&lt;/strong&gt;: Discuss what you feel is working well or what could be improved in the &lt;a href=&quot;/r/python&quot;&gt;/r/python&lt;/a&gt; community.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;News &amp;amp; Updates&lt;/strong&gt;: Keep up-to-date with the latest in Python and share any news you find interesting.&lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;Guidelines:&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;All topics should be related to Python or the &lt;a href=&quot;/r/python&quot;&gt;/r/python&lt;/a&gt; community.&lt;/li&gt; &lt;li&gt;Be respectful and follow Reddit&amp;#39;s &lt;a href=&quot;https://www.redditinc.com/policies/content-policy&quot;&gt;Code of Conduct&lt;/a&gt;.&lt;/li&gt; &lt;/ul&gt; &lt;h2&gt;Example Topics:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;New Python Release&lt;/strong&gt;: What do you think about the new features in Python 3.11?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Community Events&lt;/strong&gt;: Any Python meetups or webinars coming up?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Learning Resources&lt;/strong&gt;: Found a great Python tutorial? Share it here!&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Job Market&lt;/strong&gt;: How has Python impacted your career?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Hot Takes&lt;/strong&gt;: Got a controversial Python opinion? Let&amp;#39;s hear it!&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Community Ideas&lt;/strong&gt;: Something you&amp;#39;d like to see us do? tell us.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Let&amp;#39;s keep the conversation going. Happy discussing! 🌟&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/AutoModerator&quot;&gt; /u/AutoModerator &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqkxea/friday_daily_thread_rpython_meta_and_freetalk/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqkxea/friday_daily_thread_rpython_meta_and_freetalk/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tqkxea</id><link href="https://www.reddit.com/r/Python/comments/1tqkxea/friday_daily_thread_rpython_meta_and_freetalk/" /><updated>2026-05-29T00:00:35+00:00</updated><published>2026-05-29T00:00:35+00:00</published><title>Friday Daily Thread: r/Python Meta and Free-Talk Fridays</title></entry><entry><author><name>/u/fxboshop</name><uri>https://www.reddit.com/user/fxboshop</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;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.&lt;/p&gt; &lt;p&gt;What is the best way to protect my software from cracking, reverse engineering, or piracy without triggering antivirus false positives?&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/fxboshop&quot;&gt; /u/fxboshop &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqt9gd/best_way_to_protect_python_windows_software/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tqt9gd/best_way_to_protect_python_windows_software/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tqt9gd</id><link href="https://www.reddit.com/r/Python/comments/1tqt9gd/best_way_to_protect_python_windows_software/" /><updated>2026-05-29T06:30:52+00:00</updated><published>2026-05-29T06:30:52+00:00</published><title>Best Way to Protect Python Windows Software Without Antivirus False Positives?</title></entry><entry><author><name>/u/AutoModerator</name><uri>https://www.reddit.com/user/AutoModerator</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;h1&gt;Weekly Thread: Professional Use, Jobs, and Education 🏢&lt;/h1&gt; &lt;p&gt;Welcome to this week&amp;#39;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 &lt;strong&gt;not for recruitment&lt;/strong&gt;.&lt;/p&gt; &lt;hr/&gt; &lt;h2&gt;How it Works:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Career Talk&lt;/strong&gt;: Discuss using Python in your job, or the job market for Python roles.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Education Q&amp;amp;A&lt;/strong&gt;: Ask or answer questions about Python courses, certifications, and educational resources.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Workplace Chat&lt;/strong&gt;: Share your experiences, challenges, or success stories about using Python professionally.&lt;/li&gt; &lt;/ol&gt; &lt;hr/&gt; &lt;h2&gt;Guidelines:&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;This thread is &lt;strong&gt;not for recruitment&lt;/strong&gt;. For job postings, please see &lt;a href=&quot;/r/PythonJobs&quot;&gt;r/PythonJobs&lt;/a&gt; or the recruitment thread in the sidebar.&lt;/li&gt; &lt;li&gt;Keep discussions relevant to Python in the professional and educational context.&lt;/li&gt; &lt;/ul&gt; &lt;hr/&gt; &lt;h2&gt;Example Topics:&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Career Paths&lt;/strong&gt;: What kinds of roles are out there for Python developers?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Certifications&lt;/strong&gt;: Are Python certifications worth it?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Course Recommendations&lt;/strong&gt;: Any good advanced Python courses to recommend?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Workplace Tools&lt;/strong&gt;: What Python libraries are indispensable in your professional work?&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Interview Tips&lt;/strong&gt;: What types of Python questions are commonly asked in interviews?&lt;/li&gt; &lt;/ol&gt; &lt;hr/&gt; &lt;p&gt;Let&amp;#39;s help each other grow in our careers and education. Happy discussing! 🌟&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/AutoModerator&quot;&gt; /u/AutoModerator &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tpn1t3/thursday_daily_thread_python_careers_courses_and/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tpn1t3/thursday_daily_thread_python_careers_courses_and/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tpn1t3</id><link href="https://www.reddit.com/r/Python/comments/1tpn1t3/thursday_daily_thread_python_careers_courses_and/" /><updated>2026-05-28T00:00:05+00:00</updated><published>2026-05-28T00:00:05+00:00</published><title>Thursday Daily Thread: Python Careers, Courses, and Furthering Education!</title></entry><entry><author><name>/u/Shawn-Yang25</name><uri>https://www.reddit.com/user/Shawn-Yang25</uri></author><category term="Python" label="r/Python"/><content type="html">&lt;!-- SC_OFF --&gt;&lt;div class=&quot;md&quot;&gt;&lt;p&gt;Hi everyone,&lt;/p&gt; &lt;p&gt;Apache Fory 1.0 has been released recently.&lt;/p&gt; &lt;p&gt;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.&lt;/p&gt; &lt;p&gt;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.&lt;/p&gt; &lt;p&gt;With 1.0, Fory has reached a more stable point:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Cross-language serialization is now the default path across supported languages&lt;/li&gt; &lt;li&gt;Schema IDL supports richer object models, including shared and circular references&lt;/li&gt; &lt;li&gt;Decimal and bfloat16 support were added&lt;/li&gt; &lt;li&gt;Nested container and field codec support has improved across runtimes&lt;/li&gt; &lt;li&gt;Kotlin, Scala, Android, Swift, and Dart support have been expanded&lt;/li&gt; &lt;li&gt;Benchmarks and documentation have been refreshed&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;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.&lt;/p&gt; &lt;p&gt;Links:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;GitHub: &lt;a href=&quot;https://github.com/apache/fory&quot;&gt;https://github.com/apache/fory&lt;/a&gt;&lt;/li&gt; &lt;li&gt;Website: &lt;a href=&quot;https://fory.apache.org/&quot;&gt;https://fory.apache.org/&lt;/a&gt;&lt;/li&gt; &lt;li&gt;Release note: &lt;a href=&quot;https://fory.apache.org/blog/fory_1_0_0_release/&quot;&gt;https://fory.apache.org/blog/fory_1_0_0_release/&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;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.&lt;/p&gt; &lt;p&gt;What serialization problems are still painful in your multi-language systems?&lt;/p&gt; &lt;/div&gt;&lt;!-- SC_ON --&gt; &amp;#32; submitted by &amp;#32; &lt;a href=&quot;https://www.reddit.com/user/Shawn-Yang25&quot;&gt; /u/Shawn-Yang25 &lt;/a&gt; &lt;br/&gt; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tp7yno/apache_fory_serialization_100_released_now/&quot;&gt;[link]&lt;/a&gt;&lt;/span&gt; &amp;#32; &lt;span&gt;&lt;a href=&quot;https://www.reddit.com/r/Python/comments/1tp7yno/apache_fory_serialization_100_released_now/&quot;&gt;[comments]&lt;/a&gt;&lt;/span&gt;</content><id>t3_1tp7yno</id><link href="https://www.reddit.com/r/Python/comments/1tp7yno/apache_fory_serialization_100_released_now/" /><updated>2026-05-27T14:53:50+00:00</updated><published>2026-05-27T14:53:50+00:00</published><title>Apache Fory Serialization 1.0.0 Released Now</title></entry></feed>