Skip to main content
👩  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!

(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

Metadata

Release files for passbolt 0.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for passbolt 0.0.15
File Size Uploaded Provenance Actions
passbolt-0.0.15.tar.gz 7.5 kB Without provenance Details for passbolt-0.0.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for passbolt 0.0.15
File Interpreter ABI Platform Actions
passbolt-0.0.15-py2.py3-none-any.whl Python 3, Python 2 none any Details for passbolt-0.0.15-py2.py3-none-any.whl

Total release size: 13.7 kB

Release files / passbolt-0.0.15.tar.gz

Download URL passbolt-0.0.15.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f94230e0033dbf078ff0a393a3cd0aee76d8f0a66ef2fa23a00bca318982081b
BLAKE2b-256 checksum
How to use checksums
2116579493fd23c723cde5e36cf4a163f37661e2c410fe47702ce276010dcb6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / passbolt-0.0.15-py2.py3-none-any.whl

Download URL passbolt-0.0.15-py2.py3-none-any.whl
Size 6.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
57b7dbde37a540dda6a45045fb250736230f9bac11368a9ec15bfa1467cb14c4
BLAKE2b-256 checksum
How to use checksums
8c19cb2b7a5a88410fc7534fab060ab7d42f65c6db5b487fafcee9c6798c251c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for passbolt 0.0.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.15 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page