Poetry plugin to export the dependencies to various formats
Project description
Poetry Plugin: Export
This package is a plugin that allows the export of locked packages to various formats.
Note: For now, only the constraints.txt and requirements.txt formats are available.
This plugin provides the same features as the existing export command of Poetry which it will eventually replace.
Installation
On Poetry 2.0 and newer, the easiest way to add the export plugin is to declare it as a required Poetry plugin.
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.8"
Otherwise, install the plugin via the self add command of Poetry.
poetry self add poetry-plugin-export
If you used pipx to install Poetry you can add the plugin via the pipx inject command.
pipx inject poetry poetry-plugin-export
Otherwise, if you used pip to install Poetry you can add the plugin packages via the pip install command.
pip install poetry-plugin-export
Usage
The plugin provides an export command to export to the desired format.
poetry export -f requirements.txt --output requirements.txt
[!IMPORTANT] When installing an exported
requirements.txtviapip, you should always pass--no-depsbecause Poetry has already resolved the dependencies so that all direct and transitive requirements are included and it is not necessary to resolve again viapip.pipmay even fail to resolve dependencies, especially ifgitdependencies, which are exported with their resolved hashes, are included.
[!NOTE] The following formats are currently supported:
requirements.txtconstraints.txtpylock.toml
Available options
--format (-f): The format to export to (default:requirements.txt). Additionally,constraints.txtandpylock.tomlare supported.--output (-o): The name of the output file. If omitted, print to standard output.--with: The optional and non-optional dependency groups to include. By default, only the main dependencies are included.--only: The only dependency groups to include. It is possible to exclude themaingroup this way.--without: The dependency groups to ignore. (Deprecated)--default: Only export the main dependencies. (Deprecated)--dev: Include development dependencies. (Deprecated)--extras (-E): Extra sets of dependencies to include.--all-extras: Include all sets of extra dependencies.--all-groups: Include all dependency groups.--without-hashes: Exclude hashes from the exported file.--with-credentials: Include credentials for extra indices.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poetry_plugin_export-1.10.0.tar.gz.
File metadata
- Download URL: poetry_plugin_export-1.10.0.tar.gz
- Upload date:
- Size: 36.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ef9df924cd874a825d92d6bc01a5a869a4a28d2f2ebba61d3b5b19c60120f0
|
|
| MD5 |
874ac283275141d1542d581ee387c581
|
|
| BLAKE2b-256 |
b865b6101669aaa4e0efab9d6a634b1254ab1f66d12db9e8142f16f8e3a18911
|
Provenance
The following attestation bundles were made for poetry_plugin_export-1.10.0.tar.gz:
Publisher:
release.yaml on python-poetry/poetry-plugin-export
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
poetry_plugin_export-1.10.0.tar.gz -
Subject digest:
26ef9df924cd874a825d92d6bc01a5a869a4a28d2f2ebba61d3b5b19c60120f0 - Sigstore transparency entry: 833757540
- Sigstore integration time:
-
Permalink:
python-poetry/poetry-plugin-export@ac66c08a6fcfd140b23c0133f4886999479cc0b9 -
Branch / Tag:
refs/tags/1.10.0 - Owner: https://github.com/python-poetry
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@ac66c08a6fcfd140b23c0133f4886999479cc0b9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file poetry_plugin_export-1.10.0-py3-none-any.whl.
File metadata
- Download URL: poetry_plugin_export-1.10.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb9b61332718fb91c8d9399edb00fd73cf99de37506adf617fbdf55079bab223
|
|
| MD5 |
19d2602ba53502b0d47b3b14f686d837
|
|
| BLAKE2b-256 |
9cc604e2f2e2155d3a987b1e364150abfc1d6667c135cfd4894a23e1f5405558
|
Provenance
The following attestation bundles were made for poetry_plugin_export-1.10.0-py3-none-any.whl:
Publisher:
release.yaml on python-poetry/poetry-plugin-export
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
poetry_plugin_export-1.10.0-py3-none-any.whl -
Subject digest:
fb9b61332718fb91c8d9399edb00fd73cf99de37506adf617fbdf55079bab223 - Sigstore transparency entry: 833757542
- Sigstore integration time:
-
Permalink:
python-poetry/poetry-plugin-export@ac66c08a6fcfd140b23c0133f4886999479cc0b9 -
Branch / Tag:
refs/tags/1.10.0 - Owner: https://github.com/python-poetry
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@ac66c08a6fcfd140b23c0133f4886999479cc0b9 -
Trigger Event:
release
-
Statement type: