Skip to content

Mugen-Builders/libcma-binding-python

Repository files navigation



Cartesi Rollups LIBCMA Binding for PYTHON

license last-commit

Overview

This repository contains the Python bindings for the Cartesi machine guest library (libcma). The bindings expose libcma’s C API (parser, and ledger) for utilization in python applications as an object. The library is written in cython and it should be compiled for the system. This would serve as an alternative to the HttpServer and offer methods to manage a Cartesi application instance.

The repo includes:

  • Library: pycma — the main cython library definition.
  • Sample apps: wallet_app
  • Tests: /tests Utilizes cartesapp to test the sample application which uses the libcma-python-bindings.

Requirements

  • Docker — for building the RISC-V image and running the Cartesi machine.
  • Python 3.12+ — for the test suite (cartesapp).

Usage

Add the binding to your Cartesi project

You can use pip to install:

pip3 install pycma --find-links https://prototyp3-dev.github.io/pip-wheels-riscv/wheels/

Note: the wheels are already compiled at https://prototyp3-dev.github.io/pip-wheels-riscv/wheels/. Alternatively you can install directly from the repo:

pip3 install pycma@git+https://github.com/Mugen-Builders/libcma-binding-python

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors