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.
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
- Scans
.pyfiles (respects.gitignoreand.reqignore) - Extracts imports via AST
- Detects stdlib dynamically (
sys.stdlib_module_names) - Intersects with installed packages
- Outputs exact pinned versions
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
GPL-3.0
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
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 freezeburn-0.6.0.tar.gz.
File metadata
- Download URL: freezeburn-0.6.0.tar.gz
- Upload date:
- Size: 23.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9d81f190ebef1498daee8121acedb8dcbfd8f280272f30313652ff14d888784
|
|
| MD5 |
4ca0b70b3ee3777b0f058ff0a9c97d91
|
|
| BLAKE2b-256 |
0b01ecdcb488d5015a502d05e1603208ced8250a95fcfc31431b6dc8714bb622
|
File details
Details for the file freezeburn-0.6.0-py3-none-any.whl.
File metadata
- Download URL: freezeburn-0.6.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3534d18b17b15d854a219bd8fd60fc89f9227cc2e28567b3ec365ea09be21bf0
|
|
| MD5 |
e782b32c51df1247a88da19360a66915
|
|
| BLAKE2b-256 |
00ba464cdf451a92e02692b0765c1227ef6adf137d0813c5123ad5db2da87753
|