Top 5 Python lockfile Projects
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
hatch-pip-compile
hatch plugin to use pip-compile (or uv) to manage project dependencies and lockfiles
-
tox-poetry-installer
A plugin for Tox that lets you install test environment dependencies from the Poetry lockfile
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Project mention: Pyenv – lets you easily switch between multiple versions of Python | news.ycombinator.com | 2024-03-25> Why is the "requirements.txt" file a stupid flat listing of all transitive dependencies with pinned versions? It makes it harder to change library versions even if there are no true conflicts.
My friend, here is what you seek: https://github.com/jazzband/pip-tools
requirements.txt is flat because it's really the output of `pip freeze`. It's supposed to completely and exactly rebuild the environment. Unfortunately it's far too flexible and people abuse it by putting in only direct dependencies etc.
If you're writing packages, you don't need a requirements.txt at all, by the way. Package dependencies (only direct dependencies) live in pyproject.toml with the rest of the package config. requirements.txt (and pip tools) are only for when you want to freeze the whole environment, like for a server deployment.
I came up with hatch-pip-compile - it's a hatch plugin that connects your hatch-managed virtual environment to a lockfile managed with pip-compile. The plugin detects whether your environment or lockfile is out to date and automatically syncs them when needed - and it's fast!
Python lockfile related posts
Index
What are some of the best open-source lockfile projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | pip-tools | 7,472 |
2 | conda-lock | 436 |
3 | hatch-pip-compile | 59 |
4 | tox-poetry-installer | 54 |
5 | flitenv | 5 |
Sponsored