Skip to main content

Poetry plugin to export the dependencies to various formats

Project description

Poetry Plugin: Export

Poetry

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, only constraints.txt and requirements.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 the main 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry_plugin_export-1.9.0.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

poetry_plugin_export-1.9.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

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

Hashes for poetry_plugin_export-1.9.0.tar.gz
Algorithm Hash digest
SHA256 6fc8755cfac93c74752f85510b171983e2e47d782d4ab5be4ffc4f6945be7967
MD5 d983bb0efa8f9a93cf4cba798d80ecd1
BLAKE2b-256 2e25c6516829d49afce7f3852ef7dd708b3d19cf647a6b5b834c369a59af52fe

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file poetry_plugin_export-1.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_plugin_export-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2621dd8c260dd705a8227f076075246a7ff5c697e18ddb90ff68081f47ee642
MD5 d4162520c7b2460684343b3c2bd6b598
BLAKE2b-256 bf4105f9494adb6ad0640be758de67db255a91a46362996020dd8cd21d0fcf60

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page