Skip to main content

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

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.

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

MIT

Others

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

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

pipfile-requirements-0.1.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

pipfile_requirements-0.1.1-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pipfile-requirements-0.1.1.tar.gz.

File metadata

  • Download URL: pipfile-requirements-0.1.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for pipfile-requirements-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dfb0430cda5844109415eb75ea3dbb38257b0de8d0825854cea9ae6686e0b159
MD5 d45aba681c7dfa325a8155dbdde941f9
BLAKE2b-256 04cadbad19e2f197daf64d20252941f9c4b55ff717d01b9d8a1b9cc63a69746a

See more details on using hashes here.

File details

Details for the file pipfile_requirements-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pipfile_requirements-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for pipfile_requirements-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 83d0aa7765a1506d38e4c24c1b8d295d55b6e9cb86b1d11287648e9f45b2683e
MD5 d7fe7ee04ab9f07b7d10d557721955eb
BLAKE2b-256 abef384751263265de960915380ff0bf536cf43dc2460b4dcd69f8a87cfd2097

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page