Skip to main content

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

The easiest way to install the export plugin is 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.
  • --without: The dependency groups to ignore when exporting.
  • --with: The optional dependency groups to include when exporting.
  • --only: The only dependency groups to include when exporting.
  • --default: Only export the main dependencies. (Deprecated)
  • --dev: Include development dependencies. (Deprecated)
  • --extras (-E): Extra sets of dependencies to include.
  • --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.3.0.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poetry_plugin_export-1.3.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file poetry_plugin_export-1.3.0.tar.gz.

File metadata

  • Download URL: poetry_plugin_export-1.3.0.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.16 Linux/5.15.0-1031-azure

File hashes

Hashes for poetry_plugin_export-1.3.0.tar.gz
Algorithm Hash digest
SHA256 61ae5ec1db233aba947a48e1ce54c6ff66afd0e1c87195d6bce64c73a5ae658c
MD5 bd51daee4686975d62100f766a5f1528
BLAKE2b-256 481347dfed5231a975a0ee2bbb936638b71057b8b2c87ea1f010c37c83858ad1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poetry_plugin_export-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.16 Linux/5.15.0-1031-azure

File hashes

Hashes for poetry_plugin_export-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e5919bf84afcb08cdd419a03f909f490d8671f00633a3c6df8ba09b0820dc2f
MD5 205b5fc98c2d04ed7fc373f2046081af
BLAKE2b-256 ca9e8ca64ca388309ccd216f8376a864b24676510ef877a0e2ec2e7d84c27e55

See more details on using hashes here.

Supported by

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