Small lightweight library intended to be used for getting and decrypting passwords from a passbolt server.
To install from PyPi:
pip install pybolt-client
The library uses one class names Client
.
Positional Arguments
url
- The url of the passbolt server you wish to connect to.
Keyword Arguments
gpg_path
- The path to the users gpg home directory. This will default to~/.gnupg/
.private_key_path
- The path the the users private GPG key. Defaults to~/.gnupg/private.key
.
Password retrieval is relatively simple. First we need to instantiate an instance of Client
and then
call the get_password_by_name
method, passing it the name of the password as set in passbolt.
Example:
from passbolt_client import Client
client = Client("https://passbolt.example.com")
print(client.get_password_by_name("Rees-Mogg's Onlyfans"))