Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipreqsafe-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipreqsafe-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for pipreqsafe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 284d379147e5b9fd1c9c03d60964f12215e66e573d13f210ecf338ea9d59afa1
MD5 ee2b3e30ca98d958c819ac0fc8a8e400
BLAKE2b-256 ce623ef71c40c16befcc18b79b6a6eea1c4c286e45b0d451484480919a6e35f4

See more details on using hashes here.

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

Hashes for pipreqsafe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5bb813e145173472de8b46c35b110aafef42fa184247711a2b22c18edb67ea8
MD5 a60185113315955b27a0b4f51405f8e2
BLAKE2b-256 788e7e33b6642900454c955bd268231e17655a0ae22153d636315ae3fc04bef6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page