Thoughtful Automation BitWarden CLI installation package
Project description
Thoughtful Automation BitWarden CLI installation package
Installation
python3 -m virtualenv venv source venv/bin/activate pip install ta-bitwarden-cli
Code above will additionally install bw CLI binary to a first available folder in the $PATH
Example Usage
import os
from ta_bitwarden_cli import ta_bitwarden_cli as ta
bitwarden_credentials = {
"username": os.getenv("BITWARDEN_USERNAME"),
"password": os.getenv("BITWARDEN_PASSWORD"),
}
creds = {
"my_vault_item": "Google Maps API Key",
}
bw = ta.Bitwarden(bitwarden_credentials)
assert bw.get_credentials(creds)["my_vault_item"]["password"] == "XXXXXXX"
Package Testing
python3 -m virtualenv venv source venv/bin/activate pip install -r requirements.txt BITWARDEN_USERNAME=XXX BITWARDEN_PASSWORD=YYY pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ta_bitwarden_cli-0.3.0.tar.gz
(4.6 kB
view hashes)