Skip to main content

harar

harar's client for Python.

from harar import vault

# The harar agent on this machine (`harar agent`): no account, no token.
harar = vault()

# A harar:// reference names a vault key, as op:// names a 1Password field.
key = harar.secrets.resolve("harar://prod/shop/STRIPE_KEY")
a, b = harar.secrets.resolve_all(["harar://prod/shop/STRIPE_KEY", "harar://prod/site/DATABASE_URL"])

The value is read when you ask for it and held only by your program; nothing is written to disk. The agent answers only the user it runs as, and the first time a terminal asks, it asks you to approve (Touch ID on a Mac). vault(socket="/run/harar.sock") talks to a primary instead.

A gateway that attaches keys on their way out (import { gateway } from 'rixse') asks where each may go, and for it for one host only: hosts(secret) and send(secret, host). A refusal, or a harar that cannot be reached, raises harar.HararError naming why.

At a harar edge

A service off your network (Railway, Vercel, CI) resolves the same references at a harar edge in your own Cloudflare, Vercel or Supabase account, with a service token from harar edge token create. The token comes from the platform's secrets; pass it in. It reads only what its token allows, and every read is in the edge's log.

harar = vault(edge="https://harar-edge.you.workers.dev", token=os.environ["HARAR_EDGE_TOKEN"])
key = harar.secrets.resolve("harar://prod/shop/STRIPE_KEY")

hosts and send stay on the local socket: they are for gateways.

harar itself: https://github.com/addiscorp/harar

Metadata

Release files for harar 0.4.0

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

Source distribution (sdist)

Source distribution for harar 0.4.0
File Size Uploaded Provenance Actions
harar-0.4.0.tar.gz 8.0 kB With provenance Details for harar-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harar 0.4.0
File Interpreter ABI Platform Actions
harar-0.4.0-py3-none-any.whl Python 3 none any Details for harar-0.4.0-py3-none-any.whl

Total release size: 13.7 kB

Release files / harar-0.4.0.tar.gz

Download URL harar-0.4.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
41bce1d0ea809dd7f2b0c420515bf7d0c476f15b7bb7e571d892e04d2464f87d
BLAKE2b-256 checksum
How to use checksums
6c48dfe78f00b989c75393e5069dbef8850cdecf16a28dacee6d70ca2cd1d62d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / harar-0.4.0-py3-none-any.whl

Download URL harar-0.4.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e26db7865c4bcbfed4329fd18fccd8a247ca54e302184f1c80b7df1ad544e7a9
BLAKE2b-256 checksum
How to use checksums
d680566f8516fc05eb581042a3fdde5077c9b9c7f99bdb7daf1496207f7abff2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for harar 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for harar-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

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.

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