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
Note: Only the constraints.txt
and requirements.txt
formats are currently supported.
Available options
--format (-f)
: The format to export to (default:requirements.txt
). Currently, onlyconstraints.txt
andrequirements.txt
are 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 themain
group 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
File details
Details for the file poetry_plugin_export-1.9.0.tar.gz
.
File metadata
- Download URL: poetry_plugin_export-1.9.0.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fc8755cfac93c74752f85510b171983e2e47d782d4ab5be4ffc4f6945be7967 |
|
MD5 | d983bb0efa8f9a93cf4cba798d80ecd1 |
|
BLAKE2b-256 | 2e25c6516829d49afce7f3852ef7dd708b3d19cf647a6b5b834c369a59af52fe |
Provenance
The following attestation bundles were made for poetry_plugin_export-1.9.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.9.0.tar.gz
- Subject digest:
6fc8755cfac93c74752f85510b171983e2e47d782d4ab5be4ffc4f6945be7967
- Sigstore transparency entry: 161816377
- Sigstore integration time:
- Permalink:
python-poetry/poetry-plugin-export@09aec2dce7fb27e15164b09f4d49fa99871fdb6b
- Branch / Tag:
refs/tags/1.9.0
- Owner: https://github.com/python-poetry
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yaml@09aec2dce7fb27e15164b09f4d49fa99871fdb6b
- Trigger Event:
release
- Statement type:
File details
Details for the file poetry_plugin_export-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: poetry_plugin_export-1.9.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2621dd8c260dd705a8227f076075246a7ff5c697e18ddb90ff68081f47ee642 |
|
MD5 | d4162520c7b2460684343b3c2bd6b598 |
|
BLAKE2b-256 | bf4105f9494adb6ad0640be758de67db255a91a46362996020dd8cd21d0fcf60 |
Provenance
The following attestation bundles were made for poetry_plugin_export-1.9.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.9.0-py3-none-any.whl
- Subject digest:
e2621dd8c260dd705a8227f076075246a7ff5c697e18ddb90ff68081f47ee642
- Sigstore transparency entry: 161816378
- Sigstore integration time:
- Permalink:
python-poetry/poetry-plugin-export@09aec2dce7fb27e15164b09f4d49fa99871fdb6b
- Branch / Tag:
refs/tags/1.9.0
- Owner: https://github.com/python-poetry
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yaml@09aec2dce7fb27e15164b09f4d49fa99871fdb6b
- Trigger Event:
release
- Statement type: