Skip to main content

Implementation of the Encoding for Robust Immutable Storage (ERIS) encoding

Project description

python-eris

This is a Python implementation of the Encoding for Robust Immutable Storage (ERIS).

Usage

import eris
import asyncio

async def main():

    # create a store
    store = eris.DictStore()

    # encode content
    encoder = eris.Encoder(eris.null_convergence_secret(), store, block_size = 1024)
    await encoder.write(b'Hello world!')
    read_capability = await encoder.close()

    # decode content
    decoder = eris.Decoder(store, read_capability)
    decoded = await decoder.readall()

    print(decoded)

asyncio.run(main())

See also the online documentation and the examples.

Development

Running Tests

python -m unittest tests/*.py

Building Documentation

make -C docs html

Publishing to PyPi

python -m build
python3 -m twine upload --repository pypi dist/*

License

AGPL-3.0-or-later

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

eris-1.0.0.tar.gz (20.8 kB view hashes)

Uploaded Source

Built Distribution

eris-1.0.0-py3-none-any.whl (22.4 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