Skip to main content

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

Project description

👩  This project is part of the passbolt "lab"!
⚗️   It is used to illustrate an article or as a conversation starter.
🧪  Use at your own risks!

Copyright & License

(c) 2021 Passbolt SA

Passbolt is registered trademark of Passbolt S.A.

MIT No Attribution - https://opensource.org/licenses/MIT-0

py-passbolt

About

Python library for Passbolt API based on httpx and PGPy.

You can also use python-gnupg if needed but it is not the default.

How to install

python -m pip install py-passbolt

How to use

config.json configuration file

Basically, create a config.json file containing needed configuration. You will find samples:

Then have a look at https://gitlab.com/AnatomicJC/py-passbolt/-/blob/main/example.py python script.

Environment variables

Mandatory:

  • PASSBOLT_BASE_URL: Your passbolt URL

For PGPy:

  • PASSBOLT_PRIVATE_KEY: Your passbolt private key in one-line format (See below about how to format)
  • PASSBOLT_PASSPHRASE: Your passbolt passphrase

For python-gnupg:

  • PASSBOLT_GPG_BINARY (Optional): path to your gpg binary, default to "gpg"
  • PASSBOLT_GPG_LIBRARY: Set this to gnupg, otherwise it will be the default "PGPy"
  • PASSBOLT_FINGERPRINT: The OpenPGP key fingerprint to use

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.15.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

py_passbolt-0.0.15-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: py-passbolt-0.0.15.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for py-passbolt-0.0.15.tar.gz
Algorithm Hash digest
SHA256 003381764f216dec439c659adde97264d5b8162d6bdb8f18838fd0d450eedc34
MD5 92cf4aef6b1c2346530bbd00c4bdc591
BLAKE2b-256 392852890cb66be50748c36b05ab41551b8729106c0c818422af915f94dcd8ee

See more details on using hashes here.

File details

Details for the file py_passbolt-0.0.15-py2.py3-none-any.whl.

File metadata

  • Download URL: py_passbolt-0.0.15-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for py_passbolt-0.0.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1c7e159f8ab600a7081eecbca109518998a25b2d0a224037bf3eb13adc54ea9d
MD5 7447c0ae777f0779caf70577af3eb487
BLAKE2b-256 6b5ead91910b88fb999d4cfa08ee175a832d7c7d2fc3141d1f60695009f86b3a

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