BitWarden backend for Pants
This release targets Pants 2.31.0. Install it with
pants-backend-bitwarden==0.7.0 in [GLOBAL].plugins in pants.toml.
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.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pants_backend_bitwarden-0.7.0.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pants_backend_bitwarden-0.7.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 17.0 kB
Release files / pants_backend_bitwarden-0.7.0.tar.gz
| Download URL | pants_backend_bitwarden-0.7.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56f837fc2895918c469064cc6e17a8a45f9e6bcde97c2ef049076cb64c924a82
|
|
BLAKE2b-256 checksum How to use checksums |
7784c98ebf831eb1f00d1f2669a68904ca22cb01f45ccdcee6ab34f34726c069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / pants_backend_bitwarden-0.7.0-py2.py3-none-any.whl
| Download URL | pants_backend_bitwarden-0.7.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9ca9d49d1e34d9d12e966e21dca9bf7de9b8e7d2667bb8f9b4caa38542528489
|
|
BLAKE2b-256 checksum How to use checksums |
6cd9b87a4cfb91dae92610acb9ec1a00ae169d4e2342308defc79cd19cef1e4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|