Reduct Storage Client SDK for Python
Project description
Reduct Storage Client SDK for Python
Asynchronous HTTP client for Reduct Storage written in Python.
Features
- Support Reduct Storage HTTP API v0.5
- Based on aiohttp
Install
pip install reduct-py
Example
import time
import asyncio
from reduct import Client, Bucket
async def main():
client = Client('https://play.reduct-storage.dev')
bucket: Bucket = await client.create_bucket("my-bucket", exist_ok=True)
ts = time.time_ns() / 1000
await bucket.write("entry-1", b"Hey!!", ts)
data = await bucket.read("entry-1", ts)
print(data)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reduct-py-0.2.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for reduct_py-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c15281f76d6159ddb447de647b5ef84cba90f5595d17a3698851b13747cc9876 |
|
MD5 | a1b3c9f68d274fc64fd1c051f171404a |
|
BLAKE2b-256 | 0c065656b168c6d9e6f1fe08d22d6dc8ec5f3a27b34f4811bb8f99a66a86269e |