install_requires
Convert between dependency describing formats.
Input formats:
PipfilePipfile.lockpyproject.toml(poetry)requirements.txt
Output formats:
setup.py(returninstall_requiresanddependency_links)requirements.txt(return list of lines)
Install
Install with needed extra requirements:
pip install install-requires[pipfile]
pip install install-requires[poetry]
Or from your setup.py:
from pip._internal import main as pip
pip(['install', 'install-requires[pipfile]'])
pip(['install', 'install-requires[poetry]'])
CLI usage
install-requires example/Pipfile requirements.txt
Available conversions:
- Pipfile -> requirements.txt
- Pipfile.lock -> requirements.txt
- pyproject.toml -> requirements.txt
API usage
Pass input format, output format and path to file that must be parsed into convert function:
from pathlib import Path
from install_requires import convert
path = Path(__file__).parent
convert('pyproject.toml', 'setup.py', path)
Available conversions:
- Pipfile -> requirements.txt
- Pipfile.lock -> requirements.txt
- pyproject.toml -> requirements.txt
- Pipfile -> setup.py
- Pipfile.lock -> setup.py
- pyproject.toml -> setup.py
- requirements.txt -> setup.py
See example for more details.
Metadata
Release files for install-requires 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| install-requires-0.3.0.tar.gz | 2.9 kB | Without provenance | Details for install-requires-0.3.0.tar.gz |
Release files / install-requires-0.3.0.tar.gz
| Download URL | install-requires-0.3.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6229486e085a330041d3cc6f47eeb8d2fd0c255cf81a4b899b287c306deb717
|
|
BLAKE2b-256 checksum How to use checksums |
d30563a5ebe7a99a1b815a88a9ffad485d4a0b5839d8df5179554bb16db7cda6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2
|
Security for install-requires 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.