Poetry plugin to export the dependencies to various formats
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 formats are available.
This plugin provides the same features as the existing
export command of Poetry which it will eventually replace.
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
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 formats are currently supported.
--format (-f): The format to export to (default:
requirements.txt). Currently, only
--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.
--all-extras: Include all sets of extra dependencies.
--without-hashes: Exclude hashes from the exported file.
--with-credentials: Include credentials for extra indices.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for poetry_plugin_export-1.6.0.tar.gz
Hashes for poetry_plugin_export-1.6.0-py3-none-any.whl