• Stars
    star
    541
  • Rank 79,171 (Top 2 %)
  • Language
    Python
  • License
    Other
  • Created over 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A more relaxed `pip freeze`

PIP Chill - Make requirements with only the packages you need

Documentation Status Updates Codacy Badge

Like pip freeze but lists only the packages that are not dependencies of installed packages.

Features

Generates a requirements file without any packages that depend on other packages in the file.

How it works

Usage

Suppose you have installed in your virtualenv a couple packages. When you run pip freeze, you'll get a list of all packages installed, with all dependencies. If one of the packages you installed ceases to depend on an already installed package, you have to manually remove it from the list. The list also makes no distinction about the packages you actually care about and packages your packages care about, making the requirements file bloated and, ultimately, inaccurate.

On your terminal, run:

$ pip-chill
bandit==1.7.0
bumpversion==0.6.0
click==7.1.2
coverage==5.3.1
flake8==3.8.4
nose==1.3.7
pip-chill==1.0.1
pytest==6.2.1
...

Or, if you want it without version numbers:

$ pip-chill --no-version
bandit
bumpversion
click
coverage
flake8
nose
pip-chill
pytest
...

Or, if you want it without pip-chill:

$ pip-chill --no-chill
bandit==1.7.0
bumpversion==0.6.0
click==7.1.2
coverage==5.3.1
flake8==3.8.4
nose==1.3.7
pytest==6.2.1
...

Or, if you want to list package dependencies too:

$ pip-chill -v
bandit==1.7.0
bumpversion==0.6.0
click==7.1.2
coverage==5.3.1
flake8==3.8.4
nose==1.3.7
pip-chill==1.0.1
pytest==6.2.1
sphinx==3.4.3
tox==3.21.1
twine==3.3.0
watchdog==1.0.2
# alabaster==0.7.12 # Installed as dependency for sphinx
# appdirs==1.4.4 # Installed as dependency for virtualenv
# attrs==20.3.0 # Installed as dependency for pytest
# babel==2.9.0 # Installed as dependency for sphinx
# bleach==3.2.1 # Installed as dependency for readme-renderer
# bump2version==1.0.1 # Installed as dependency for bumpversion
# certifi==2020.12.5 # Installed as dependency for requests
# chardet==4.0.0 # Installed as dependency for requests
# colorama==0.4.4 # Installed as dependency for twine
# distlib==0.3.1 # Installed as dependency for virtualenv
# docutils==0.16 # Installed as dependency for readme-renderer, sphinx
# filelock==3.0.12 # Installed as dependency for tox, virtualenv
# gitdb==4.0.5 # Installed as dependency for gitpython
...

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

More Repositories

1

3270font

A 3270 font in a modern format
Python
1,679
star
2

selectric-mode

⌨ Make your Emacs sound like a proper typewriter.
Emacs Lisp
157
star
3

testable_appengine

A testable Python skeleton application for Google's App Engine and AppScale environments
Python
31
star
4

nsaname

🕵 Like petname, but for naming secret projects and tools.
JavaScript
23
star
5

vm370

Docker image for rbanffy/vm370
Makefile
16
star
6

appengine-fixture-loader

A simple way to load Django-like fixtures into the datastore.
Python
15
star
7

sdisk2

Software for the SDISK 2 Disk II emulator for Apple II computers
C
13
star
8

green-screen-emacs

A nice color theme for those who miss green CRTs
Emacs Lisp
10
star
9

fonts-1

10
star
10

denuncia_pfbr

Chrome extension para facilitar denúncias pelo site da Policia Federal do Brasil
5
star
11

fun_with_tektronix

Fun with Tektronix terminals
Python
4
star
12

unpepefy

🚫 Chrome/Firefox extension for removing undesirable frogs from the screen
JavaScript
4
star
13

myowndelicious

A delicious bookmarks to can call your own
Python
3
star
14

li_classic_share

Browser extension that allows one to share using the classic LinkedIn interface.
JavaScript
1
star
15

tweet-track

Python
1
star
16

dotfiles

A place to keep non-secret configuration files
Emacs Lisp
1
star
17

Pyccuracy-mode

An Emacs mode for editing English Pyccuracy files
1
star
18

gdd2010-clj

The Google Developer Day admission test solution, implemented in Clojure
Clojure
1
star
19

sociopod

Podcast-centric discussions
Python
1
star
20

somebodysfacts

Sombody's Facts - an application to allow you to collect facts about anyone or anything - was recently remissioned to become a showcase for Google's asynchronous Python data-access API
Python
1
star
21

timewarp

Small C program that advances the system clock
C
1
star
22

nmon

A fork of nmon (because no one deserves SourceForge) from http://nmon.sourceforge.net/
C
1
star