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.8
- 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for reduct_py-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8916b9319f0559f71284245d08b2f4b5b547edf5efc5328e82f8d3938984a98a |
|
MD5 | b2ace34178d7f9a4bd7c69fcb32de1ea |
|
BLAKE2b-256 | de076351c63120f1636d9588fbb56377dd975eb878b46c4ccb3e4076f93f5b69 |