Bitwarden Python

Posted on  by admin
Latest version

Released:

Thoughtful Automation BitWarden CLI installation package

Project description

Thoughtful Automation BitWarden CLI installation package

Thoughtful Automation BitWarden CLI installation package. Free software: MIT license; Documentation: https://ta-bitwarden-cli.readthedocs.io. This tutorial will show you how to self-host the Bitwarden server software on your Raspberry Pi. Bitwarden is an open-source and free password manager. Using your Pi as a server allows you to synchronize these passwords between your Bitwarden clients.

Installation

For correct work please use python virtualenv approach!

Code above will additionally install bw CLI binary to a first available folder in the $PATH

Example Usage

Development

Prepare local dev env:

Testing:

Pushing new package version:

Release historyRelease notifications RSS feed

0.5.0

0.4.0

0.3.0

Download files

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

Files for ta-bitwarden-cli, version 0.5.0
Filename, sizeFile typePython versionUpload dateHashes
Filename, size ta_bitwarden_cli-0.5.0.tar.gz (4.7 kB) File type Source Python version None Upload dateHashes
Close

Hashes for ta_bitwarden_cli-0.5.0.tar.gz

Hashes for ta_bitwarden_cli-0.5.0.tar.gz
AlgorithmHash digest
SHA2567b235cebdc683de56552243d741d827d947d19c875e86196ee0dbeb73d1e5af3
MD50ebdbb71be5e596e18c00aa3510f91b0
BLAKE2-256a31b4e8e41db56b869f240db4489cc6c09c48cedc1344264863c2e9f8d0f4ed3
Latest version

Released:

Simple bitwarden CLI written in Python to list and decrypt secrets

Project description

This is an unofficial port of the Bitwarden NodeJS CLI to Pythonfocused on decryption of secrets with increased performance

How to install

Pip

How to use ?

This tool do not replace the official NodeJs CLI of Bitwarden. You still need it to perform auth, unlock and sync operations.

First, ensure that your bitwarden vault in unlocked and that you register the BW_SESSION in your environment.

Get decrypted valued

List items

Currently supported fields

The script currently handles the decryption of the following entities and fields:

  • login
    • [ custom field name ]
    • name
    • notes
    • password
    • uri: retrieve first uri without new line
    • uris: retrieve all uris, one per line
    • username
  • note
    • [ custom field name ]
    • name
    • notes

It supports decryption of personal and organization ciphers.

Why this project ?

We use Ansible to manage infrastructures and use a lookup plugin to grab hundred of secrets. Each secret is retrievenwith the native NodeJS CLI in about 0.85s on my computer. When you have hundreds of secrets, that makes long minutes to wait.

Python

According to https://github.com/bitwarden/cli/issues/67, node looks like to suffer from slow bootstrap.

This port to Python is aimed to increase secrets lookup performance. First benchmarks spotted that secrets could beretrieven in around 0.15s with this port.

Benchmark

Bitwarden Python

Original bw cli: 20 requests - 17,21s

bw-simple: 20 requests - 2,2s

Development

Development requirements are listed in requirements/dev.txt

Testing

Testing is done through pytest. A sample database unlocked with BW_SESSION are provided.

License

GPLv3

Release historyRelease notifications RSS feed

1.3.1

1.2.8

1.2.7

1.2.6

1.2.5

1.2.4

1.2.3

1.2.1

1.2

Bitwarden Python Client

1.1.1

1.0

Download files

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

Files for bitwarden-simple-cli, version 1.3.1
Filename, sizeFile typePython versionUpload dateHashes
Filename, size bitwarden simple cli-1.3.1.linux-x86_64.tar.gz (40.9 kB) File type Source Python version None Upload dateHashes
Filename, size bitwarden_simple_cli-1.3.1-py3-none-any.whl (42.7 kB) File type Wheel Python version py3 Upload dateHashes
Close

Bitwarden Cli Python

Hashes for bitwarden simple cli-1.3.1.linux-x86_64.tar.gz

Hashes for bitwarden simple cli-1.3.1.linux-x86_64.tar.gz
AlgorithmHash digest
SHA25664218534b876a50846cd369bf038c5e940bf70b7b2d9cc95e7c4a4de5d5d9767
MD5eaba2478bc5a5d90870fd85df3c02941
BLAKE2-256d13b82e16053fb4ecc3e047ff34bb51c23537c77b94ec2bc6194c3f0bfb45422
Close

Hashes for bitwarden_simple_cli-1.3.1-py3-none-any.whl

Bitwarden Python

Hashes for bitwarden_simple_cli-1.3.1-py3-none-any.whl
AlgorithmHash digest
SHA25626f4ca753b765551a3e6882e69c0dce072a7aa4d0e2a7c8145b66e705276577a
MD53d5063ef4e9f3a6b86f4a81e86689f81
BLAKE2-2566e9290dc8991647c98e56311c520888b81f3fff77337dbae33203339535a33e1