One #python tip per day. Do you have any? Send it to https://xitter.cf/t.co/AIPDodWr5i. Edited by @simecek, @karlafej, and... you?

Joined February 2017
Daily Python Tip 🐍🐧@python_tipOct 14
Replying to @AshrafXplains
Interesting, I have not realized that. Thanks!
1
37
Daily Python Tip 🐍🐧@python_tipOct 11
Python 3.15 is out - Lazy imports (e.g. 'lazy import json') - Frozendict builtin - Free-threaded package support, macOS installer now includes free-threading support by default python.org/downloads/release…
2
6
26
2,773
Daily Python Tip 🐍🐧@python_tipAug 7
the most performant Python charting library, written in Rust - for charts that need 100M points import xy as z :-) reflex.dev/blog/xy-python-ch…
1
1
10
2,534
Daily Python Tip 🐍🐧@python_tipMar 29
How to organize your .claude folder. Somebody should write the same about Cursor :-) blog.dailydoseofds.com/p/ana…
1
1
17
2,160
Daily Python Tip 🐍🐧@python_tipMar 29
Last week, two versions of litellm package (3.4M downloads/day) contains malicious code due to previous compromise of maintainer's PyPI credentials. This seems as a cool trick to be less vulnerable to such attacks (found on LinkedIn / Hacker news) πŸ‘‡
1
2
19
3,230
Daily Python Tip 🐍🐧@python_tip4 Nov 2025
I just discovered Behind the Commit podcast! 🎧 (hosted by Mia BajiΔ‡ πŸŽ™οΈ) First two episodes feature Python release managers Hugo van Kemenade (3.14&3.15), Pablo Galindo Salgado (3.10&3.11), Łukasz Langa (3.8&3.9) and FastAPI creator SebastiΓ‘n RamΓ­rez open.spotify.com/show/2Z9Ewk…
1
5
1,141
Daily Python Tip 🐍🐧@python_tip16 Oct 2025
I once told at a conference dinner: "I’ve got a PhD, but 90% of my work is just applying @fastdotai stuff" A senior researcher nodded: "Same" πŸ˜… So when the new course dropped, I needed ~60s to subscribe (2-wk refund) solve.it.com/?via_id=gifvtbw… 15% off (and yes, I get 15% too)
1
1,205
Daily Python Tip 🐍🐧@python_tip9 Oct 2025
Python 3.14 is here! πŸŽ‰ Highlights: free-threaded CPython (PEP 779), deferred annotations (PEP 649), t-strings (PEP 750), multiple interpreters (PEP 734), zstd module (PEP 784), faster UUID + nicer errors. Time to upgrade & test. #Python #Py314 python.org/downloads/release…
4
8
1,792
Daily Python Tip 🐍🐧@python_tip1 Sep 2025
Replying to @heysoymarvin
Not quite the same! With this approach you can import your Django models, run queries on your local DB or use other functions of your app from myapp.models import User User.objects.filter(created__gte='2024-01-01').count() Try doing that in Colab πŸ˜‰ (Otherwise, I ❀️ Colab)
1
59
Daily Python Tip 🐍🐧@python_tip1 Sep 2025
Need pandas + Jupyter for quick analysis but don't want them in your production dependencies? uv run --with pandas --with jupyter jupyter lab One command. Zero environment pollution. ✨ #uv #jupyter #DevTips
1
1
14
2,128
Daily Python Tip 🐍🐧@python_tip31 Aug 2025
Two Python gems I’ve been playing with: πŸ” Tenacity – painless retry logic for anything. No more rolling your own loops + sleeps tenacity.readthedocs.io/en/l… ⚑ DumPy – a bold rethink of NumPy: β€œdon’t make me think, just run (fast, on GPUs)” dynomight.net/dumpy/ Both worth a πŸ‘€
6
2,022
Daily Python Tip 🐍🐧@python_tip6 Aug 2025
Today I learned... `uv init` now not only creates a new Python environment but also creates β”œβ”€β”€ .gitignore β”œβ”€β”€ README.md β”œβ”€β”€ main.py β”œβ”€β”€ pyproject.toml └── .python-version realpython.com/python-uv/#cr…
5
27
2,167
Daily Python Tip 🐍🐧@python_tip15 Jun 2025
marimo = Jupyter for serious Python work πŸ”₯ - Pure .py files (git-friendly!) - No more restart & run all - Deploy as scripts OR interactive web apps - Built-in SQL support - Reactive cells that auto-update dependencies marimo.io/
1
2
28
3,155
Daily Python Tip 🐍🐧@python_tip21 Jan 2025
When I started with Python, I was confused by the murky difference between variables and references. πŸ€” This πŸ‘‡ explains it brilliantly: Why Python has No Variables? medium.com/@king_star/why-py…
3
1,997
Daily Python Tip 🐍🐧@python_tip3 Jan 2025
Happy (20 + 25)**2 Happy sum(i**3 for i in range(10)) Happy sum(i for i in range(10))**2 #HappyNewYear!
1
5
1,848
Daily Python Tip 🐍🐧@python_tip14 Dec 2024
MarkItDown = a tool from Microsoft to convert Word / Excel / PPT / PDF... to Markdown github.com/microsoft/markitd…
18
476
28
3,257
233,171
Daily Python Tip 🐍🐧@python_tip1 Nov 2024
Replying to @gigahumorAI
No, just basic examples. I recommended it to my students for a homework assignment and I am curious how they apply it.
44
Daily Python Tip 🐍🐧@python_tip1 Nov 2024
This is neat! Instead of writing scraping methods yourself, provide a few examples and let `autoscraper` to do it for you. oxylabs.io/blog/automated-we…
If you want to automatically scrape a website with Python, use `autoscraper` πŸ’‘ Its almost magical πŸͺ„ - Instead of writing the scraping logic manually, you provide a few sample values you'd like to scrape, and `autoscraper` will deduce the scraping rules for you. It learns the scraping rules and returns the similar elements. Then you can use this learned object with new urls to get similar content or the exact same element of those new pages. `autoscraper` doesn't require detailed XPath or CSS selectors like traditional scraping libraries. Instead, it automates the pattern recognition process by learning from the example you provide. Let's design an example where we'll scrape the latest headlines from a popular news website. (Disclaimer: Make sure you have the legal right to scrape the desired website; scraping some sites might be against their terms of service). Suppose we want to scrape the latest headlines from "BBC News" (for demonstration purposes only). Remember to replace the "BBC News headline example" with an actual headline from the BBC News page so that the model can learn from it. After running the script, you should see a list of scraped headlines.
1
4
51
4,607
Daily Python Tip 🐍🐧@python_tip22 Oct 2024
🐍 Python environments got easier! uv is the new rust-powered packaging tool that might finally solve the XKCD-famous dependency puzzle m.xkcd.com/1987/ Quick start: * `uv run` for most cases * `uv venv` for virtual envs * `uv pip` for packages (don't mix with regular pip!) Fast, simple, cargo-like πŸš€ For more, read * github.com/astral-sh/uv * astral.sh/blog/uv-unified-py…
2
10
2,454