simple-passbolt-client


Namesimple-passbolt-client JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/slazzaris/pybolt
SummarySimple Python client for passbolt
upload_time2024-03-15 13:41:04
maintainer
docs_urlNone
authorSimone Lazzaris
requires_python>=3.9
licenseApache License Version 2.0
keywords passbolt gpgauth
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```python
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:

```sh
pip install pypassbolt
```

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


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/slazzaris/pybolt",
    "name": "simple-passbolt-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "passbolt,gpgauth",
    "author": "Simone Lazzaris",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "# pybolt\n\nSimple modern python library for accessing secrets stored in passbolt\n\n## Rationale\n\nI needed a simple way to access credentials stored in passbolt; I've found only obsolete\npackages and decided to write a quick one.\n\n## Usage\n\nYou need:\n- a working passbolt server (let's say at `https://mypassbolt.domain.example`)\n- a set of credentials for that server:\n  - an ascii-armored private key (e.g. in file `myprivatekey.asc`)\n  - the passphrase for that key (e.g. `mysecretpassphrase`)\n- the uuid of a secret you want to know\n\nThen you can just import pybolt and use it like this:\n\n```python\nimport pybolt\n\nurl=\"https://mypassbolt.domain.example\"\npassphrase=\"mysecretpassphrase\"\nprivate_key=\"myprivatekey.asc\"\nsecret_uuid='31d79219-86e8-4cbf-b5ac-0b49f7aefa7b'\n\nb = pybolt.Bolt(url, private_key, passphrase)\nb.verify()\nb.login()\nsecret = b.get_secret(secret_uuid)\nprint(f\"PASSWORD: '{secret['password']}'\")\n```\n## Installation\n\nEasy:\n\n```sh\npip install pypassbolt\n```\n\n(no, I couldn't use `pybolt` as pypi package name as it is already used).\n\n",
    "bugtrack_url": null,
    "license": "Apache License Version 2.0",
    "summary": "Simple Python client for passbolt",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/slazzaris/pybolt"
    },
    "split_keywords": [
        "passbolt",
        "gpgauth"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f9f691a2d7703d59cd6ea5eb484a52615d93cd5abfea71dddc68c2ba610846a",
                "md5": "189efb646f9a30badc1b50f657164c8a",
                "sha256": "f91efb891b91375ec950237f1d7d2aae0a3c84624e4f649616122ff45075f154"
            },
            "downloads": -1,
            "filename": "simple_passbolt_client-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "189efb646f9a30badc1b50f657164c8a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5254,
            "upload_time": "2024-03-15T13:41:04",
            "upload_time_iso_8601": "2024-03-15T13:41:04.487034Z",
            "url": "https://files.pythonhosted.org/packages/9f/9f/691a2d7703d59cd6ea5eb484a52615d93cd5abfea71dddc68c2ba610846a/simple_passbolt_client-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-15 13:41:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "slazzaris",
    "github_project": "pybolt",
    "github_not_found": true,
    "lcname": "simple-passbolt-client"
}
        
Elapsed time: 0.66316s