pybites.bsky.social
@pybites.bsky.social
Reposted
Tired of tutorials that don’t go anywhere?

👉 Start implementing these kind of patterns in our 6-week Snipster program:
pybitescoaching.com
Snipster: Build Real Python Projects
pybitescoaching.com
November 14, 2025 at 10:40 AM
Reposted
One of my favorite design patterns: the Repository Pattern. 😍

It keeps business logic separate from the data layer. 📈

Need to swap SQL for CSV or add an API backend later? Plug it in, the interface stays the same.

Example below 👇
November 14, 2025 at 10:38 AM
Reposted
I solved a Bite today and used collections.Counter() 🙂

Good reminder: the right data structure saves a lot of code. 🐍

In this case: apart from a small helper function, you get the top stock by symbol using most_common()

Clean, fast, readable. 🚀
November 13, 2025 at 5:29 PM
One of our PDI clients is building a time tracker app with SQLModel + Flask.

It started simple, then grew as he hit real-world edge cases. That’s where the real dev learning happens:

⏱️ Format times
⛔ Avoid duplicates
🛠️ Handle errors clearly

What are you building this week?
November 13, 2025 at 2:18 PM
Reposted
Heads up I am running another Snipster #Python training cohort next week - we'll build this cool app:
June 17, 2025 at 12:32 PM
Tutorials are clean — but real code is messy. 💡

Our coaching cohort helps you thrive in the wild 💪
• write tests, refactor with confidence
• debug real issues
• build an efficient dev toolkit
• collaborate using Git/GitHub
• ship code you’re proud of

👉 pybitescoaching.com

#Python #Developer
May 30, 2025 at 1:38 PM
You’ve done 100 Python 🐍 exercises. Now what? 🤔

Building a real app still feels out of reach. 😮

That’s where our cohorts come in - we guide you from confusion to confidence, project by project. 💪 🚀
May 28, 2025 at 10:42 AM
Reposted
Thanks for joining us 🎧 @tiangolo.com 🎉 and for all you do with @fastapi.tiangolo.com, other libs, and now FastAPI Cloud 😍

It will be so nice to deploy FastAPI apps with just: `fastapi deploy` 🚀

www.youtube.com/watch?v=Q_8a...
Pybites Podcast 191: Code, click, cloud - how Sebastián Ramírez is taking FastAPI to the next level
YouTube video by Pybites
www.youtube.com
May 27, 2025 at 5:13 PM
Reposted
👨‍🏫 Want in?

The main cohort is full, but beginner spots are still open (or join the waiting list for the next intermediate one)

Check it out here 👉 pybitescoaching.com
May 6, 2025 at 4:43 PM
Reposted
🚀 Built a #Streamlit front-end on top of a #FastAPI backend for our next cohort (starting next week!) 🚀

Great stack for quickly prototyping a front-end, all #Python, no JS 😎

(For more serious web apps you definitely want JS and/or htmlx though 💡)
May 6, 2025 at 4:43 PM
Learn more advanced and real world #python #developer techniques - join us for our first 6 week intermediate cohort 12th of May 🎉 🐍 💪
🚀 Build real software, not just more tutorials.

Join our 6-week Pybites Developer Cohort (PDC Professional) and ship a real app:

✅ Clean arch + TDD
✅ CLI + FastAPI
✅ CI/CD + Cloud deploy
✅ Portfolio-ready repo

Start May 12 → pybitescoaching.com
Pybites Developer Cohort (PDC) Coaching
pybitescoaching.com
April 29, 2025 at 7:57 AM
Reposted
You pick up dozens of these small and subtle #python 🐍 tricks + idioms when you make it a habit to code on our platform every day 💡 🔥 -> join here: pybitesplatform.com 📈
Pybites Platform | Master Python Through Hands-On Coding
Overwhelmed by tutorials? Stop consuming books and courses! Confidence will come through a lot of deliberate practice. Our platform helps you master Python and grasp Pythonic best practices.
pybitesplatform.com
April 25, 2025 at 2:05 PM
Reposted
𝟱 𝗰𝗼𝗼𝗹 𝘄𝗮𝘆𝘀 to use the underscore in #Python 🐍💡

• Ignore 𝘃𝗮𝗹𝘂𝗲𝘀 when unpacking

• Loop 𝗽𝗹𝗮𝗰𝗲𝗵𝗼𝗹𝗱𝗲𝗿

