PyCon Prep, AnyIO, Sanic Updates, and Testing Tools
Conference Preparation and PyCon US
The hosts discuss the upcoming PyCon US, taking place in Salt Lake City from April 19th to 23rd. The conversation emphasizes that submitting a talk is a valuable growth experience, regardless of whether the proposal is accepted.
Tips for Success
• Start small: Use local meetups or company lunch-and-learns to test your presentation.
• Be focused: Don't cram too many topics into one session; choose a specific, manageable theme.
• Outline effectively: Break your presentation into small, timed segments (e.g., 2–4 minutes each) to make the preparation process less intimidating.
• Leverage existing knowledge: Topics on common questions you answer at work or interesting features learned from podcasts can form excellent talk content.
Advanced Python Frameworks and Tools
AnyIO
Beyond its utility as a networking library, AnyIO offers a robust set of building blocks for asynchronous programming. Key features include:
• Task Groups: Manage concurrent operations with integrated cancellation and timeout support.
• Synchronization Primitives: Includes events and capacity limiters for better task coordination.
• Unifying API: Provides a consistent way to handle threads, subprocesses, and file I/O using async/await syntax.
Sanic
Sanic continues to evolve as a high-performance web framework. A recent addition is the Worker Manager, which allows developers to offload background tasks to a sub-process without needing a separate complex infrastructure like Celery or Redis.
Developer Extras
• Jupyter Notebook Presentations: You can create slide decks directly from notebooks by using the Rise extension or built-in conversion tools.
• PyTest 7.2 Updates: Note that the PI library is now separated from PyTest. Additionally, old-style setup and teardown functions are officially deprecated.
• Rich in PyScript: The Rich library for terminal colorization and formatting is now available for use in PyScript projects.
"What do you need for a good relationship? Obviously, primary keys."