uv for Python: Projects, Dependencies, and Lockfiles
Set up a Python project with uv, a virtual environment, pyproject.toml, and a reproducible lockfile while understanding what changes from pip.
Explore our technical articles, practical tutorials, and career guides.
The fuel for your journey in the Python Universe.
Set up a Python project with uv, a virtual environment, pyproject.toml, and a reproducible lockfile while understanding what changes from pip.
Build lean Python documentation with Sphinx, autodoc, docstrings, and type hints, then generate HTML and automate publishing without needless complexity.
Use Hypothesis with pytest to generate inputs, check invariants, shrink failures, and uncover edge cases that hand-written examples miss.
Structure pyproject.toml for applications and libraries, separate build and runtime requirements, declare dependencies, and configure tools safely.
A practical Python Playwright guide covering browser setup, robust locators, state-based waits, downloads, screenshots, pytest, and responsible use.
Build an SMTP sender with text and HTML alternatives, bounded attachments, STARTTLS, environment configuration, validation, and clear errors.
A practical pypdf automation guide covering merging, splitting, rotation, metadata, text extraction limits, encryption, and errors.
Build an installable task-management CLI using positional arguments, options, subcommands, entry points, and automated tests.
Validate DataFrame columns, types, and business rules with Pandera while building and testing a small sales pipeline.
Combine preprocessing and a model in a scikit-learn Pipeline, validate it correctly, and keep test information out of training.
Query CSV, Parquet, and in-memory DataFrames with SQL through DuckDB and Python, without operating a database server.
Use Polars expressions and lazy execution for clear DataFrame pipelines, while understanding when to compare, combine, or stay with Pandas.