21 best Python Smart contract libraries in 2022
by naveen.kumar@openweaver.com Updated: Mar 29, 2022
Guide Kit
A smart contract is a computer program that directly controls the transfer of digital currencies or assets between parties under certain conditions. Actions are triggered by an event, a message transmitted on the blockchain network, and results are guaranteed by the consensus of multiple nodes. Smart contracts can also be used to store information about an application, such as domain registration information or membership records. Smart contracts are used to execute transactions in a decentralized manner. This means that the validation of a transaction does not depend on a single party, but rather everyone involved in the transaction will validate it. A smart contract can be written in Solidity or any other language that compiles to EVM (Ethereum Virtual Machine) bytecode. The following is a list of the most popular open-source Python Smart contract libraries:
mythrilby ConsenSys
Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.
mythrilby ConsenSys
Python
3070
Version:v0.23.17
License: Permissive (MIT)
brownieby eth-brownie
A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.
brownieby eth-brownie
Python
2384
Version:v1.19.3
License: Permissive (MIT)
smart-contractsby TokenMarketNet
Ethereum smart contracts for security and utility tokens
smart-contractsby TokenMarketNet
Python
1305
Version:Current
License: Others (Non-SPDX)
uniswap-v1by Uniswap
🐍Uniswap V1 smart contracts
uniswap-v1by Uniswap
Python
361
Version:Current
License: Strong Copyleft (GPL-3.0)
yearn-vaultsby yearn
Yearn Vault smart contracts
yearn-vaultsby yearn
Python
470
Version:v0.4.6
License: Strong Copyleft (AGPL-3.0)
MAIANby ivicanikolicsg
MAIAN: automatic tool for finding trace vulnerabilities in Ethereum smart contracts
MAIANby ivicanikolicsg
Python
504
Version:Current
License: Permissive (MIT)
octopusby pventuzelo
Security Analysis tool for WebAssembly module (wasm) and Blockchain Smart Contracts (BTC/ETH/NEO/EOS)
octopusby pventuzelo
Python
277
Version:Current
License: Permissive (MIT)
awesome-buggy-erc20-tokensby sec-bit
A Collection of Vulnerabilities in ERC20 Smart Contracts With Tokens Affected
awesome-buggy-erc20-tokensby sec-bit
Python
269
Version:Current
License: Permissive (CC0-1.0)
eosfactoryby tokenika
Python-based EOS smart-contract development & testing framework
eosfactoryby tokenika
Python
247
Version:v3.4.0
License: Others (Non-SPDX)
scrooge-mcetherfaceby b-mueller
Attack tool that loots Ether from vulnerable smart contracts
scrooge-mcetherfaceby b-mueller
Python
86
Version:Current
License: Permissive (MIT)
vandalby usyd-blockchain
Static program analysis framework for Ethereum smart contract bytecode.
vandalby usyd-blockchain
Python
130
Version:Current
License: Permissive (BSD-3-Clause)
Roulethby Bunjin
Roulette Smart Contract on Ethereum Blockchain
Roulethby Bunjin
Python
74
Version:V1.2
License: Strong Copyleft (GPL-3.0)
python-smart-contract-workshopby CityOfZion
Workshop for programming smart contracts with Python
python-smart-contract-workshopby CityOfZion
Python
73
Version:Current
License: Permissive (MIT)
vertigoby JoranHonig
Mutation Testing for Ethereum Smart Contracts
vertigoby JoranHonig
Python
58
Version:Current
License: Weak Copyleft (LGPL-3.0)
contractingby Lamden
A subset of Python for developing smart contracts.
contractingby Lamden
Python
57
Version:Current
License: Others (Non-SPDX)
cobraby cobraframework
A fast, flexible and simple development environment framework for Ethereum smart contract, testing and deployment on EVM.
cobraby cobraframework
Python
42
Version:v0.1.1
License: Permissive (MIT)
smartbugsby smartbugs
SmartBugs: A Framework to Analyze Ethereum Smart Contracts
smartbugsby smartbugs
Python
364
Version:v2.0.7
License: Permissive (Apache-2.0)
raiden-contractsby raiden-network
Raiden Network Smart Contracts
raiden-contractsby raiden-network
Python
41
Version:v0.39.0
License: Permissive (MIT)