Python Development, Curio, and Open Source Challenges
·15m 50s
Shared point
–
Weekly Python News Highlights
This episode of Python Bytes covers several vital topics for the modern developer, ranging from coding best practices to the state of open-source funding.
Core Development Insights
- Python Path: The hosts strongly advise against using the
PYTHONPATHenvironment variable. Instead, they recommend utilizingpip install -e .(editable mode) for local package development. - Algorithm Resources: A curated repository of minimal examples for data structures and algorithms in Python was highlighted as an excellent tool for both professional skill-building and interview preparation.
- Attrs Library: Revisiting the popular attrs library, which simplifies the creation of classes by automating boilerplate tasks like equivalency tests and comparison operations, making code cleaner and more robust.
Concurrency and Async Programming
- Curio: A deep dive into Curio, a library designed for concurrent I/O. Unlike standard frameworks, Curio focuses on providing low-level, effective building blocks for asynchronous coroutines, including a unique universal queue that allows communication across threads and async tasks.
Project Structure and Community Issues
- The
srcDirectory Debate: The hosts discuss the best structure for packaging Python libraries. While some documentation advocates for ansrclayout to avoid import confusion, it remains inconsistently applied across the community. - Open Source Sustainability: A cautionary segment on the volatility of corporate-funded open-source initiatives, specifically citing Intel and Rackspace withdrawing from the OpenStack Innovation Center, highlighting the need for diversified financial support for vital projects.
"The more companies contributing smaller amounts, I feel is probably a safer place to be than a few companies contributing huge amounts."
Events & Community
- Reminders for community members to check out EuroPython tickets, noting how quickly major conferences sell out.