ta-bitwarden-cli
Thoughtful Automation BitWarden CLI installation package
Installation
For correct work please use python virtualenv approach! Also use –no-cache-dir option. Otherwise it would cache package wheel and wont download bw CLI binary anymore
python3 -m virtualenv venv source venv/bin/activate pip install --no-cache-dir 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 = {
"password": os.getenv("BW_PASSWORD"),
"client_id": os.getenv("BW_CLIENTID"),
"client_secret": os.getenv("BW_CLIENTSECRET"),
}
creds = {
"my_vault_item": "Google Maps API Key",
}
bw = ta.Bitwarden(bitwarden_credentials)
assert bw.get_credentials(creds)["my_vault_item"]["password"] == "XXXXXXX"
Troubleshooting
If you use Windows during code execution you could face with something like:
FileNotFoundError: [WinError 2] The system cannot find the file specified
This means that no binary is available. In that case please manually download BitWarden CLI binary from https://vault.bitwarden.com/download/?app=cli&platform=windows and put it to any folder from $PATH. This approach is similar to chromedriver
Development
1. Prepare local dev env
python3 -m virtualenv venv source venv/bin/activate pip install -r requirements.txt pre-commit install
2. Test
BW_PASSWORD=YYY BW_CLIENTID=XXX BW_CLIENTSECRET=ZZZ pytest
3. Commit your code using https://www.conventionalcommits.org/en/v1.0.0/ style commit messages
4. Submit PR
Metadata
Release files for ta-bitwarden-cli 0.14.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 | Provenance | Actions |
|---|---|---|---|---|
| ta_bitwarden_cli-0.14.0.tar.gz | 95.2 MB | Without provenance | Details for ta_bitwarden_cli-0.14.0.tar.gz |
Release files / ta_bitwarden_cli-0.14.0.tar.gz
| Download URL | ta_bitwarden_cli-0.14.0.tar.gz |
|---|---|
| Size | 95.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f82b2c93efe481112e48da80dfb00e79890ff727ef6e9aab38b43655a50ef2a
|
|
BLAKE2b-256 checksum How to use checksums |
e04958aaf37da479fa49f15a87b4d0fa6f464fc4ee2c357ee1cb2703bd75859a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.0
|
Security for ta-bitwarden-cli 0.14.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.