Python Bindings v0.1.0
·
132 commits
to main
since this release
Python Bindings for redisctl
Initial release of Python bindings for Redis Cloud and Enterprise management APIs.
Installation
pip install redisctlFeatures
CloudClient (Redis Cloud API)
- Subscriptions (list, get)
- Databases (list, get)
- Raw API access (get, post, put, delete)
from_env()with flexible env var support
EnterpriseClient (Redis Enterprise API)
- Cluster info, stats, license
- Databases (list, get, stats)
- Nodes (list, get, stats)
- Users (list, get)
- Raw API access
from_env()constructor
Usage
from redisctl import CloudClient, EnterpriseClient
# Redis Cloud
cloud = CloudClient.from_env() # Uses REDIS_CLOUD_API_KEY, REDIS_CLOUD_API_SECRET
subs = cloud.subscriptions_sync()
# Redis Enterprise
enterprise = EnterpriseClient.from_env() # Uses REDIS_ENTERPRISE_* vars
dbs = enterprise.databases_sync()
# Async support
import asyncio
async def main():
subs = await cloud.subscriptions()
asyncio.run(main())Platforms
- Linux (x86_64, aarch64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Python 3.9+