Skip to main content

pyproject-deplister is a Python package for extracting dependency information from pyproject.toml files and converting it into the format of a requirements.txt file. With its simple and intuitive interface, pyproject-deplister makes it easy to manage and track dependencies for your Python projects, ensuring that you have all the necessary packages installed and up-to-date.

Project description

pyproject-deplister

Python package for extracting dependencies from pyproject.toml files and converting them into the format of a requirements.txt file.

Installation

You can install pyproject-deplister using pip:

pip install pyproject-deplister

Usage

To use pyproject-deplister, simply provide the path to your pyproject.toml file as an argument:

pyproject-deplister -p path/to/pyproject.toml

The output will be a list of dependencies in the format of a requirements.txt file, which you can use with pip to install and manage your project's dependencies.

For example:

numpy==1.21.0
pandas==1.3.0
scikit-learn==0.24.2

There are also additional options available:

  • -p or --path: Specify the path to the pyproject.toml file. By default, the current working directory will be used.
  • -o or --output: Specify the output file for the requirements.txt file. By default, the output will be printed to the console.
  • -e or --extra: Include dependencies from the specified extras in the output. For example, -e dev will include dependencies from the dev extras. You can specify multiple extras separated by space.
pyproject-deplister [-h] [--extra [EXTRA ...]] [--path [PATH]] [--output_file [OUTPUT_FILE]]

Features

  • Extract dependency information from pyproject.toml files
  • Convert dependency information into the format of a requirements.txt file
  • Simple and intuitive interface

Disclaimer

Dependencies can only be extracted if they follow specifically the specification introduced in PEP 631.

Requirements

  • Python 3.6 or higher

License

pyproject-deplister is licensed under the MIT License.

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

pyproject_deplister-0.1.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

pyproject_deplister-0.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pyproject_deplister-0.1.2.tar.gz.

File metadata

  • Download URL: pyproject_deplister-0.1.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for pyproject_deplister-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6cf4f7655143fb4e741406afc4edfaf2c66d9e9e23be03806accf0257f01fd9a
MD5 d89a1e5f85440247d0d90cacc3d77ab6
BLAKE2b-256 3dfeef59fd7398f5cc5ef167699b0f0aee528f62094436596096713477e9b2ae

See more details on using hashes here.

File details

Details for the file pyproject_deplister-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyproject_deplister-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1e5dced4773cde34afb0e3fb13104f3673379654b9a41c78d15b909ea8be606
MD5 fc76875c6ffef89001f8fe9bc1afa87a
BLAKE2b-256 b0764010419464b01e5c5ca581ffbfaa7c069ff708f5c519984bb67d5d58242e

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