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

The optional lists to include can also be specified

toml-to-req --toml-file pyproject.toml --include-optional --optional-lists dev,test

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

toml_to_requirements-0.2.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distributions

toml_to_requirements-0.2.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

toml_to_requirements-0.2.0-py2.py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 2 Python 3

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