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.3.0.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for reduct_py-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa3e33c38cb6cf33087b1f6ade76302f7f009ee1e6b26c5b760c4a0dab0017b |
|
MD5 | 81f9bd55c44392e4d9fdd31a18972c62 |
|
BLAKE2b-256 | 455a343c335088845620fb407995b8e352e3572a391ce266385f06c19fc8c6f3 |