A CLI tool to covert Pipfile/Pipfile.lock to requirments.txt
Project description
pipfile-requirements
CLI tool to covert Pipfile/Pipfile.lock to requirments.txt
Required Python version
>=2.7, >=3.4
What does it do?
The tool is built on top of [requirementslib][https://github.com/sarugaku/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.
Installation
$ pip install pipfile-requirements
An executable named pipfile2req
will be ready for use in the bin path.
Usage:
$ 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
License
Others
It is my first time to use Poetry to manage my project, related to Pipenv, lol.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pipfile-requirements-0.1.0.post0.tar.gz
.
File metadata
- Download URL: pipfile-requirements-0.1.0.post0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.10 CPython/3.7.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f27604e4ceb182ebc31151c7912143123d0538fa8da3d8215d270bcba6099ec |
|
MD5 | ca7a2f212030e9af3c8fd69da67a2946 |
|
BLAKE2b-256 | cfcb16f0732fc20f6e25484a219dd3cfbecc8d2d566ff21ec0ce1819c7469b1f |
File details
Details for the file pipfile_requirements-0.1.0.post0-py2.py3-none-any.whl
.
File metadata
- Download URL: pipfile_requirements-0.1.0.post0-py2.py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.10 CPython/3.7.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75d02eba71b038bc932327fd86cfb1261e4777aaa99e4450d3803d41923aa37a |
|
MD5 | 7c088b5850e37bc289bd342a9afc15af |
|
BLAKE2b-256 | 73cae3fa28f177be5a064c6cebcfaee917068e7693239654fc3509d9b8e01005 |