Skip to main content

Dmenu/Rofi frontend for Bitwarden CLI tool

Reason this release was yanked:

Wheel build incomplete

Project description

Bitwarden-menu

PyPI - Python Version PyPI GitHub contributors

Dmenu/Rofi frontend for managing Bitwarden vaults. Uses the Bitwarden CLI tool to interact with the Bitwarden database.

This project is not associated with the Bitwarden project nor 8bit Solutions LLC.

Installation

pip install --user bitwarden-menu

Ensure ~/.local/bin is in your $PATH. Run bwm and enter your database path, keyfile path, and password.

NOTE: Initial login to some servers, including vault.bitwarden.com, will require the client_secret from your account settings page. Ensure this is in your clipboard and ready to paste prior to first run. Once logged in for the first time, you will not need this value again.

For full installation documention see the [installation docs][docs/install.md].

Full Documentation

Installation - Configuration - Usage

Requirements

  1. Python 3.7+
  2. Bitwarden CLI. Ensure the bw command is in $PATH
  3. Pynput and Xdg
  4. Dmenu, Rofi, Wofi or Bemenu
  5. xsel or wl-copy
  6. (optional) Pinentry.
  7. (optional) xdotool, ydotool(>= 1.0.0)/wtype (for Wayland).

Features

  • Supports multiple bitwarden.com and self-hosted Vaultwarden accounts. Accounts can be switched on the fly.
  • Auto-type username and/or password on selection. Select to clipboard if desired (clipboard clears after 30 sec).
  • Supports login with 2FA code from Authenticator(TOTP), Email, or Yubikey.
  • Background process allows selectable time-out for locking the database.
  • Use a custom Keepass 2.x style auto-type sequence.
  • Type, view or edit any field.
  • Open the URL in the default web browser.
  • Non U.S. English keyboard languages and layouts supported via xdotool or ydotool/wtype (for Wayland).
  • Edit notes using terminal or gui editor.
  • Add and Delete entries
  • Rename, move, delete and add folders and collections
  • Move any item to or from an organization, including support for multiple collections.
  • Hide selected folders from the default and 'View/Type Individual entries' views.
  • Configure the characters and groups of characters used during password generation.
  • Optional Pinentry support for secure passphrase entry.
  • Add, edit and type TOTP codes.

License

  • MIT

Usage

bwm [-h] [-v VAULT] [-l LOGIN] [-k] [-a AUTOTYPE] [-C]

  • Run bwm or bind to keystroke combination.
  • Enter account URL on first run.
  • Start typing to match entries.
  • Configure ~/.config/bwm/config.ini as desired.
  • More detailed usage information.
  • Screencast (Using Bemenu on Sway):

Screencast

Tests

To run tests in a venv: make test (not implemented yet)

Development

  • To install bitwarden-menu in a venv: make
  • Build man page from Markdown source: make man
  • Using hatch:
    • hatch shell: provies venv with editable installation.
    • hatch build && hatch publish: build and publish to Pypi.
  • Using nix:
    • nix develop: Provides development shell with all dependencies. Edit and run similar to pip install -e . or hatch shell.

Planned features

  • Unit tests
  • Notifications for syncing status (e.g. when a sync is complete)

Project details


Download files

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

Source Distribution

bitwarden_menu-0.4.2.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

bitwarden_menu-0.4.2-py2.py3-none-any.whl (10.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bitwarden_menu-0.4.2.tar.gz.

File metadata

  • Download URL: bitwarden_menu-0.4.2.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.2

File hashes

Hashes for bitwarden_menu-0.4.2.tar.gz
Algorithm Hash digest
SHA256 12ccc9b786ba4184604c1fbedebb9ba1ab26b2d5d9fadf860b9a44ca3628b6bc
MD5 4ddf9bc9d426ec6d1d4d2220209f58f7
BLAKE2b-256 fbfeafb4f994bd5ef71eac954c6fcd2409c48f6608eb4e4c3a8fb190de896c25

See more details on using hashes here.

File details

Details for the file bitwarden_menu-0.4.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bitwarden_menu-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e82089332d5c3c9ba87c8121b4f05e7474b4f0b79e88b43d4c7a4043578d2ed5
MD5 e5bef5d15a713ee9f667a4842fa60e42
BLAKE2b-256 c5024f8dde5b12064f4d33d0a0e6729308465ee8281fdc4d5895b784f10d1632

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page