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 re…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by aschenbecherwespe

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 🫡


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by aschenbecherwespe


Print Share Comment Cite Upload Translate Updates
APA

aschenbecherwespe | Sciencx (2022-10-22T14:10:13+00:00) Reduct Storage Python Client Release v1.0.0. Retrieved from https://www.scien.cx/2022/10/22/reduct-storage-python-client-release-v1-0-0/

MLA
" » Reduct Storage Python Client Release v1.0.0." aschenbecherwespe | Sciencx - Saturday October 22, 2022, https://www.scien.cx/2022/10/22/reduct-storage-python-client-release-v1-0-0/
HARVARD
aschenbecherwespe | Sciencx Saturday October 22, 2022 » Reduct Storage Python Client Release v1.0.0., viewed ,<https://www.scien.cx/2022/10/22/reduct-storage-python-client-release-v1-0-0/>
VANCOUVER
aschenbecherwespe | Sciencx - » Reduct Storage Python Client Release v1.0.0. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/10/22/reduct-storage-python-client-release-v1-0-0/
CHICAGO
" » Reduct Storage Python Client Release v1.0.0." aschenbecherwespe | Sciencx - Accessed . https://www.scien.cx/2022/10/22/reduct-storage-python-client-release-v1-0-0/
IEEE
" » Reduct Storage Python Client Release v1.0.0." aschenbecherwespe | Sciencx [Online]. Available: https://www.scien.cx/2022/10/22/reduct-storage-python-client-release-v1-0-0/. [Accessed: ]
rf:citation
» Reduct Storage Python Client Release v1.0.0 | aschenbecherwespe | Sciencx | https://www.scien.cx/2022/10/22/reduct-storage-python-client-release-v1-0-0/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.