July 22nd, 2024

Beyond Hypermodern: Python is easy now

Python development in 2024 focuses on simplicity with tools like Rye aligning with packaging standards. It streamlines setup, dependency management, and project structuring, emphasizing typing with Pyright for efficient code maintenance and pytest for testing.

Read original articleLink Icon
Beyond Hypermodern: Python is easy now

Python development has evolved to become more straightforward in 2024, moving beyond the complexities of Hypermodern Python. The focus is now on ease of use, with tools like Rye simplifying the setup process by aligning with Python packaging standards. Rye handles Python installation, dependency management, and project structuring efficiently. It integrates linting and formatting tools, making the development process smoother. Additionally, Rye supports a monorepo setup for more complex projects. Typing is emphasized for maintainable code, with Pyright recommended over mypy for faster and more editor-friendly type checking. Testing with pytest is still essential, and Rye provides scripts for common tasks like formatting, linting, type checking, and testing. These improvements aim to streamline Python development workflows and encourage best practices across the community.

Related

Python Modern Practices

Python Modern Practices

Python development best practices involve using tools like mise or pyenv for multiple versions, latest Python version, pipx for app running. Project tips include src layout, pyproject.toml, virtual environments, Black, flake8, pytest, wheel, type hinting, f-strings, datetime, enum, Named Tuples, data classes, breakpoint(), logging, TOML config for efficiency and maintainability.

Python Has Too Many Package Managers

Python Has Too Many Package Managers

Python's package management ecosystem faces fragmentation issues. PEP 621 introduced pyproject.toml for project configurations, leading to new package managers like Poetry. Conda offers robust dependency management, especially for data science workflows.

Rye: A Hassle-Free Python Experience

Rye: A Hassle-Free Python Experience

Rye is a Python project and package management tool for developers. It simplifies Python installations, project management, dependencies, and virtual environments. Installation instructions are available for Linux, macOS, and Windows systems. Users need Rust and Cargo for Rye.

Rye Language

Rye Language

Rye Language is a high-level, dynamic programming language emphasizing interactive use, backend development, and information processing. It supports various functionalities, runs on multiple platforms, and promotes user-friendly information manipulation with strict design principles.

Python Practical Package Packing 2024

Python Practical Package Packing 2024

In 2024, Python project structuring emphasizes modern practices like using pyproject.toml over requirements.txt. Poetry is recommended for efficient dependency management and project structuring, enhancing organization and adherence to standards.

Link Icon 3 comments
By @pseudo_meta - 3 months
Haven't used it much yet, but basedpyright appears to be a promising fork of pyright https://github.com/DetachHead/basedpyright
By @odie5533 - 3 months
This is my new favorite Python tooling blog post.
By @alanwreath - 3 months
more Rye I see... seems like I'll have to spend a weekend and learn me some more