Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

poetry-codeartifact-plugin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poetry-codeartifact-plugin

A poetry plugin for keeping your CodeArtifact authorization token up-to-date

  • 1.0.3
  • PyPI
  • Socket score

Maintainers
1

poetry-codeartifact-plugin

This Poetry plugin automatically refreshes your authorization token when working with CodeArtifact repositories.

Installation

Run this to install the plugin: poetry self add poetry-codeartifact-plugin

And to remove: poetry self remove poetry-codeartifact-plugin

Usage

No configuration or workflow changes are needed. If the plugin detects a HTTP 401 or 403 from a CodeArtifact URL, it will refresh your authorization token and retry the request.

This assumes that your local AWS creds are up-to-date -- if not, your command will still fail.

Adding a CodeArtifact repository

Add this snippet to your project's pyproject.toml:

[[tool.poetry.source]]
name = "codeartifact-pypi"  # arbitrary, just don't reuse repository names between CodeArtifact repos
url = "https://DOMAIN-123412341234.d.codeartifact.us-west-2.amazonaws.com/REPO/pypi/simple/"  # get this URL from your CodeArtifact dashboard or the GetRepositoryEndpoint API call

Learn more about Poetry repositories here: https://python-poetry.org/docs/repositories/

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc