Skip to main content

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 (return install_requires and dependency_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

install-requires-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file install-requires-0.1.0.tar.gz.

File metadata

File hashes

Hashes for install-requires-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b484fdb74bbadfcbda294affb4684f504e0f96193f18e791e733f6e654fa197
MD5 3c112331ec6fbfe5727251b606561bd1
BLAKE2b-256 c209263af4fc898459e4d9fa64fc1ed3ed820a42d0c83f77b1c34153fe19a963

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