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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81848af6cba512dcdf5748277067e49ad096e7ea9ea4497c54c445df61cfc542
|
|
| MD5 |
70f7181b32b85a7cba224d96a3e730e0
|
|
| BLAKE2b-256 |
0b0416af8330934ffddc43ebc108b392acf9008235fd281dd83afe73eafe24c6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revault_api-0.3.12-py3-none-win_arm64.whl -
Subject digest:
81848af6cba512dcdf5748277067e49ad096e7ea9ea4497c54c445df61cfc542 - Sigstore transparency entry: 2594745377
- Sigstore integration time:
-
Permalink:
onepub-dev/reVault@0993abdf73809978ccf102f97e946cfda3668951 -
Branch / Tag:
refs/tags/revault-api-v0.3.12 - Owner: https://github.com/onepub-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bindings-native-release.yml@0993abdf73809978ccf102f97e946cfda3668951 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b436ef80af38b4b3cde067d44d4c6702e74fad08c1bd0f0772e68f1ec4e87c6a
|
|
| MD5 |
f7f344123229be29dc669669b656a050
|
|
| BLAKE2b-256 |
b46ba1e2a1951f4b54d9cad959fad7f5145a8c21668a58458f2e94473cd71128
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revault_api-0.3.12-py3-none-win_amd64.whl -
Subject digest:
b436ef80af38b4b3cde067d44d4c6702e74fad08c1bd0f0772e68f1ec4e87c6a - Sigstore transparency entry: 2594745345
- Sigstore integration time:
-
Permalink:
onepub-dev/reVault@0993abdf73809978ccf102f97e946cfda3668951 -
Branch / Tag:
refs/tags/revault-api-v0.3.12 - Owner: https://github.com/onepub-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bindings-native-release.yml@0993abdf73809978ccf102f97e946cfda3668951 -
Trigger Event:
push
-
Statement type:
File details
Details for the file revault_api-0.3.12-py3-none-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: revault_api-0.3.12-py3-none-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 5.4 MB
- Tags: Python 3, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9fee754ac840960c63befe6ada1f922ba29d9bbbb67729621b2265c92eaffab
|
|
| MD5 |
648105c0e85df246e13953303fcccfb5
|
|
| BLAKE2b-256 |
dcc12f84d98898f262f4757bd976b5c4e6432611e532f0f4145065e1df7e7990
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revault_api-0.3.12-py3-none-manylinux_2_39_x86_64.whl -
Subject digest:
d9fee754ac840960c63befe6ada1f922ba29d9bbbb67729621b2265c92eaffab - Sigstore transparency entry: 2594745403
- Sigstore integration time:
-
Permalink:
onepub-dev/reVault@0993abdf73809978ccf102f97e946cfda3668951 -
Branch / Tag:
refs/tags/revault-api-v0.3.12 - Owner: https://github.com/onepub-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bindings-native-release.yml@0993abdf73809978ccf102f97e946cfda3668951 -
Trigger Event:
push
-
Statement type:
File details
Details for the file revault_api-0.3.12-py3-none-manylinux_2_39_aarch64.whl.
File metadata
- Download URL: revault_api-0.3.12-py3-none-manylinux_2_39_aarch64.whl
- Upload date:
- Size: 5.2 MB
- Tags: Python 3, manylinux: glibc 2.39+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc3dc5034f5625e22690415c152ccdd487e01ae98277575ee5b5647bc4a27fb1
|
|
| MD5 |
90bf53dec9f2635e21f5b5a78a08383e
|
|
| BLAKE2b-256 |
59cb67743eff8a5a84b950b900405a4b809eb81d4bb703daeeeb704e960074f2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revault_api-0.3.12-py3-none-manylinux_2_39_aarch64.whl -
Subject digest:
fc3dc5034f5625e22690415c152ccdd487e01ae98277575ee5b5647bc4a27fb1 - Sigstore transparency entry: 2594745438
- Sigstore integration time:
-
Permalink:
onepub-dev/reVault@0993abdf73809978ccf102f97e946cfda3668951 -
Branch / Tag:
refs/tags/revault-api-v0.3.12 - Owner: https://github.com/onepub-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bindings-native-release.yml@0993abdf73809978ccf102f97e946cfda3668951 -
Trigger Event:
push
-
Statement type:
File details
Details for the file revault_api-0.3.12-py3-none-macosx_11_0_universal2.whl.
File metadata
- Download URL: revault_api-0.3.12-py3-none-macosx_11_0_universal2.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b390ee5d50fec0e4f401c499ece744e870b95f39e64167e661c097ec168cdf4
|
|
| MD5 |
b8e5bd7b87bc88ecb28b33b712d51c2f
|
|
| BLAKE2b-256 |
083883b807a71b3d4026b67616ba636d134cbc993b594fa5b85b7a1968e66f4f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revault_api-0.3.12-py3-none-macosx_11_0_universal2.whl -
Subject digest:
4b390ee5d50fec0e4f401c499ece744e870b95f39e64167e661c097ec168cdf4 - Sigstore transparency entry: 2594745421
- Sigstore integration time:
-
Permalink:
onepub-dev/reVault@0993abdf73809978ccf102f97e946cfda3668951 -
Branch / Tag:
refs/tags/revault-api-v0.3.12 - Owner: https://github.com/onepub-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bindings-native-release.yml@0993abdf73809978ccf102f97e946cfda3668951 -
Trigger Event:
push
-
Statement type:
File details
Details for the file revault_api-0.3.12-py3-none-macosx_10_13_universal2.whl.
File metadata
- Download URL: revault_api-0.3.12-py3-none-macosx_10_13_universal2.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9be5f4d674196b5964d377e68cabf2f87ca5b88e78f5dcaaec73bcdc08bb97d
|
|
| MD5 |
24eb2f8ecf9531e99e44b3b16fbe655e
|
|
| BLAKE2b-256 |
24a0cc3a92af46a8796ee111bf2a6b9535129e2b9c6ed77c3a3ca3b1eaedb70e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revault_api-0.3.12-py3-none-macosx_10_13_universal2.whl -
Subject digest:
f9be5f4d674196b5964d377e68cabf2f87ca5b88e78f5dcaaec73bcdc08bb97d - Sigstore transparency entry: 2594745364
- Sigstore integration time:
-
Permalink:
onepub-dev/reVault@0993abdf73809978ccf102f97e946cfda3668951 -
Branch / Tag:
refs/tags/revault-api-v0.3.12 - Owner: https://github.com/onepub-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bindings-native-release.yml@0993abdf73809978ccf102f97e946cfda3668951 -
Trigger Event:
push
-
Statement type: