pydep_extractor
How to Use pydep_extractor
This script extracts the dependencies from the pyproject.toml file and writes them to a requirements.txt file.
The requirements.txt file is used by the Dockerfile to install the dependencies before installing the application. This is done to speed up the build process and improve caching.
Installation
pip install pydep_extractor
Usage
-
To process a specific
pyproject.tomlfile and create arequirements.txtfile:python -m pydep_extractor path/to/pyproject.toml -
To install the dependency without creating a
requirements.txtfile:python -m pydep_extractor path/to/pyproject.toml --install -
To set a non-default pip command:
python -m pydep_extractor path/to/pyproject.toml --pip-command pip3 -
To ignore specific requirements:
python -m pydep_extractor path/to/pyproject.toml --ignore string1 string2 -
To specify a different output file for the dependencies:
python -m pydep_extractor path/to/pyproject.toml --output path/to/requirements.txt -
To specify a different output file for the pyproject if using the ignore dependency options:
python -m pydep_extractor path/to/pyproject.toml --pyproject-output path/to/pyproject_filtered.toml
Release files for pydep-extractor 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 | |
|---|---|---|---|
| pydep_extractor-0.1.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydep_extractor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / pydep_extractor-0.1.0.tar.gz
| Download URL | pydep_extractor-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5a3f5698258ddfe30b6ac744e4a42409cfa4a8ee012ba1d82c6ddeb2da5664c
|
|
BLAKE2b-256 checksum How to use checksums |
6d555a5b4955d85ca2cefeec669aef5b68354923f50fcafcdaa8ebde593c1d77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / pydep_extractor-0.1.0-py3-none-any.whl
| Download URL | pydep_extractor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc5a5c25625cdc2debd9d65f47d0e364c727594fca315d48c60d1f5346b9728d
|
|
BLAKE2b-256 checksum How to use checksums |
164fee4c851845f83104ba1d3fad5a4f680c0a1cb254e4c97aca41cb8cc77151
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|