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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ceramic-py-0.1.0.tar.gz
.
File metadata
- Download URL: ceramic-py-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61228f883503f01130671647b3810442868983b59afc1900fd89c0d616fe3468 |
|
MD5 | 06db2639cac309d15f778b9f093368c8 |
|
BLAKE2b-256 | e603a10bdfe133ae037fd8459db0d537131a7de00567d02459a32a7b7a1f3270 |
File details
Details for the file ceramic_py-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ceramic_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c72a35da73b1ada5ff135d49ec470cea08d377cc5524e13714324acdf33f05 |
|
MD5 | 1edaee1c54df148bea6a678c689701ab |
|
BLAKE2b-256 | 4b4e117eaaa134474364a08b29972ac86b7877c7c9c70f486a7ddd05f5c638de |