• Access 𝗹𝗮𝘀𝘁 𝗿𝗲𝘀𝘂𝗹𝘁 in REPL

• Format 𝗹𝗮𝗿𝗴𝗲 𝗻𝘂𝗺𝗯𝗲𝗿𝘀

• Define "𝗽𝗿𝗶𝘃𝗮𝘁𝗲" methods (convention)

See below 👇
April 25, 2025 at 2:05 PM
Reposted
Potentially underused #Python 🐍 feature: 𝘀𝗲𝘁 𝗼𝗽𝗲𝗿𝗮𝘁𝗶𝗼𝗻𝘀 💡

Here's an example how we can remove or update tags, casting new + old into sets, then performing 𝘴𝘦𝘵 𝘰𝘱𝘦𝘳𝘢𝘵𝘪𝘰𝘯𝘴 🔥

Have you used them, how? 😍

(Still on the fence about 𝘸𝘢𝘭𝘳𝘶𝘴, but couldn't bear doing 𝘴𝘵𝘳𝘪𝘱() twice 😅)
April 25, 2025 at 6:16 AM
Reposted
Making a temporary file/dur is very useful for 𝘁𝗲𝘀𝘁𝗶𝗻𝗴.

In the example below, we first use 𝘛𝘦𝘮𝘱𝘰𝘳𝘢𝘳𝘺𝘋𝘪𝘳𝘦𝘤𝘵𝘰𝘳𝘺 to create 5 temp files.

This is a great example of using a 𝗰𝗼𝗻𝘁𝗲𝘅𝘁 𝗺𝗮𝗻𝗮𝗴𝗲𝗿 — a clean way to automatically clean up resources.

pytest makes it even easier using the 𝘵𝘮𝘱_𝘱𝘢𝘵𝘩 fixture:
April 23, 2025 at 9:14 AM
Reposted
Do you know all these 5 powerful uses of * in #Python?

– Keyword-only args
– Extended unpacking
– Flexible funcs with *args
– Unpack into func calls
– Merge iterables

👇 See examples below — which ones do you use the most, and which ones are new to you?

#coding #tips
April 18, 2025 at 8:37 AM
Reposted
Keep up2date with relevant #Python developer tips + industry trends joining our weekly @pybites.bsky.social Newsletter: pybit.es/newsletter 💡 🚀
Enhance Your Developer Mindset - Join Our Pybites Newsletter - Pybites
🐍 Elevate your Python, developer and mindset skills. Every week, for free!
pybit.es
April 16, 2025 at 8:56 AM
Reposted
Becoming a proficient #Python dev isn’t just about syntax, it’s about building usable apps with clean, testable, well-structured code.

That’s what we coach in our 6-week cohort starting next month.

Real apps. Real feedback. Real growth. 💪

More info: pybitescoaching.com
April 17, 2025 at 3:20 PM
Reposted
A common #Polars saying:

"𝙄 𝙘𝙖𝙢𝙚 𝙛𝙤𝙧 𝙩𝙝𝙚 𝙨𝙥𝙚𝙚𝙙, 𝙗𝙪𝙩 𝙨𝙩𝙖𝙮𝙚𝙙 𝙛𝙤𝙧 𝙩𝙝𝙚 𝙨𝙮𝙣𝙩𝙖𝙭" 😍

I see why now — it's 𝗯𝗲𝗮𝘂𝘁𝗶𝗳𝘂𝗹 and 𝗳𝗮𝘀𝘁. 📈

Switched from Pandas?
What’s been your biggest win (or pain)? 🤔

#Python #Rust #DataAnalytics
April 16, 2025 at 8:35 AM
🎉 💪 🔥
After just 3 weeks in our upcoming cohort (halfway point), you’ll have a working CLI journal app:

✅ Typer
✅ clean code
✅ testing
✅ real end-to-end project

We’ve coached 100s of devs 1:1 — now bringing that magic to our new cohort programs 🎉

🔗 pybitescoaching.com
April 15, 2025 at 12:04 PM
Reposted
De-duped our books category page by reconciling similar titles, e.g.

think & grow rich → think and grow rich
everything is f*cked → everything is # @%!ed

Just stdlib -> `difflib`, no external deps 🚀

(Fun fact: Django’s manage.py uses this too btw 😎)

#python #tips
April 14, 2025 at 8:56 AM