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

Uploaded Source

Built Distribution

dep2req-1.0.5-py3-none-any.whl (10.0 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