Skip to main content

hush-hush-python

ci Codecov PyPI release license

The official Python SDK for hush-hush, generated from its OpenAPI spec and kept in sync with it automatically.

Install

pip install hush-hush

Requires Python 3.11 or newer.

Quickstart

from hush_hush import Client

client = Client("https://hush-hush.example.com", api_key="your-api-key")  # or set HUSH_HUSH_API_KEY

# Create is a write operation — it needs the credential above.
client.create_object("my-first-secret", b"already-sealed-ciphertext")

# Get needs no credential — hush-hush's confidentiality boundary is
# "who holds a matching private key," not who's calling this endpoint.
value = client.get_object("my-first-secret")
print(f"got {len(value)} bytes of sealed ciphertext")

# The audit log records every read and write; querying it needs no
# credential either, and returns the full matching result set (there's
# no pagination on this endpoint).
for entry in client.query_audit_log():
    print(entry.action, entry.object_id, entry.timestamp)

AsyncClient offers the same methods (await client.get_object(...)) for async code. The API key is only required for write operations (create/update/delete); reads (get, used-by, audit-log query) work without one. caller, accepted by most methods, is optional. See the full API reference for everything else.

Versioning

This SDK's version tracks hush-hush's OpenAPI spec, not this repo's own commit history — see CONTRIBUTING.md for how a spec change becomes a release.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hush_hush-1.2.13.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

hush_hush-1.2.13-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file hush_hush-1.2.13.tar.gz.

File metadata

  • Download URL: hush_hush-1.2.13.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hush_hush-1.2.13.tar.gz
Algorithm Hash digest
SHA256 597690699d2f6302f42b4992a7b52473bf2acea2ff25a12873ec5df498e9e3c5
MD5 fa07c0696008c9bfbb3a21e715f46515
BLAKE2b-256 fc1bdf33438c7279f7db44fbb4256d60d725ccb84444e85cdd4df8ebe09fd1c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for hush_hush-1.2.13.tar.gz:

Publisher: release.yml on alrayyes/hush-hush-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hush_hush-1.2.13-py3-none-any.whl.

File metadata

  • Download URL: hush_hush-1.2.13-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hush_hush-1.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4d5d9bdd98d0e1981d85a6a545a1a1af0a21fd2dd73d4dc30c0c7fc9ef1ca96b
MD5 9123994612c8ded4abb38c4ae8950631
BLAKE2b-256 7d4ec73a6a40a4e64d2b066af00ac54bedcdd6afb28ef93cc9ce18e0b9cc862d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hush_hush-1.2.13-py3-none-any.whl:

Publisher: release.yml on alrayyes/hush-hush-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.2.13 This release

2 files

1.2.12

2 files

1.2.11

2 files

1.2.10

2 files

1.2.9

2 files

1.2.8

2 files

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

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