Skip to main content

bitwarden-wrapper

PyPI - Version

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

  1. 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.

  2. 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 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bitwarden-wrapper 1.0.1
File Size Uploaded
bitwarden_wrapper-1.0.1.tar.gz 22.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bitwarden-wrapper 1.0.1
File Interpreter ABI Platform
bitwarden_wrapper-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 47.6 kB

Release files / bitwarden_wrapper-1.0.1.tar.gz

Download URL bitwarden_wrapper-1.0.1.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b63a001bea5e7ae1b6af4935b6833e2ff8ceeef9c88bc37660c33a8f46dd8871
BLAKE2b-256 checksum
How to use checksums
aa01fd0f310e3a4cfbbf2e19919b8f5188afffa927b337cf203544a0d5a88bf1
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-1.0.1-py3-none-any.whl

Download URL bitwarden_wrapper-1.0.1-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cf691de9823df8b58d69b92ea68e62c00aa4401c443b233f3e8fab3cead4c7d
BLAKE2b-256 checksum
How to use checksums
f47b0303a035531d305965c0d85e8ed5b14dd06293e83e7eace61e3b3af42989
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 history Release notifications | RSS feed

1.0.2

2 release files

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page