BitWarden backend for Pants
This release targets Pants 2.30.0. Install it with
pants-backend-bitwarden==0.6.1 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
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.1
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.6.1.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pants_backend_bitwarden-0.6.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / pants_backend_bitwarden-0.6.1.tar.gz
| Download URL | pants_backend_bitwarden-0.6.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba6ade11bdbe0f19f7bfb089a20dedc39189d9b34911c9d9de0c20bc33c92c28
|
|
BLAKE2b-256 checksum How to use checksums |
8e9a627a74ef1f2cedcf1bd499533c0f17992d40331d2f4db06467d8c7b02f4f
|
| 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.6.1-py2.py3-none-any.whl
| Download URL | pants_backend_bitwarden-0.6.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c206a47bdcae0062b39b5babf464fd5fcecfdc1a1c7a782d89910155117eb153
|
|
BLAKE2b-256 checksum How to use checksums |
c5282df5886b62e9e9777b5265abf1db0373b4dfcc8395fcadcab5af134fe77a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|