Skip to main content

reVault for Python

reVault is an encrypted archive and local-vault library for files, credentials, keys, and typed records. Platform wheels include the native library and expose typed reVault domain values while keeping the native transport private. See the reVault manual.

python -m pip install revault-api

The complete method-example index is maintained in the source repository.

from revault_api import Revault, SecretString, Vault

runtime = Revault.load()                 # loading does not open a Vault
signing = runtime.generate_profile_signing_key_pair()
public_signing_key = signing.public_key()
with runtime.lockbox_create(bytes(32)) as box:  # process-local Lockbox
    box.set_owner_signing_key(signing)  # Profile becomes this Lockbox's owner
    box.add_file("/hello.txt", b"hello\n", False)
    box.set_variable("owner", "alice")
    box.set_secret_variable("token", bytearray(b"secret"))
    size = box.with_secret_variable("token", lambda token: len(token))
    box.commit()
public_signing_key.close()
signing.close()

with SecretString("vault passphrase") as vault_passphrase:
    persistent = Vault.open_or_create("/tmp/revault-vault", vault_passphrase)
    persistent.close()

Revault.load(native_library_path=...) opens an application-owned carrier. Otherwise a non-empty inherited REVAULT_LIBRARY is used before the packaged carrier. A bare library name delegates to the operating-system search path.

The value passed to a secret callback is a temporary bytearray; it is cleared after the callback. Do not convert it to a retained str or bytes. SecretString and SecretBytes own mutable buffers and wipe them on close(). Use AgentSession explicitly when delegating selected content keys; ordinary Lockbox operations never contact the agent.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

revault_api-0.3.12-py3-none-win_arm64.whl (2.6 MB view details)

Uploaded Python 3Windows ARM64

revault_api-0.3.12-py3-none-win_amd64.whl (2.7 MB view details)

Uploaded Python 3Windows x86-64

revault_api-0.3.12-py3-none-manylinux_2_39_x86_64.whl (5.4 MB view details)

Uploaded Python 3manylinux: glibc 2.39+ x86-64

revault_api-0.3.12-py3-none-manylinux_2_39_aarch64.whl (5.2 MB view details)

Uploaded Python 3manylinux: glibc 2.39+ ARM64

revault_api-0.3.12-py3-none-macosx_11_0_universal2.whl (2.1 MB view details)

Uploaded Python 3macOS 11.0+ universal2 (ARM64, x86-64)

revault_api-0.3.12-py3-none-macosx_10_13_universal2.whl (2.3 MB view details)

Uploaded Python 3macOS 10.13+ universal2 (ARM64, x86-64)

File details

Details for the file revault_api-0.3.12-py3-none-win_arm64.whl.

File metadata

  • Download URL: revault_api-0.3.12-py3-none-win_arm64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for revault_api-0.3.12-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 81848af6cba512dcdf5748277067e49ad096e7ea9ea4497c54c445df61cfc542
MD5 70f7181b32b85a7cba224d96a3e730e0
BLAKE2b-256 0b0416af8330934ffddc43ebc108b392acf9008235fd281dd83afe73eafe24c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.12-py3-none-win_arm64.whl:

Publisher: bindings-native-release.yml on onepub-dev/reVault

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

File details

Details for the file revault_api-0.3.12-py3-none-win_amd64.whl.

File metadata

  • Download URL: revault_api-0.3.12-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for revault_api-0.3.12-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b436ef80af38b4b3cde067d44d4c6702e74fad08c1bd0f0772e68f1ec4e87c6a
MD5 f7f344123229be29dc669669b656a050
BLAKE2b-256 b46ba1e2a1951f4b54d9cad959fad7f5145a8c21668a58458f2e94473cd71128

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.12-py3-none-win_amd64.whl:

Publisher: bindings-native-release.yml on onepub-dev/reVault

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

File details

Details for the file revault_api-0.3.12-py3-none-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for revault_api-0.3.12-py3-none-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 d9fee754ac840960c63befe6ada1f922ba29d9bbbb67729621b2265c92eaffab
MD5 648105c0e85df246e13953303fcccfb5
BLAKE2b-256 dcc12f84d98898f262f4757bd976b5c4e6432611e532f0f4145065e1df7e7990

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.12-py3-none-manylinux_2_39_x86_64.whl:

Publisher: bindings-native-release.yml on onepub-dev/reVault

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

File details

Details for the file revault_api-0.3.12-py3-none-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for revault_api-0.3.12-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 fc3dc5034f5625e22690415c152ccdd487e01ae98277575ee5b5647bc4a27fb1
MD5 90bf53dec9f2635e21f5b5a78a08383e
BLAKE2b-256 59cb67743eff8a5a84b950b900405a4b809eb81d4bb703daeeeb704e960074f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.12-py3-none-manylinux_2_39_aarch64.whl:

Publisher: bindings-native-release.yml on onepub-dev/reVault

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

File details

Details for the file revault_api-0.3.12-py3-none-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for revault_api-0.3.12-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 4b390ee5d50fec0e4f401c499ece744e870b95f39e64167e661c097ec168cdf4
MD5 b8e5bd7b87bc88ecb28b33b712d51c2f
BLAKE2b-256 083883b807a71b3d4026b67616ba636d134cbc993b594fa5b85b7a1968e66f4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.12-py3-none-macosx_11_0_universal2.whl:

Publisher: bindings-native-release.yml on onepub-dev/reVault

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

File details

Details for the file revault_api-0.3.12-py3-none-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for revault_api-0.3.12-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 f9be5f4d674196b5964d377e68cabf2f87ca5b88e78f5dcaaec73bcdc08bb97d
MD5 24eb2f8ecf9531e99e44b3b16fbe655e
BLAKE2b-256 24a0cc3a92af46a8796ee111bf2a6b9535129e2b9c6ed77c3a3ca3b1eaedb70e

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.12-py3-none-macosx_10_13_universal2.whl:

Publisher: bindings-native-release.yml on onepub-dev/reVault

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

Release history Release notifications | RSS feed

0.3.15

6 files

0.3.14

6 files

0.3.13

6 files

This release

0.3.12 This release

6 files

0.3.11

6 files

0.1.0

6 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