EOSPYO — The Minimalist Python Library to Interact with EOSIO Blockchain Networks
EOSIO, serves as the backbone of EOS, Wax, Proton, and many other amazing DPOS blockchains. What’s not to love? Low carbon footprint, flexible governance (as evidenced by the many different chains), no transaction fees, variable resources models, supportive communities (Eden, Atomic), brilliant smart contracts, ricardian contracts and more.
Python, created by Guido van Rossum more than thirty years ago, has eclipsed all other programming languages as the world’s most popular programming language over the past decade. Python has adapted to many differing development paradigms. There are seemingly endless libraries and frameworks for it: everything from web frameworks to machine learning, and countless other commercial and academic interests.
Despite this, the options for connecting to an eosio chain with python are very limited. That is, until now. FACINGS, a EOS Detroit Venture Studio, introduces eospyo (pronounced ee-ohs-pie-oh so that it rhymes with eosio) for fast development of python applications that wish to connect to an eosio blockchain. Forked from ueosio by EOS Argentina and developed by FACINGS Developer Edson Bomfim, eospyo provides rapid and easy development access to eosio smart contracts.
For our first internal test, Edson handed over the library to EOS Detroit Smart Contract Developer Roger Taule on Wednesday afternoon, November 10, 2021. Roger had zero experience with python but has a rather deep background in C++ and writing smart contracts for both eosio and ethereum’s solidity. Within forty minutes, Roger was able to contribute the additional examples for voting, staking, token transfer, and ram purchasing. He used Edson’s examples and his own prior experience together with eospyo to successfully navigate the code.
This library is now available on github and through pip (and thus through poetry as well). Currently this is considered an unstable alpha so if you’re planning to use this in a production environment be sure to set a fixed version in your requirements management tool. Included in the github repo is a docker instance that will create a localized chain for testing and development if you prefer to not advertise your work on a public testnet.
eospyo has been released with the MIT license thus all contributors and forks are welcome. FACINGS and EOS Detroit will be continuing development and releases of this library as it’s being used for products in development right now.
Forthcoming articles featuring tutorials will be released so look for regular updates; bear in mind this is still alpha so updates may be breaking until we announce the transition to beta. In the interim please support our efforts at Pomelo.
Thank you to EOS Argentina for the initial code; Edson Bomfim for the development work and Roger Taule for proving the simplicity of this amazing tool.
FACINGS empowers creators and publishers by building tools they can use to manage NFT collections with ease and streamline the path to rich digital experiences for everyone. For media inquiries, please email ‘email@example.com’.