bitwarden-wrapper
An extremely simple Bitwarden CLI wrapper. Originally developed for smol-k8s-lab, but extracted so it can be used elsewhere.
Usage
Here's the basic usage:
# initialize the object
bw = BwCLI(my_passsword, my_client_id, my_client_secret)
# unlock the vault
bw.unlock()
# generate a random password
random_password = bw.generate()
# create a login item in the vault
bw.create_login(name="test mctest",
item_url="coolhosting4dogs.tech",
user="admin",
password=random_password)
# lock the vault
bw.lock()
If you pass in tui=True to the BwCLI object, we'll also display a TUI for when a duplicate item exists to allow the user to select what they'd like to do.
You can also specify duplicate_strategy="edit" to edit existing items. The values for duplicate_strategy can be: "edit", "ask", "duplicate", "no_action", but it always defaults to "ask".
Warnings
-
If you set your logging library to log level DEBUG, we may print sensitive info when creating and deleting vault items. This is intensional for debugging purposes only.
-
The TUI may throw issues when run inside an event loop. In which case, wecan always fall back to using rich instead.
Release files for bitwarden-wrapper 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bitwarden_wrapper-0.1.4.tar.gz | 22.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bitwarden_wrapper-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.6 kB
Release files / bitwarden_wrapper-0.1.4.tar.gz
| Download URL | bitwarden_wrapper-0.1.4.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3bf66afcbfc2454f7b4799e7d3ea6a36e7f36253646389930b5f3b642564c129
|
|
BLAKE2b-256 checksum How to use checksums |
6e164a5c6807c6216e889cd8e90911bd4890a5ec3c8591554c2bee759f58eeb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.11.2 Linux/6.1.0-49-amd64
|
Release files / bitwarden_wrapper-0.1.4-py3-none-any.whl
| Download URL | bitwarden_wrapper-0.1.4-py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c9367d03c9bf408b79cd99576c733d82e02f2ac4722b8775f8059f0ec76478d
|
|
BLAKE2b-256 checksum How to use checksums |
05f234802a6e96acf8879f939e370d7dd4413e877d5b882ac6bbb623c99705ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.11.2 Linux/6.1.0-49-amd64
|