Skip to main content

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'}
    

Metadata

Release files for ceramic-py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ceramic-py 0.1.0
File Size Uploaded
ceramic-py-0.1.0.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ceramic-py 0.1.0
File Interpreter ABI Platform
ceramic_py-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.3 kB

Release files / ceramic-py-0.1.0.tar.gz

Download URL ceramic-py-0.1.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
61228f883503f01130671647b3810442868983b59afc1900fd89c0d616fe3468
BLAKE2b-256 checksum
How to use checksums
e603a10bdfe133ae037fd8459db0d537131a7de00567d02459a32a7b7a1f3270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release files / ceramic_py-0.1.0-py3-none-any.whl

Download URL ceramic_py-0.1.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82c72a35da73b1ada5ff135d49ec470cea08d377cc5524e13714324acdf33f05
BLAKE2b-256 checksum
How to use checksums
4b4e117eaaa134474364a08b29972ac86b7877c7c9c70f486a7ddd05f5c638de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page