Skip to main content

Freeze what you actually use. Generate requirements.txt from real imports and installed packages.

Project description

freezeburn

Freeze what you actually use.

Generate requirements.txt from real imports + installed packages. No guessing. No network.

Install

pip install freezeburn

Usage

freezeburn                      # Scan current directory
freezeburn /path/to/project     # Scan specific directory
freezeburn -o requirements.txt  # Custom output file
freezeburn -q                   # Suppress warnings

What It Does

  1. Scans .py files (respects .gitignore and .reqignore)
  2. Extracts imports via AST
  3. Detects stdlib dynamically (sys.stdlib_module_names)
  4. Intersects with installed packages
  5. Outputs exact pinned versions

What It Does NOT Do

  • Query PyPI
  • Guess versions
  • Resolve transitive dependencies
  • Detect dynamic imports
  • Be "smart"

Ignore Files

Create .reqignore for freezeburn-specific exclusions:

tests/
scripts/
examples/*.py

Uses gitignore syntax. .gitignore is also respected.

How It Works

Imports (AST)  +  Installed (env)  =  requirements.txt
     |                  |                    |
   flask              flask==2.3.2      flask==2.3.2
   requests           requests==2.31    requests==2.31
   mymodule           (not installed)   (skipped + warning)
   os                 (stdlib)          (skipped)

Requirements

  • Python 3.10+
  • Activated virtualenv with your dependencies

License

MIT

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

freezeburn-0.1.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

freezeburn-0.1.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file freezeburn-0.1.0.tar.gz.

File metadata

  • Download URL: freezeburn-0.1.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for freezeburn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b51431f3dc66d94ecfdcdb6e7a6b8d76441209e86f302fe076bcc3c647a10baf
MD5 9f4a06e42c1c8c8e91b2310bd02ec132
BLAKE2b-256 b2203e890cd1b01d400b1ad54ccfde2f8ad456a555bf163a769717b6c2b03259

See more details on using hashes here.

File details

Details for the file freezeburn-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: freezeburn-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for freezeburn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8b51aa993170016051a42e3a33956f77dcfc7c605a0c4953dac0c29ecc41cdd
MD5 36f4221dd217ddbdeb0992e8d533e5d6
BLAKE2b-256 cae6862973e05cbce4ddf21f689fc6c0be3c4bc47b245737daf6b1935b1893d0

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