Convert requirements between formats
Project description
install_requires
Convert between dependency describing formats.
Input formats:
Pipfile
Pipfile.lock
pyproject.toml
(poetry)requirements.txt
Output formats:
setup.py
(returninstall_requires
anddependency_links
)requirements.txt
(return list of lines)
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)
See example for more details.
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
File details
Details for the file install-requires-0.1.0.tar.gz
.
File metadata
- Download URL: install-requires-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b484fdb74bbadfcbda294affb4684f504e0f96193f18e791e733f6e654fa197 |
|
MD5 | 3c112331ec6fbfe5727251b606561bd1 |
|
BLAKE2b-256 | c209263af4fc898459e4d9fa64fc1ed3ed820a42d0c83f77b1c34153fe19a963 |