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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for install-requires-0.1.1.tar.gz
Algorithm Hash digest
SHA256 578e57a51ea16008fcf256052c2776791e7f1db11982adb7d88e6b7c18978699
MD5 90ebd70a3ec8f19e6eed03b6189f85c0
BLAKE2b-256 5d0d2391712f41281531294ea61d0a424bbd4b57cda05ea749383d148fb18697

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