DepEx
Extract Python project dependencies from a pyproject.toml file.
Why?
I haven't completely dropped requirements.txt and requirements-dev.txt files yet so this helps me keep them in sync with the dependencies I have listed in the pyproject.toml file.
Usage
Just provide the path to a Python project directory or a pyproject.toml file and extract base dependencies, optional dependencies, or all dependencies from the pyproject.toml file.
# generate a file with only the base dependencies of a package
$ depex --no-opts > requirements.txt
# or generate a file with all dependencies (including optional) of a package
depex > requirements-dev.txt
Help
$ depex -h
usage: depex [-h] [--opts | --no-opts] [--version] path
Extract Python project requirements from a `pyproject.toml` file.
positional arguments:
path path to a project directory or pyproject.toml file
options:
-h, --help show this help message and exit
--opts, --no-opts include all dependencies
--version show program's version number and exit
Copyright 2023 Josh Duncan (joshbduncan.com)
Metadata
Release files for depex 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| depex-0.1.0.tar.gz | 9.2 kB | Without provenance | Details for depex-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| depex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for depex-0.1.0-py3-none-any.whl |
Total release size: 14.3 kB
Release files / depex-0.1.0.tar.gz
| Download URL | depex-0.1.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d4f62ca6bc7a17c6d38071c4612d71fc40d5d7e5107aa53d4927a9fc3060634
|
|
BLAKE2b-256 checksum How to use checksums |
6b5c7daad70430ec7f26d69c361c144a71568fe1c7eba9e0f23e32080920a9cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / depex-0.1.0-py3-none-any.whl
| Download URL | depex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f55eb66d6d64f132eb1f36fd0bd8a65c8b522646d6f155105c53e8571b3fdfda
|
|
BLAKE2b-256 checksum How to use checksums |
7ab3956f810eea40b1a608e711bef43c22511ac66233495780607a927dc4f2e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for depex 0.1.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.