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

Basic

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

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

Optional Dependencies

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

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

Poetry

To convert a poetry project, run the following command:

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

License

MIT

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.3.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

toml_to_requirements-0.3.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded 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