DEV Community

Petros Demetrakopoulos
Petros Demetrakopoulos

Posted on

EthairBalloons is now available for Python!

Yes!
It is finally there.
The much-loved ORM library for the Ethereum Blockchain is now available for Python.

What is EthAir Balloons ?

EthAir Balloons is a strictly typed ORM library for Ethereum blockchain. It allows you to use Ethereum blockchain as a persistent storage in an organized and model-oriented way without writing custom complex Smart contracts.

Until now, EthairBalloons was only available for JavaScript and you could install it via npm (npm install --save ethairballoons)

However, from now on there is an official Python version too.
you can check it out on this GitHub repository and install it via pip install ethairballoons

GitHub logo petrosDemetrakopoulos / ethairballoons.py

A strictly typed ORM library for Ethereum blockchain.

EthAir Balloons

A strictly typed ORM library for Ethereum blockchain It allows you to use Ethereum blockchain as a persistent storage in an organized and model-oriented way without writing custom complex Smart contracts.

Note As transaction fees may be huge, it is strongly advised to only deploy EthAir Balloons models in private Ethereum blockchains or locally using ganache

Installation

pip install ethairballoons

Setup

from ethairballoons import ethairBalloons
# frist parameter is the IP of the Ethereum network we want to store data
# seconda parameter is the path to save to smart contract
provider = ethairBalloons('127.0.0.1', '../')

mySchema = provider.createSchema(modelDefinition={
    'name': "Car",
    'contractName': "carsContract",
    'properties': [{
            'name': "model",
            'type': "bytes32",
            'primaryKey': True
    },
        {
            'name': "engine",
            'type': "bytes32",
    },
        {
            'name': "cylinders",
            
Enter fullscreen mode Exit fullscreen mode

.

Top comments (0)