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

Uploaded Source

Built Distribution

poetry_plugin_export-1.0.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for poetry-plugin-export-1.0.4.tar.gz
Algorithm Hash digest
SHA256 dfc8b9b12717cff24fd5f74346cf35d4acf97981d70abee85f62caea41541a1b
MD5 bd948c564001e1457c77e74a7f2b6e1b
BLAKE2b-256 186b0166be7f9a4ca98b0f4fc763a2d65b5f234b2a374405916130e796eb7be7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for poetry_plugin_export-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f4569cfd0051cf85dfdbd1e5ccd8255930eb921c7aacbbb037a8bf43a2646ac4
MD5 7976e054ddb23731649e19f485087476
BLAKE2b-256 ca885ff5783d06a16de7637bb700e5cd554fcab3c00d9b43503a4dbb4cbea6ca

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