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 requirements.txt format is 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 plugin add command of Poetry.

poetry plugin 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 requirements.txt format is currently supported.

Available options

  • --format (-f): The format to export to (default: requirements.txt). Currently, only requirements.txt is 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.0.2.tar.gz (22.6 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.0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file poetry-plugin-export-1.0.2.tar.gz.

File metadata

  • Download URL: poetry-plugin-export-1.0.2.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Linux/5.13.0-1022-azure

File hashes

Hashes for poetry-plugin-export-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4b4edcfa3656c11e5529a8f365f084933402cf7f9306163fdfe44e6735d7cf16
MD5 f62f31ddad1f117de036ddc0db199998
BLAKE2b-256 fe5a1e81c505e39e8930cbb6bd159e7de8d74a987b6ba9b853e5e0c6728f7f95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poetry_plugin_export-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Linux/5.13.0-1022-azure

File hashes

Hashes for poetry_plugin_export-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f27209ee3c162757bc08a6d0f534f4bdf8d737e966aa07d84e0058c8ab3ed66e
MD5 5a00034d8b8d949ad9f6950ec1f4f328
BLAKE2b-256 3e9f154dfa4ed512b815348134dac37aadc39c3bc76c38391898900ef37dcb27

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