A zero-knowledge, end-to-end encrypted secret management SDK for Python.
Project description
Redenv Python SDK
The official Python client for Redenv, a zero-knowledge, end-to-end encrypted secret management system.
Installation
pip install redenv
Usage
import asyncio
import os
from redenv import Redenv
async def main():
# Initialize the client
client = Redenv({
"project": "your-project-id",
"token_id": "your-token-id",
"token": "your-token",
"upstash": {
"url": "your-upstash-redis-url",
"token": "your-upstash-redis-token"
},
# Optional
"environment": "development", # defaults to development
"cache": {
"ttl": 300, # 5 minutes
"swr": 86400 # 24 hours
}
})
# Fetch and decrypt secrets.
# This automatically injects them into os.environ
secrets = await client.load()
print(f"Loaded {len(secrets)} secrets.")
print(f"DATABASE_URL: {os.environ.get('DATABASE_URL')}")
if __name__ == "__main__":
asyncio.run(main())
Features
- End-to-End Encryption: Secrets are decrypted only in memory using
AES-256-GCMandPBKDF2. - Zero Knowledge: The backend (Redis) only stores encrypted data.
- Caching: Implements Stale-While-Revalidate caching to minimize latency and database calls.
- Universal Support: Works with standard Python
asyncio.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redenv-0.1.0.tar.gz
(8.0 kB
view details)
Built Distribution
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 redenv-0.1.0.tar.gz.
File metadata
- Download URL: redenv-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eca1b7b630e0cf2516d7dd92a45c676ffe2c2e6be5a2be28130b0f26fc0fc342
|
|
| MD5 |
e47d3e54a3d5b1d88bd0762baa5d191b
|
|
| BLAKE2b-256 |
82fb704d78def561f1ac59ba7001bd8c145776bb5cc1bc8e73a702a8b564d29f
|
File details
Details for the file redenv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: redenv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5604392ae0d2cae52d9d22dfe6c48900d4fa68854998c3d7b3dfe5474c8db07f
|
|
| MD5 |
1f6d032f609df926a1ab991c3bcc7c9e
|
|
| BLAKE2b-256 |
b4d73b202b3bc1a29bbb4521c55a5168527f9f314152b3445e08b79d51699989
|