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 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 requirements.txt
format is currently supported.
Available options
--format (-f)
: The format to export to (default:requirements.txt
). Currently, onlyrequirements.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file poetry-plugin-export-1.0.7.tar.gz
.
File metadata
- Download URL: poetry-plugin-export-1.0.7.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.9.13 Linux/5.15.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ac707ae227b06b2481249ed2678ff6b810b3487cac0fbb66eb0dc2bfd6ecf1 |
|
MD5 | 8023f6476ba7f161df7be95d4ae71d79 |
|
BLAKE2b-256 | afba17455f3fb81eb2518f3d52c85de0b3c36a9d5111cf24bf4968aa900260cc |
File details
Details for the file poetry_plugin_export-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: poetry_plugin_export-1.0.7-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.9.13 Linux/5.15.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd9d4552e7113a86c97908c13b9a439cb46830f247c7e4969e46a0d8d70e4d3f |
|
MD5 | cec7761c4a263554e2f7fb822229f228 |
|
BLAKE2b-256 | 07796875ad552af0f2bb98b60fcd281d17620f5ee49f652e34c54969596f780a |