Skip to main content

Create a requirements.txt from dependencies in a pyproject.toml

Project description

dep2req

Overview

With dep2req you can extract dependencies from pyproject.toml files to requirements.txt in seconds. No more waiting for pip-compile to finish.

Installation

pip install dep2req

Usage

Simply run in any directory containing a pyproject.toml file:

dep2req

and a requirements.txt will be created in the current working directory.

usage: dep2req [-h] [-f FILENAME] [-a] [-s OPTIONAL_SECTIONS] [-o OUTPUT] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -f FILENAME, --filename FILENAME
                        path to the input pyproject.toml file
  -a, --add-optional    whether to include "optional-dependencies" [defaults
                        to including all sections]
  -s OPTIONAL_SECTIONS, --optional-sections OPTIONAL_SECTIONS
                        name(s) of "optional-dependencies" section(s) to
                        include, comma-delimited
  -o OUTPUT, --output OUTPUT
                        path to the output requirements.txt file
  -v, --verbose         print details about what the script is doing  

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

dep2req-1.0.5.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dep2req-1.0.5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file dep2req-1.0.5.tar.gz.

File metadata

  • Download URL: dep2req-1.0.5.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.8.2 CPython/3.11.4

File hashes

Hashes for dep2req-1.0.5.tar.gz
Algorithm Hash digest
SHA256 8941e0b23f451655aad74b2aea90d4b0a07d2a7912c5396d5fcd9bbc91e66baa
MD5 cd2c6d0b1f5955f9cfaa5a0121df082f
BLAKE2b-256 4a8ed397b65e2ad2da660817649eab144b3b12fbadf58e7130d9e389fc76e6dd

See more details on using hashes here.

File details

Details for the file dep2req-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: dep2req-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.8.2 CPython/3.11.4

File hashes

Hashes for dep2req-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 368bb48ede08fca64dd11ca0bb45e48e772445b5ca01cf67b373cb708cfdcd07
MD5 592e98ad5a3516e7b24807e85a9add09
BLAKE2b-256 15565eac698d3db599a357e70d1c5db0d1f9e520786637dc2512b9db3ea6aa88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page