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.4
- 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")
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.1.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for reduct_py-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 492e91d57e8547770833a66815cb446fb747d3959d25115bfae65343e0373ac1 |
|
MD5 | b591acdb869f8ece0f81e8033dd4044c |
|
BLAKE2b-256 | 8af5f2ad5aad31bd7c18f1f2777e2bcd94ef705dcf929bf330fe271923d25712 |