Skip to content
A CLI tool to covert Pipfile/Pipfile.lock to requirments.txt
Branch: master
Clone or download
Latest commit e072177 Jan 10, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests initial commit Jan 10, 2019
.gitignore initial commit Jan 10, 2019
.travis.yml travis python jobs Jan 10, 2019
LICENSE Initial commit Jan 10, 2019 appveyor tests Jan 11, 2019
appveyor.yml update ci script Jan 11, 2019 initial commit Jan 10, 2019
poetry.lock initial commit Jan 10, 2019
pyproject.toml post distribution Jan 10, 2019 compare result Jan 10, 2019


CLI tool to covert Pipfile/Pipfile.lock to requirments.txt

Build Status Build status

Required Python version

>=2.7, >=3.4

What does it do?

The tool is built on top of requirementslib to provide a simple CLI to convert the Pipenv-managed files to requirements.txt.

Pipenv is a great tool for managing virtualenvs and dependencies, but it may be not that useful in deployment. Pip installation is much faster than Pipenv manipulation, since the latter needs extra requests to PyPI for hash checking. Installing a Pipenv in deployment may be overkilled. We just need a requirements.txt to tell CI or production server which packages and versions should be installed.


$ pip install pipfile-requirements

An executable named pipfile2req will be ready for use in the bin path.


$ pipfile2req --help
usage: pipfile2req [-h] [-p PROJECT] [--hashes] [-d] [file]

positional arguments:
  file                  The file path to covert, support both Pipfile and
                        Pipfile.lock. If it isn't given, will try Pipfile.lock
                        first then Pipfile.

optional arguments:
  -h, --help            show this help message and exit
  -p PROJECT, --project PROJECT
                        Specify another project root
  --hashes              whether to include the hashes
  -d, --dev             whether to choose the dev-dependencies section




It is my first time to use Poetry to manage my project, related to Pipenv, lol.

You can’t perform that action at this time.