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

Uploaded Source

Built Distribution

toml_to_requirements-0.2.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toml_to_requirements-0.2.1.tar.gz
  • Upload date:
  • Size: 2.7 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.2.1.tar.gz
Algorithm Hash digest
SHA256 c857fe4ae45aa3761d6573f6de9f0934ffaf4d6fb0877e8f5b46fb07a6c07070
MD5 68e41beae7690bdd741f146b430c5236
BLAKE2b-256 4fe8e348abf742a26e4a5e0a7f1981d27e1beef7dc90b3b804117fa008625223

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for toml_to_requirements-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d923d0e4739423e669bc2f496acd5b7453552d59c6a57a232e517796c1be378a
MD5 b16eab713a91c46fdf71e90faeb23971
BLAKE2b-256 c29921b78ed06b0781c54d2679fd31616e32f2d0ea5f38f6b7129841af1af356

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