Safely generate requirements.txt from pip list-style output
Project description
pipreqsafe
Generate an Environment snapshot and writes to requirements.txt using pip list semantics.
Why?
pip freeze captures the entire environment and often breaks
cross-platform builds (e.g. AWS, Docker).
pipreqsafe lists installed packages (just like "pip list") and writes a minimal
requirements file from that list => no runtime third-party deps..
Usage
pipreqsafe
pipreqsafe --no-version
pipreqsafe --stdout
Behaviour
| Command | Terminal | File |
|---|---|---|
pipreqsafe |
name + version | name==version |
pipreqsafe --no-version |
name only | name only |
pipreqsafe --stdout |
name + version | ❌ |
pipreqsafe --stdout --no-version |
name only | ❌ |
pipreqsafe --output deps.txt |
name + version | name==version |
What it does NOT do
- No dependency graph analysis
- No project import scanning
- No platform heuristics
❌ Why this is NOT pip freeze
| Concept | pip freeze | pipreqsafe (Option B) |
|---|---|---|
| Direct deps | ✅ | ✅ |
| Transitive deps | ✅ | ❌ |
| Resolver lock | ✅ | ❌ |
| Tooling noise | Often | ❌ |
| Platform pins | Yes | ❌ |
| Expresses intent | ❌ | ✅ |
pipreqsafe works on Python ≥3.8
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pipreqsafe-0.1.0.tar.gz.
File metadata
- Download URL: pipreqsafe-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
284d379147e5b9fd1c9c03d60964f12215e66e573d13f210ecf338ea9d59afa1
|
|
| MD5 |
ee2b3e30ca98d958c819ac0fc8a8e400
|
|
| BLAKE2b-256 |
ce623ef71c40c16befcc18b79b6a6eea1c4c286e45b0d451484480919a6e35f4
|
File details
Details for the file pipreqsafe-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pipreqsafe-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5bb813e145173472de8b46c35b110aafef42fa184247711a2b22c18edb67ea8
|
|
| MD5 |
a60185113315955b27a0b4f51405f8e2
|
|
| BLAKE2b-256 |
788e7e33b6642900454c955bd268231e17655a0ae22153d636315ae3fc04bef6
|