Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frostming/pipfile-requirements
A CLI tool to covert Pipfile/Pipfile.lock to requirments.txt
https://github.com/frostming/pipfile-requirements
cli-app deployment package-management pipenv pipfile
Last synced: 2 months ago
JSON representation
A CLI tool to covert Pipfile/Pipfile.lock to requirments.txt
- Host: GitHub
- URL: https://github.com/frostming/pipfile-requirements
- Owner: frostming
- License: mit
- Created: 2019-01-10T01:55:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-13T11:54:31.000Z (almost 4 years ago)
- Last Synced: 2024-10-14T19:13:13.785Z (3 months ago)
- Topics: cli-app, deployment, package-management, pipenv, pipfile
- Language: Python
- Homepage:
- Size: 61.5 KB
- Stars: 50
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pipfile-requirements
CLI tool to convert Pipfile/Pipfile.lock to requirements.txt[![Build Status](https://travis-ci.org/frostming/pipfile-requirements.svg?branch=master)](https://travis-ci.org/frostming/pipfile-requirements)
[![Build status](https://ci.appveyor.com/api/projects/status/gketl2i4mhjt53l5?svg=true)](https://ci.appveyor.com/project/frostming/pipfile-requirements)
[![](https://img.shields.io/pypi/v/pipfile-requirements.svg)](https://pypi.org/project/pipfile-requirements)
[![](https://img.shields.io/pypi/pyversions/pipfile-requirements.svg)](https://pypi.org/project/pipfile-requirements)## 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
```bash
$ 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 convert, 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
-s, --sources whether to include extra PyPi indexes
```## License
[MIT](/LICENSE)
## Others
It is my first time to use Poetry to manage my project, related to Pipenv, lol.