Metadata-Version: 2.1
Name: reduct-py
Version: 0.1.0
Summary: Reduct Storage Client SDK for Python
Home-page: https://github.com/reduct-storage/reduct-py
Author: Alexey Timin, Ciaran Moyne
Author-email: atimin@gmai.com
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: test
Provides-Extra: lint
Provides-Extra: format
Provides-Extra: docs
License-File: LICENSE

# Reduct Storage Client SDK for Python

Asynchronous HTTP client for [Reduct Storage](https://reduct-storage.dev) written in Python.

## Features

* Support Reduct Storage HTTP API v0.4
* Based on aiohttp

## Install

```
pip install reduct-py
```

## Example

```python
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

* [Documentation](https://reduct-py.rthd.io)
* [Reduct Storage HTTP API](https://docs.reduct-storage.dev/http-api)


