Skip to main content

BitWarden backend for Pants

This release targets Pants 2.32.x. Install it with pants-backend-bitwarden==0.8.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

Tool versions

The default is Bitwarden CLI 2026.10.0. Version 2026.9.1 remains selectable with --bitwarden-version=2026.9.1 or [bitwarden].version. Both versions include native Linux/macOS binaries for x86-64 and ARM64; historical versions retain their existing platform coverage.

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

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

Source distribution (sdist)

Source distribution for pants-backend-bitwarden 0.8.0
File Size Uploaded Provenance Actions
pants_backend_bitwarden-0.8.0.tar.gz 7.8 kB Without provenance Details for pants_backend_bitwarden-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.0 kB

Release files / pants_backend_bitwarden-0.8.0.tar.gz

Download URL pants_backend_bitwarden-0.8.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c94844c017c1ae2167f48dab7750810c47537a1697f213ec803c681f42bfbc0c
BLAKE2b-256 checksum
How to use checksums
ee448400b9d02a45f8c6cc45483a702504018b4344bc80d2a8a85afd19b0ec4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / pants_backend_bitwarden-0.8.0-py2.py3-none-any.whl

Download URL pants_backend_bitwarden-0.8.0-py2.py3-none-any.whl
Size 9.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e4e1451c0f909ec054efee52ce253a3b8289e44a470652be9dac6aa6e84ce81c
BLAKE2b-256 checksum
How to use checksums
abed3b94b8fccbbf09871536d13418095e3f9dbc103d406b5bd4e5e164480da9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for pants-backend-bitwarden 0.8.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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