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",
…