A Bitwarden plugin for the Pants build system
Project description
BitWarden backend for Pants
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 | [] |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pants-backend-bitwarden-0.4.0.tar.gz
.
File metadata
- Download URL: pants-backend-bitwarden-0.4.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a77725c0a32bf1c108deb0f956b5c50a712a9d97ebc04b1341ee45ed492a06 |
|
MD5 | e7a434b671cdb2dee6bdb3bda0af75a7 |
|
BLAKE2b-256 | 9b14d73135f720177f1a20c72ecc38d9a1d17d69d6441159886bb745dd7dc708 |
File details
Details for the file pants_backend_bitwarden-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: pants_backend_bitwarden-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9db4da9eeff72bd10b2c4191a489c3a866375ca0172640aa8d6842f6ed15c083 |
|
MD5 | 000ebc39b0857c8ed30aebd7127d8e0a |
|
BLAKE2b-256 | 23572360978eb85a647ceb8080fbc8c994b8b293441ea5c79f6e462bce6f8679 |