Skip to main content

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

Metadata

Release files for toml-to-requirements 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toml-to-requirements 0.3.0
File Size Uploaded Provenance Actions
toml_to_requirements-0.3.0.tar.gz 2.8 kB Without provenance Details for toml_to_requirements-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toml-to-requirements 0.3.0
File Interpreter ABI Platform Actions
toml_to_requirements-0.3.0-py3-none-any.whl Python 3 none any Details for toml_to_requirements-0.3.0-py3-none-any.whl

Total release size: 7.1 kB

Release files / toml_to_requirements-0.3.0.tar.gz

Download URL toml_to_requirements-0.3.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
54b08feb02b0cfea0fbd1d634f06af67a21d5f5616c4a510cddb1a005e07c62f
BLAKE2b-256 checksum
How to use checksums
588b97422a77a1391e855c7e07dc2e8201061176aceee0d0a1d6bbbf9056f4c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / toml_to_requirements-0.3.0-py3-none-any.whl

Download URL toml_to_requirements-0.3.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccca410f33c360755fc575aba4fe639544f8b5c75a104bb61d3d4da9b4d0e9bb
BLAKE2b-256 checksum
How to use checksums
37dab633c0c56489848e7320f381665e6262aa6ce0c1d3e9ea4c866361f3f8ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for toml-to-requirements 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page