Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 22, 2022 02:10 pm GMT

Reduct Storage Python Client Release v1.0.0

Hello dev.to,

This post is an announcement for the release of v1.0.0 of our Python client for Reduct Storage.

The client has ben updated for compatibility with v1.0.0 of the storage engine's API, which is described here.

The released package and release notes can be found on Github or to use it right away you can:

pip install reduct-py

This version drops the bucket.read_by method in favour of bucket.query and a newly improved bucket.read method.

bucket.read now returns an asynchronous context, within which data can be loaded from the storage at the desired point with the Record.read() or Record.read_all() methods:

async with bucket.read("entry-1", timestamp=1_000_000) as record:  data = await record.read_all()  print(data)

The perviously deprecated bucket.list() method has also been removed, it's functionality having been replaced by bucket.query():

records: List[Record] = [        record        async for record in bucket.query("entry-1", start=0, stop=5_000_000)    ]

Think that's all for this post!

May your data storage be robust


Original Link: https://dev.to/reduct-storage/reduct-storage-python-client-release-v100-4062

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To