
PDM + uv, duo de choc pour vos projets Python
www.metal3d.orgJ'ai aimé pipenv, j'ai aimé poetry, mais là... mon coeur a été conquis par PDM et Uv.
Découvrez pourquoi cette combinaison est devenu mon choix pour gérer mes projets Python.
4 links

J'ai aimé pipenv, j'ai aimé poetry, mais là... mon coeur a été conquis par PDM et Uv.
Découvrez pourquoi cette combinaison est devenu mon choix pour gérer mes projets Python.

How to use uv and the Python inline script metadata proposal PEP 723 to run scripts seamlessly.

TLDR

We all love Python’s comprehensive standard library, but let’s face it – PyPI’s wealth of packages often becomes essential. Sharing single-file, self-contained Python scripts that rely on these external tools can be a headache. Historically, we’ve relied on requirements.txt or full-fledged package managers such as Poetry or pipenv, which can be overkill for simple scripts and intimidating for newcomers. But what if there was a simpler way? That’s where uv and PEP 723 come in. This article delves into how uv harnesses PEP 723 to embed dependencies directly within scripts, making distribution and execution extremely easy.