Skip to main content

Aliases PIP_INDEX_URL silently within Poetry to point at a new repository.

Project description

poetry-plugin-pypi-proxy

This is a plugin that enables developers who use internal proxies of Pypi to integrate their projects seamlessly with Poetry without needing to build custom configurations for their proxy server.

The plugin operates intuitively -- users can onboard to this tooling by installing the plugin and then setting PIP_INDEX_URL before running Poetry commands.

It also runs silently, i.e., it will not pollute your poetry.lock with the URL of your proxy server and poetry publish is automatically redirected to the proxy as well.

Usage

Start by installing Poetry with pipx:

pipx install poetry
poetry self add poetry-plugin-pypi-proxy[plugin]

If you have already installed poetry, you only need to run the second command.

Now, any Poetry project will automatically use the proxy server specified by PIP_INDEX_URL. You may add this to your rc file (.bashrc, .zshrc, .envrc with direnv, etc) or simply export it in your terminal to get started.

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_pypi_proxy-0.2.1.tar.gz (541.1 kB view details)

Uploaded Source

Built Distribution

poetry_plugin_pypi_proxy-0.2.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file poetry_plugin_pypi_proxy-0.2.1.tar.gz.

File metadata

File hashes

Hashes for poetry_plugin_pypi_proxy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9ac445a3be05fcefd34984effc476b0a87793d42ec52d4f28d04d1c4a866b38b
MD5 94776dd698d7aec517c2a34fd7680ac6
BLAKE2b-256 e5bd9de6ac22d807b505f80df8542e82b93f9634e4f7bf778511436c61f8b232

See more details on using hashes here.

File details

Details for the file poetry_plugin_pypi_proxy-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_plugin_pypi_proxy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e6ece81d80b197523af28b35d6e7c2607d63e4ca897a36e4208d96d689fb4d0
MD5 8b74d2b7da6d75d35c5c6a09b1bef87b
BLAKE2b-256 b657fcea2f0891f65d27ecb7106adc3e177df655344c536e5bfedfef3652e8cf

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