Hatch v1.8 now manages installing Python and can build .app and .exe stand-alone binaries. Introducing svcs, a flexible service locator for Python, which eliminates boilerplate code, simplifies testing, and improves live introspection. Discussion on Python protocols and their usage. Interactions on Mastodon and profile picture preferences. A joke about choosing between red buttons and domain renewal.
Hatch 1.8.0 introduces new features to manage Python environments and projects, including the ability to build standalone .app and .exe binaries for distribution.
svcs (Services) is a flexible service locator for Python, simplifying the process of hooking up dependencies and services in applications, providing better management and access to different services.
Deep dives
Hatch 1.8.0: Managing Python with Hatch and Pi App
Hatch 1.8.0 has introduced new features to manage Python environments and projects. With Hatch, you can now manage Python itself, not just Python projects. Additionally, Pi App is a new runtime installer for Python projects, allowing them to be distributed as standalone executables. This means that your Python app can be packaged as a .exe or .app file for users to easily download and run. These updates provide a different approach to managing Python environments and offer more flexibility for developers.
Introducing SVCs: Simplify Dependency Management with Services
SVCs (Services) is a new project by Hinik for simplifying the process of hooking up dependencies and services in applications. SVCs act as a flexible service locator, making it easier to manage and access different services and dependencies within an application. This concept is primarily targeted towards web applications but can be utilized in other contexts as well. SVCs provide a solution for keeping services contained, setting up dependencies, and cleaning them up correctly. The project offers a great documentation and examples for different frameworks like Flask and AioHttp, making it easier for developers to implement in their projects.
Python Steering Council Election Results for 2024
The results for the Python Steering Council (PSC) election for the 2024 term are in. The newly elected council members are Pablo Galindo Salgado, Gregory Smith, Emily Morehouse, Barry Warsaw, and Thomas Wouters. The PSC plays a key role in shaping the future of Python, and this election showcases the contributions and leadership from a diverse group of community members. The PEP 8105 provides an in-depth breakdown of the election results, including the number of votes received by each candidate.
Exploring Python Protocols for Type Checking and Duck Typing
Python Protocols, introduced in Python 3.8, offer a powerful tool for type checking and duck typing in Python code. Carlos Vassina's article provides an informative guide on defining and using protocols effectively. Protocols allow you to define sets of methods and attributes without implementing them, similar to class inheritance or mixins. By utilizing protocols, you can enforce typing structure onto dynamic objects, providing better static analysis and code verification. The article also covers related concepts like abstract base classes and dependency injection, offering a comprehensive understanding of Python protocols.