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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitwarden_wrapper-0.1.3.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitwarden_wrapper-0.1.3-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file bitwarden_wrapper-0.1.3.tar.gz.

File metadata

  • Download URL: bitwarden_wrapper-0.1.3.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.2 Linux/6.1.0-51-amd64

File hashes

Hashes for bitwarden_wrapper-0.1.3.tar.gz
Algorithm Hash digest
SHA256 88a37a7f25f7a0df828f93e1ed6d76fd412a2ba5513a7ba21d3393218f5d5e44
MD5 22126114838349e4fa33c7f14c1c6441
BLAKE2b-256 82bb12413b3c8b46fe1500c0ece28575eb4501c2b78d1d9f97327f257b336fb9

See more details on using hashes here.

File details

Details for the file bitwarden_wrapper-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: bitwarden_wrapper-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.2 Linux/6.1.0-51-amd64

File hashes

Hashes for bitwarden_wrapper-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 725495726bb2b2e2dd66d66a3f69fc0ad9d446e673dd1eacc322d48a945f8347
MD5 78def7c72ee450f3918fde9203d0a6c4
BLAKE2b-256 f293740237cebd37a534d43731ffdda1cf993830d16cae80cc038c9bf6fd2509

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page