Skip to main content

Python library for Passbolt, an open-source manager for teams

Project description

py-passbolt

Python library for Passbolt API based on httpx and PGPy

How to use

Create a config.json:

{
    "base_url": "https://passbolt.domain.tld",
    "private_key": "-----BEGIN PGP PRIVATE KEY BLOCK-----\r\n\r\n See below about how to convert your private key in one-line mode -----END PGP PRIVATE KEY BLOCK-----\r",
    "passphrase": "a-strong-passphrase"
} 

or use environment variables (PASSBOLT_BASEURL, PASSBOLT_PRIVATE_KEY, PASSBOLT_PASSPHRASE).

Then have a look at example.py python script

How to set OpenPGP key in config.json or environment variables

Linux:

sed -z 's/\n/\\n/g' private.asc

MacOS

Install gnu-sed with brew:

$ brew install gnu-sed

Use gsed instead of sed:

gsed -z 's/\n/\\n/g' private.asc

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

py-passbolt-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file py-passbolt-0.0.3.tar.gz.

File metadata

  • Download URL: py-passbolt-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for py-passbolt-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ed3a692e1e96969f2faf3f54f851b44b470f5a7a216982e7ee3087270add6017
MD5 d1d22a6049c38492caf57ed4fff33895
BLAKE2b-256 916e592d3bdc019dbeb78a9ce06f06f11b250ceb4cacc09b7c89fa2fefcd6c3f

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