Skip to main content

Poetry Plugin: Shell

Poetry

[!NOTE] We are looking for maintainers, see the issue.

This package is a plugin that runs a subshell with virtual environment activated.

This plugin replaces the same feature as the shell command previously available in Poetry.

Installation

The easiest way to install the shell plugin is via the self add command of Poetry.

poetry self add poetry-plugin-shell

If you used pipx to install Poetry you can add the plugin via the pipx inject command.

pipx inject poetry poetry-plugin-shell

Otherwise, if you used pip to install Poetry you can add the plugin packages via the pip install command.

pip install poetry-plugin-shell

Usage

The plugin provides a shell command to run a subshell with virtual environment activated.

poetry shell

By default, the current active shell is detected and used. Failing that, the shell defined via the environment variable SHELL (on *nix) or COMSPEC (on Windows) is used.

If a virtual environment does not exist, it will be created.

Note that this command starts a new shell and activates the virtual environment.

As such, exit should be used to properly exit the shell and the virtual environment instead of deactivate.

[!NOTE] This plugin internally uses the Shellingham project to detect current active shell.

Release files for poetry-plugin-shell 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poetry-plugin-shell 1.0.1
File Size Uploaded
poetry_plugin_shell-1.0.1.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poetry-plugin-shell 1.0.1
File Interpreter ABI Platform
poetry_plugin_shell-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size:15.9 kB

Release files / poetry_plugin_shell-1.0.1.tar.gz

Download URL poetry_plugin_shell-1.0.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2c2f878f2dbf488cdfd990fc7205af858280942f4ff766d7bbc5aa8b198a1762
BLAKE2b-256 checksum
How to use checksums
7cdeeb51fa4f65050be11c73dd88de9b2b01c466910d843999d622b7be8ace29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 5, 2025.

Transparency log

Release files / poetry_plugin_shell-1.0.1-py3-none-any.whl

Download URL poetry_plugin_shell-1.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d862799a31fa710b5e52f91415ae3b9e3374e302b7646b3829c6d776ffe2c36
BLAKE2b-256 checksum
How to use checksums
3ac6f94cabf9c8e46eda1aaa24962a0a6b84ed987b25e7ebcbe007bc689350c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 5, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page