An Interest In:
Web News this Week
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
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
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To