Skip to main content

Pip Freeze

Tool to produce better formatted pip freeze.

Instead of a flat list of requirements, this indents requirements which are dependencies and those that are primary installs. Dependencies shared by multiple packages are commented out.

This format can be re-read by the typical pip install -r requirements.txt and requires not adjustment to other code.

Installation

pip install pipfreeze

Basic Usage

pipfreeze > requirements.txt

Motivation

Typical pip freeze flattens all requirements, regardless of the dependency structure.

cycler==0.10.0
kiwisolver==1.3.1
matplotlib==3.3.4
numpy==1.20.1
pandas==1.2.2
Pillow==8.1.0
pyparsing==2.4.7
python-dateutil==2.8.1
pytz==2021.1
six==1.15.0

This pipfreeze command produces output that is valid requirements.txt but is nested

matplotlib==3.3.4
    cycler==0.10.0
        six==1.15.0
    kiwisolver==1.3.1
    numpy==1.20.1
    Pillow==8.1.0
    pyparsing==2.4.7
    python-dateutil==2.8.1
        # six==1.15.0
pandas==1.2.2
    # numpy==1.20.1
    # python-dateutil==2.8.1
        # six==1.15.0
    pytz==2021.1

Contributing

Local development is controlled through docker. docker-compose.yml contains different python environment containers to test this code out in.

make test will run the docker tests.

Makefile contains commands for development.

Release files for pipfreeze 2.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pipfreeze 2.0.3
File Size Uploaded
pipfreeze-2.0.3.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pipfreeze 2.0.3
File Interpreter ABI Platform
pipfreeze-2.0.3-py3-none-any.whl Python 3 none any Details

Total release size:12.9 kB

Release files / pipfreeze-2.0.3.tar.gz

Download URL pipfreeze-2.0.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f9512751d6c1446faae165bef22c2d523736d8105ac2e7d81cf7bb61fcb4a76
BLAKE2b-256 checksum
How to use checksums
467852486627790cf615e8247d6ff2c95b4c93d7333d277d389a06f67dea3979
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

Release files / pipfreeze-2.0.3-py3-none-any.whl

Download URL pipfreeze-2.0.3-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63c2587490f762fa12bc4e4734af3e384759468a5660a4a049843d7889d28366
BLAKE2b-256 checksum
How to use checksums
fb91a5b3052d169ac91dc76fa99633b84495b9ff3c5e9df1eab52febc75c6ea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

2.0.3 This release

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page