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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file toml_to_requirements-0.3.0.tar.gz.

File metadata

  • Download URL: toml_to_requirements-0.3.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for toml_to_requirements-0.3.0.tar.gz
Algorithm Hash digest
SHA256 54b08feb02b0cfea0fbd1d634f06af67a21d5f5616c4a510cddb1a005e07c62f
MD5 473e9bf30515bfb1d60c667f763222af
BLAKE2b-256 588b97422a77a1391e855c7e07dc2e8201061176aceee0d0a1d6bbbf9056f4c6

See more details on using hashes here.

File details

Details for the file toml_to_requirements-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for toml_to_requirements-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccca410f33c360755fc575aba4fe639544f8b5c75a104bb61d3d4da9b4d0e9bb
MD5 11cfb80bb7b11da63664b335d9f2a32a
BLAKE2b-256 37dab633c0c56489848e7320f381665e6262aa6ce0c1d3e9ea4c866361f3f8ed

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