Skip to main content

Python client for ceramic streams.

Project description

Python client for ceramic

A simple Ceramic Network client written in Python.

This Ceramic client implements the payload building, encoding and signing needed to interact with the Ceramic Network.

Run the example

The example in this repository creates a new stream in a remote Ceramic node. This stream is initialized with the following data: {"hello": "world"}. It then retrieves the data, submits an update request to change that data to {"foo": "baz"} and retrieves the data again to prove that the update was successful.

Note: the Ceramic node used in this examples should be used for testing purposes only. All the data pinned to that node is wiped periodically.

  • Install pipenv.

  • Generate the virtual environment:

    make new_env
    
  • Run the example:

    python example.py
    

    You should see an output similar to the following:

    Created stream kjzl6cwe1jw147sv2ak3kksfgs14gc3jgjhu3mfnwn534l89joxi2tulv0ci14k
    Current data is {'hello': 'world'}
    Updated stream kjzl6cwe1jw147sv2ak3kksfgs14gc3jgjhu3mfnwn534l89joxi2tulv0ci14k
    Current data is {'foo': 'baz'}
    

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

ceramic-py-0.1.0.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

ceramic_py-0.1.0-py3-none-any.whl (10.7 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