Daily Python Tip ππ§
@python_tip
Followers
40K
Following
1K
Media
492
Statuses
2K
One #python tip per day. Do you have any? Send it to https://t.co/AIPDodWr5i. Edited by @simecek, @karlafej, and... you?
Joined February 2017
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 https://t.co/zeV1KbKUbH
open.spotify.com
Podcast Β· Mia BajiΔ Β· Meet the people shaping open-source across Europe and beyond! Have you ever wondered who the people are behind the open source technologies you use every day? Behind the Commit...
0
1
5
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) https://t.co/HFTjy6uJ7f 15% off (and yes, I get 15% too)
solve.it.com
An antidote to AI fatigue - created by Jeremy Howard and the team at AnswerDotAI.
0
0
1
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
https://t.co/409ww1zDE9
python.org
The official home of the Python Programming Language
0
4
7
Two Python gems Iβve been playing with: π Tenacity β painless retry logic for anything. No more rolling your own loops + sleeps https://t.co/2uB7TzHYah β‘ DumPy β a bold rethink of NumPy: βdonβt make me think, just run (fast, on GPUs)β https://t.co/eZmy0S8akM Both worth a π
dynomight.net
reject clever
0
0
6
Today I learned... `uv init` now not only creates a new Python environment but also creates βββ .gitignore βββ https://t.co/5YvRzH2H49 βββ https://t.co/QnZWl1sVHO βββ pyproject.toml βββ .python-version https://t.co/RB8U6HQOO6
realpython.com
Learn how to create and manage your Python projects using uv, an extremely fast Python package and project manager written in Rust.
0
5
26
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 https://t.co/9wEcj8Qt3E
marimo.io
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
1
2
28
Magnesiacore. Indoor Pool Drywall and Ceilings is a True Marine Wallboard. When it comes to indoor pools, natatoriums, or other enclosed spaces with high humidity and the moist chemical exposure it entails, you need a construction board that can withstand these elements.
20
46
250
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? https://t.co/2CvDPJBnVW
medium.com
donβt panic, every language has variables and python is no exception in that but why some peoples say python has no variables it has namesβ¦
0
0
4
Happy (20 + 25)**2 Happy sum(i**3 for i in range(10)) Happy sum(i for i in range(10))**2 #HappyNewYear!
0
1
5
MarkItDown = a tool from Microsoft to convert Word / Excel / PPT / PDF... to Markdown https://t.co/oAfDVL9n5J
github.com
Python tool for converting files and office documents to Markdown. - microsoft/markitdown
19
487
3K
This is neat! Instead of writing scraping methods yourself, provide a few examples and let `autoscraper` to do it for you. https://t.co/l6oekcIy56
oxylabs.io
Learn how to use Python for building a web scraper that automatically acquires data at set periods.
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
1
4
52
Right now, Righteous Gentiles like YOU can dispel the darkness with blessings of light. Your emergency gift of any amount today can bring hope for the Holy Land tomorrow. Give safely NOW!
149
74
418
π Python environments got easier! uv is the new rust-powered packaging tool that might finally solve the XKCD-famous dependency puzzle https://t.co/ZEpCBDyL0r Quick start: * `uv run` for most cases * `uv venv` for virtual envs * `uv pip` for packages (don't mix with regular
0
2
10
Automate your virtualenv activation! Using autoenv ( https://t.co/YvfaeIpWTg), you can: 1. Automatically activate virtualenv when entering a directory 2. Run ANY command when cd-ing into a folder Example: # Set up autoenv echo "source venv/bin/activate" > .env # Or run custom
github.com
Directory-based environments. Contribute to hyperupcall/autoenv development by creating an account on GitHub.
0
1
6
AI is changing how we code, but should it change how we teach Python? I've embraced LLMs for coding, especially with pandas, but I'm unsure if beginners should start this way. Anyway, curious about the AI way? Try Andrew Ng's 'AI Python for Beginners':
deeplearning.ai
Learn Python programming with AI assistance. Gain skills in writing, testing, and debugging code efficiently, and create real-world AI applications.
0
2
9
"Tired of scrolling through Jupyter notebooks on GitHub? Try https://t.co/YRPCps1rn7: π Just replace 'github' with 'nbsanity' in the URL to get much cleaner view π For example https://t.co/8jDQNWiOhh
#JupyterNotebook
nbsanity.com
A modern way to view public Jupyter notebooks on GitHub
0
1
7
#EuroPython2024 videos are live! πΊ My top 3 ML talks: 1) "From Text to Context..." about combining semantic & traditional search https://t.co/YlucuzVb4T 2) "Scikit-LLM..." because of beginner-friendly NLP with dynamic few-shots https://t.co/8zfQEXcif0 3) "Representation is
0
1
7
Here's an interesting Python brainteaser that came from a member asking a question on The Python Coding Place forumβ¦ Can you figure out why the outputs are the way they are for these two similar but not identical bits of code? The answer gives a great insight on iteratorsβ¦
4
9
56
Use "named constructors" to create multiple ways to initialize objects class PaperSize: @classmethod def iso_a4(cls): return cls(210, 297) def __init__(self, width_mm, height_mm): self.width_mm = width_mm self.height_mm = height_mm
2
1
12
Still digesting #EuroPython2024, but #DjangoConEU 2024 videos just appeared on YouTube! https://t.co/LKWwDq4fQS My favorites: - AnΕΎe's "Django, SQLite, and Production" https://t.co/FSsZDrwJja - @scriptogre's "Functional Chatbots" tutorial (not on YT)
0
1
5
#EuroPython2024 Day 1 π·π Someone on Hacker News described Python type hints as "lipstick on a pig." I kind of agree, but sometimes a pig with lipstick is better than just a pig. Jakub BerΓ‘nek: Writing Python like it's Rust... slides: https://t.co/sN2SQSKUHl One package I
0
1
9