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 documentation.

python -m pip install revault-api

The complete method-example index is in ../API_EXAMPLES.md.

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.11-py3-none-win_arm64.whl (2.6 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

revault_api-0.3.11-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.11-py3-none-manylinux_2_39_aarch64.whl (5.2 MB view details)

Uploaded Python 3manylinux: glibc 2.39+ ARM64

revault_api-0.3.11-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.11-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.11-py3-none-win_arm64.whl.

File metadata

  • Download URL: revault_api-0.3.11-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.11-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 9f3ff05e2c899f97c232c97f0b9cfa337f63898ba6ec06d1bc1253afdef5f486
MD5 9bdc2b9e8d374b2d44ff9ed1e25fb9ab
BLAKE2b-256 fa11e0a20388315c07e108653e245e828dd175c9f5cc4a824516e42a6967cc96

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.11-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.11-py3-none-win_amd64.whl.

File metadata

  • Download URL: revault_api-0.3.11-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.11-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1dbffdf7cc7a497eadf1170706f30524e0f3f43b4890091c05ec4a50bc6c687c
MD5 864ffa1af1ebb3b8064777d1e1c0b78a
BLAKE2b-256 cb64ce4fc9fff24a859ec6d4a929bb1a9f91ba28709ecffb4d8d201fce775bcb

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.11-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.11-py3-none-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for revault_api-0.3.11-py3-none-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 a57704c323369f48d67066011d57d442ea5ffb51ff6ad4079d2cb4d8e8ceca80
MD5 71ce36a216aede22b9637fc52dcc58f4
BLAKE2b-256 18d33485b75e427b069e684c47166afe889295401884e3090ade92aea5a4ce58

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.11-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.11-py3-none-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for revault_api-0.3.11-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 8be55f2551e882f688a54347034812e412c94d7471ebaa549a8d5d1d743cc710
MD5 170579b7b973fe30a88a3af598306dc7
BLAKE2b-256 f7201d890b3118cf8952e1ec45806cdf786e1659ebfe6aefcb29a96661d8790a

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.11-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.11-py3-none-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for revault_api-0.3.11-py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 c58db9528915b0de9a544925978cdf4983d8f8b9d25fbda128276aa47dd7cd98
MD5 befadcd17190740e35a426548bc4fc47
BLAKE2b-256 bf9782d4709d862d56ac5da674fd42857b51e7e03d2fee31d4cfa092b7536b24

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.11-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.11-py3-none-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for revault_api-0.3.11-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 9c33bbcf119a5ebc0c38b093ff2af71a91b228f5663db424f79c3ebdf2e4b01e
MD5 8d9333e17a79793958097b24dadf147a
BLAKE2b-256 9dd04614370eeb79afba02ffa9397da293d415efc4ddfeaabafe591da45aa318

See more details on using hashes here.

Provenance

The following attestation bundles were made for revault_api-0.3.11-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

0.3.12

6 files

This release

0.3.11 This release

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