Skip to main content

Convert a pyproject.toml file to a requirements.txt file

Project description

TOML to Requirements

Simple script to convert a pyproject.toml file to a requirements.txt file.

Does not support poetry projects! They have their own converter tools.

Installation

Install with pip:

pip install toml-to-requirements

Usage

Run the following command to generate a requirements.txt file without including optional dependencies:

toml-to-req --toml-file pyproject.toml

To include optional dependencies, include the --include-optional flag in the above command:

toml-to-req --toml-file pyproject.toml --include-optional

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

toml_to_requirements-0.1.0-py2.py3-none-any.whl (2.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file toml_to_requirements-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for toml_to_requirements-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3ca25158b4cc56812e61f564e91bbb82d854251218364131a565d450cd56705b
MD5 daf0ea9a31a20488902533dcc66bab09
BLAKE2b-256 9807ef2f2772dad2d9c899674424fab9d5f18953f70fb7d6b39855091f342509

See more details on using hashes here.

Provenance

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