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.2.0.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

poetry_plugin_export-1.2.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: poetry_plugin_export-1.2.0.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.15 Linux/5.15.0-1022-azure

File hashes

Hashes for poetry_plugin_export-1.2.0.tar.gz
Algorithm Hash digest
SHA256 9a1dd42765408931d7831738749022651d43a2968b67c988db1b7a567dfe41ef
MD5 704c69274f170be4e620aacbb652ddfd
BLAKE2b-256 424ab5cafd020ef9294a160950801041d6d0b37ca75db7e8f78f084cae425b47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for poetry_plugin_export-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 109fb43ebfd0e79d8be2e7f9d43ba2ae357c4975a18dfc0cfdd9597dd086790e
MD5 5262ea2e166fa377bf0f9888eb1c13fb
BLAKE2b-256 5c35b88b68d6ef53840d694e2a9656670bc049b8c144930ca7c96662a0f26ac6

See more details on using hashes here.

Supported by

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