Skip to main content

Simple Python client for passbolt

Project description

pybolt

Simple modern python library for accessing secrets stored in passbolt

Rationale

I needed a simple way to access credentials stored in passbolt; I've found only obsolete packages and decided to write a quick one.

Usage

You need:

  • a working passbolt server (let's say at https://mypassbolt.domain.example)
  • a set of credentials for that server:
    • an ascii-armored private key (e.g. in file myprivatekey.asc)
    • the passphrase for that key (e.g. mysecretpassphrase)
  • the uuid of a secret you want to know

Then you can just import pybolt and use it like this:

import pybolt

url="https://mypassbolt.domain.example"
passphrase="mysecretpassphrase"
private_key="myprivatekey.asc"
secret_uuid='31d79219-86e8-4cbf-b5ac-0b49f7aefa7b'

b = pybolt.Bolt(url, private_key, passphrase)
b.verify()
b.login()
secret = b.get_secret(secret_uuid)
print(f"PASSWORD: '{secret['password']}'")

Installation

Easy:

pip install pypassbolt

(no, I couldn't use pybolt as pypi package name as it is already used).

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

simple_passbolt_client-0.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file simple_passbolt_client-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_passbolt_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f91efb891b91375ec950237f1d7d2aae0a3c84624e4f649616122ff45075f154
MD5 189efb646f9a30badc1b50f657164c8a
BLAKE2b-256 9f9f691a2d7703d59cd6ea5eb484a52615d93cd5abfea71dddc68c2ba610846a

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 Pingdom Monitoring Sentry Error logging StatusPage Status page