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.2.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for install-requires-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1b8566f83044f4bde51de34f4a7d999af26048a43b9efe30898ec281b69be0c0
MD5 a43bfe07c4ec6b7386ed8a5aa977efec
BLAKE2b-256 7247cb87f63c57ad779d76e2aea14d7c240aa38f4fcd711ad8bc5a328f121f17

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