Install
#Neither SDK is published to PyPI or as a Go module yet. Download them from ozvault.lol/sdks. Python 3.9+ needs the cryptography and httpx packages; the Go SDK needs Go 1.24+ and nothing outside the standard library.
pip install ./ozvault-sdk-pythongo mod edit -replace github.com/ozvault/ozvault-go=./ozvault-sdk-go
go get github.com/ozvault/ozvault-goUpload and download
#Both default to the public API at https://api.ozvault.lol and read your API key and vault key from wherever you keep secrets.
from ozvault import OzVault
with OzVault(api_key=os.environ['OZVAULT_API_KEY']) as vault:
obj = vault.upload(bucket_id, 'report.pdf', 'reports/report.pdf', vault_key)
data = vault.download(obj['id'], vault_key)c := ozvault.New(os.Getenv("OZVAULT_API_KEY"))
obj, err := c.UploadFile(ctx, bucketID, "report.pdf", "reports/report.pdf", vaultKey, nil)
data, err := c.Download(ctx, obj.ID, vaultKey)One format everywhere
#All SDKs implement encryption format v1 and are tested against the same vectors generated by the JavaScript SDK. A file uploaded from Python can be downloaded in Go, the CLI or the dashboard, and share links work across all of them.
Clear documentation is part of the product.