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.

Metadata

Release files for bitwarden-wrapper 1.2.4

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.2.4
File Size Uploaded Provenance Actions
bitwarden_wrapper-1.2.4.tar.gz 22.5 kB Without provenance Details for bitwarden_wrapper-1.2.4.tar.gz

Built distribution (wheel)

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

Total release size: 47.7 kB

Release files / bitwarden_wrapper-1.2.4.tar.gz

Download URL bitwarden_wrapper-1.2.4.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d947d5b9b7ae5c29a3397262d17068a0f6c8df5f860f2951b8d3d952f6402484
BLAKE2b-256 checksum
How to use checksums
8ac874cf696d87ef7d16e1b2ca992a180c0e2a0b59df7a9dd1340be04a898160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.11.2 Linux/6.1.0-47-amd64

Release files / bitwarden_wrapper-1.2.4-py3-none-any.whl

Download URL bitwarden_wrapper-1.2.4-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de686a6493fb35d4650b4a3e72749a79281a3723935bc75de2e04df450c7d6fe
BLAKE2b-256 checksum
How to use checksums
3db48a4115d8e15fe0b62e90065a6ef2c018d3caed20189064b17c92c517bdf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.11.2 Linux/6.1.0-47-amd64

Security for bitwarden-wrapper 1.2.4

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.

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