Skip to main content

Reduct Storage Client SDK for Python

Project description

Reduct Storage Client SDK for Python

GitHub release (latest SemVer) PyPI - Downloads GitHub Workflow Status

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


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)

Uploaded Source

Built Distribution

reduct_py-0.3.0-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page