Skip to main content

BitWarden backend for Pants

This release targets Pants 2.30.0. Install it with pants-backend-bitwarden==0.6.0 in [GLOBAL].plugins in pants.toml.

PyPI

Warning This plugin is in development. No stability is guaranteed! Contributions welcome.

This backends implements targets for reading BitWarden secrets.

  • bw - the BitWarden CLI client

Planned and missing features

  • Setting and creating secrets via Pants

Targets

bw_item

Matches one entry in your vault.

bw_item(
    name="pypi",
    id="386c6037-cbdd-4aa3-ba80-9ed6661f751b",
    session_secret=":bw_session_key",
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
id Item id used by this target as seen in the address bar Required
item_name The name in the vault. If ambiguous this will fail. Prefer IDs.
session_secret The secret to use for the BW_SESSION variable. env["BW_SESSION"]
decsription A description of the target
tags List of tags []

bw_password

The password of an item in your vault.

bw_password(
    name="pypi_password",
    item=[":pypi"],
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
item The item containing the password. Required
decsription A description of the target
tags List of tags []

bw_field

A field from an item in your vault. These are the "Custom Fields" at the bottom of an item, not to be confused with attachments.

bw_field(
    name="pypi_token",
	field_name="api_token"
    item=[":pypi"],
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
item The item containing the password. Required
field_name The item containing the password. Required
decsription A description of the target
tags List of tags []

Metadata

Release files for pants-backend-bitwarden 0.6.0

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

Built distribution (wheel)

Table of built distributions (wheels) for pants-backend-bitwarden 0.6.0
File Interpreter ABI Platform
pants_backend_bitwarden-0.6.0-py3-none-any.whl Python 3 none any Details

Release files / pants_backend_bitwarden-0.6.0-py3-none-any.whl

Download URL pants_backend_bitwarden-0.6.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbe0253606b53a0c8228fcec40911c88dd37a628b2c93c8ac4a0379bdb3e7819
BLAKE2b-256 checksum
How to use checksums
9a916225278d1fd93aa55ea14434a031f335dea6ffe356890b664b9f04df63f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release history Release notifications | RSS feed

0.7.0

2 release files

0.6.1

2 release files

This release

0.6.0 This release

1 release file

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.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