technology logo
technology logo

21 best Python Smart contract libraries in 2022

share link

by naveen.kumar@openweaver.com dot icon Updated: Mar 29, 2022

Guide Kit 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:

vyperby vyperlang

Python doticonstar image 4460 doticonVersion:v0.3.7doticon
License: Others (Non-SPDX)

Pythonic Smart Contract Language for the EVM

Support
    Quality
      Security
        License
          Reuse

            vyperby vyperlang

            Python doticon star image 4460 doticonVersion:v0.3.7doticon License: Others (Non-SPDX)

            Pythonic Smart Contract Language for the EVM
            Support
              Quality
                Security
                  License
                    Reuse

                      mythrilby ConsenSys

                      Python doticonstar image 3070 doticonVersion:v0.23.17doticon
                      License: Permissive (MIT)

                      Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                mythrilby ConsenSys

                                Python doticon star image 3070 doticonVersion:v0.23.17doticon License: Permissive (MIT)

                                Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          brownieby eth-brownie

                                          Python doticonstar image 2384 doticonVersion:v1.19.3doticon
                                          License: Permissive (MIT)

                                          A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    brownieby eth-brownie

                                                    Python doticon star image 2384 doticonVersion:v1.19.3doticon License: Permissive (MIT)

                                                    A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              smart-contractsby TokenMarketNet

                                                              Python doticonstar image 1305 doticonVersion:Currentdoticon
                                                              License: Others (Non-SPDX)

                                                              Ethereum smart contracts for security and utility tokens

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        smart-contractsby TokenMarketNet

                                                                        Python doticon star image 1305 doticonVersion:Currentdoticon License: Others (Non-SPDX)

                                                                        Ethereum smart contracts for security and utility tokens
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  uniswap-v1by Uniswap

                                                                                  Python doticonstar image 361 doticonVersion:Currentdoticon
                                                                                  License: Strong Copyleft (GPL-3.0)

                                                                                  🐍Uniswap V1 smart contracts

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            uniswap-v1by Uniswap

                                                                                            Python doticon star image 361 doticonVersion:Currentdoticon License: Strong Copyleft (GPL-3.0)

                                                                                            🐍Uniswap V1 smart contracts
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      yearn-vaultsby yearn

                                                                                                      Python doticonstar image 470 doticonVersion:v0.4.6doticon
                                                                                                      License: Strong Copyleft (AGPL-3.0)

                                                                                                      Yearn Vault smart contracts

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                yearn-vaultsby yearn

                                                                                                                Python doticon star image 470 doticonVersion:v0.4.6doticon License: Strong Copyleft (AGPL-3.0)

                                                                                                                Yearn Vault smart contracts
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          MAIANby ivicanikolicsg

                                                                                                                          Python doticonstar image 504 doticonVersion:Currentdoticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          MAIAN: automatic tool for finding trace vulnerabilities in Ethereum smart contracts

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    MAIANby ivicanikolicsg

                                                                                                                                    Python doticon star image 504 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                    MAIAN: automatic tool for finding trace vulnerabilities in Ethereum smart contracts
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              octopusby pventuzelo

                                                                                                                                              Python doticonstar image 277 doticonVersion:Currentdoticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              Security Analysis tool for WebAssembly module (wasm) and Blockchain Smart Contracts (BTC/ETH/NEO/EOS)

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        octopusby pventuzelo

                                                                                                                                                        Python doticon star image 277 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                        Security Analysis tool for WebAssembly module (wasm) and Blockchain Smart Contracts (BTC/ETH/NEO/EOS)
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse
                                                                                                                                                                  Python doticonstar image 269 doticonVersion:Currentdoticon
                                                                                                                                                                  License: Permissive (CC0-1.0)

                                                                                                                                                                  A Collection of Vulnerabilities in ERC20 Smart Contracts With Tokens Affected

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            awesome-buggy-erc20-tokensby sec-bit

                                                                                                                                                                            Python doticon star image 269 doticonVersion:Currentdoticon License: Permissive (CC0-1.0)

                                                                                                                                                                            A Collection of Vulnerabilities in ERC20 Smart Contracts With Tokens Affected
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      eosfactoryby tokenika

                                                                                                                                                                                      Python doticonstar image 247 doticonVersion:v3.4.0doticon
                                                                                                                                                                                      License: Others (Non-SPDX)

                                                                                                                                                                                      Python-based EOS smart-contract development & testing framework

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                eosfactoryby tokenika

                                                                                                                                                                                                Python doticon star image 247 doticonVersion:v3.4.0doticon License: Others (Non-SPDX)

                                                                                                                                                                                                Python-based EOS smart-contract development & testing framework
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          pytealby algorand

                                                                                                                                                                                                          Python doticonstar image 256 doticonVersion:v0.23.0doticon
                                                                                                                                                                                                          License: Permissive (MIT)

                                                                                                                                                                                                          Algorand Smart Contracts in Python

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    pytealby algorand

                                                                                                                                                                                                                    Python doticon star image 256 doticonVersion:v0.23.0doticon License: Permissive (MIT)

                                                                                                                                                                                                                    Algorand Smart Contracts in Python
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse
                                                                                                                                                                                                                              Python doticonstar image 86 doticonVersion:Currentdoticon
                                                                                                                                                                                                                              License: Permissive (MIT)

                                                                                                                                                                                                                              Attack tool that loots Ether from vulnerable smart contracts

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        scrooge-mcetherfaceby b-mueller

                                                                                                                                                                                                                                        Python doticon star image 86 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                                                        Attack tool that loots Ether from vulnerable smart contracts
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                  vandalby usyd-blockchain

                                                                                                                                                                                                                                                  Python doticonstar image 130 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                  License: Permissive (BSD-3-Clause)

                                                                                                                                                                                                                                                  Static program analysis framework for Ethereum smart contract bytecode.

                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                            vandalby usyd-blockchain

                                                                                                                                                                                                                                                            Python doticon star image 130 doticonVersion:Currentdoticon License: Permissive (BSD-3-Clause)

                                                                                                                                                                                                                                                            Static program analysis framework for Ethereum smart contract bytecode.
                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                      Roulethby Bunjin

                                                                                                                                                                                                                                                                      Python doticonstar image 74 doticonVersion:V1.2doticon
                                                                                                                                                                                                                                                                      License: Strong Copyleft (GPL-3.0)

                                                                                                                                                                                                                                                                      Roulette Smart Contract on Ethereum Blockchain

                                                                                                                                                                                                                                                                      Support
                                                                                                                                                                                                                                                                        Quality
                                                                                                                                                                                                                                                                          Security
                                                                                                                                                                                                                                                                            License
                                                                                                                                                                                                                                                                              Reuse

                                                                                                                                                                                                                                                                                Roulethby Bunjin

                                                                                                                                                                                                                                                                                Python doticon star image 74 doticonVersion:V1.2doticon License: Strong Copyleft (GPL-3.0)

                                                                                                                                                                                                                                                                                Roulette Smart Contract on Ethereum Blockchain
                                                                                                                                                                                                                                                                                Support
                                                                                                                                                                                                                                                                                  Quality
                                                                                                                                                                                                                                                                                    Security
                                                                                                                                                                                                                                                                                      License
                                                                                                                                                                                                                                                                                        Reuse
                                                                                                                                                                                                                                                                                          Python doticonstar image 73 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                                          License: Permissive (MIT)

                                                                                                                                                                                                                                                                                          Workshop for programming smart contracts with Python

                                                                                                                                                                                                                                                                                          Support
                                                                                                                                                                                                                                                                                            Quality
                                                                                                                                                                                                                                                                                              Security
                                                                                                                                                                                                                                                                                                License
                                                                                                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                                                                                                    python-smart-contract-workshopby CityOfZion

                                                                                                                                                                                                                                                                                                    Python doticon star image 73 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                    Workshop for programming smart contracts with Python
                                                                                                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                                                                                                          License
                                                                                                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                                                                                                              eraysby teamnsrg

                                                                                                                                                                                                                                                                                                              Python doticonstar image 67 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                                                              License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                              Ethereum smart contract reverse engineering

                                                                                                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                                                                                                        eraysby teamnsrg

                                                                                                                                                                                                                                                                                                                        Python doticon star image 67 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                                        Ethereum smart contract reverse engineering
                                                                                                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                                                                                                  vertigoby JoranHonig

                                                                                                                                                                                                                                                                                                                                  Python doticonstar image 58 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                                                                                  License: Weak Copyleft (LGPL-3.0)

                                                                                                                                                                                                                                                                                                                                  Mutation Testing for Ethereum Smart Contracts

                                                                                                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                                                                                                            vertigoby JoranHonig

                                                                                                                                                                                                                                                                                                                                            Python doticon star image 58 doticonVersion:Currentdoticon License: Weak Copyleft (LGPL-3.0)

                                                                                                                                                                                                                                                                                                                                            Mutation Testing for Ethereum Smart Contracts
                                                                                                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                                                                                                      contractingby Lamden

                                                                                                                                                                                                                                                                                                                                                      Python doticonstar image 57 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                                                                                                      License: Others (Non-SPDX)

                                                                                                                                                                                                                                                                                                                                                      A subset of Python for developing smart contracts.

                                                                                                                                                                                                                                                                                                                                                      Support
                                                                                                                                                                                                                                                                                                                                                        Quality
                                                                                                                                                                                                                                                                                                                                                          Security
                                                                                                                                                                                                                                                                                                                                                            License
                                                                                                                                                                                                                                                                                                                                                              Reuse

                                                                                                                                                                                                                                                                                                                                                                contractingby Lamden

                                                                                                                                                                                                                                                                                                                                                                Python doticon star image 57 doticonVersion:Currentdoticon License: Others (Non-SPDX)

                                                                                                                                                                                                                                                                                                                                                                A subset of Python for developing smart contracts.
                                                                                                                                                                                                                                                                                                                                                                Support
                                                                                                                                                                                                                                                                                                                                                                  Quality
                                                                                                                                                                                                                                                                                                                                                                    Security
                                                                                                                                                                                                                                                                                                                                                                      License
                                                                                                                                                                                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                                                                                                                                                                                          cobraby cobraframework

                                                                                                                                                                                                                                                                                                                                                                          Python doticonstar image 42 doticonVersion:v0.1.1doticon
                                                                                                                                                                                                                                                                                                                                                                          License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                                                                                          A fast, flexible and simple development environment framework for Ethereum smart contract, testing and deployment on EVM.

                                                                                                                                                                                                                                                                                                                                                                          Support
                                                                                                                                                                                                                                                                                                                                                                            Quality
                                                                                                                                                                                                                                                                                                                                                                              Security
                                                                                                                                                                                                                                                                                                                                                                                License
                                                                                                                                                                                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                                                                                                                                                                                    cobraby cobraframework

                                                                                                                                                                                                                                                                                                                                                                                    Python doticon star image 42 doticonVersion:v0.1.1doticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                                                                                                    A fast, flexible and simple development environment framework for Ethereum smart contract, testing and deployment on EVM.
                                                                                                                                                                                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                                                                                                                                                                                          License
                                                                                                                                                                                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                                                                                                                                                                                              smartbugsby smartbugs

                                                                                                                                                                                                                                                                                                                                                                                              Python doticonstar image 364 doticonVersion:v2.0.7doticon
                                                                                                                                                                                                                                                                                                                                                                                              License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                                                                                                                                                              SmartBugs: A Framework to Analyze Ethereum Smart Contracts

                                                                                                                                                                                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                                                                                                                                                                                        smartbugsby smartbugs

                                                                                                                                                                                                                                                                                                                                                                                                        Python doticon star image 364 doticonVersion:v2.0.7doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                                                                                                                                                                        SmartBugs: A Framework to Analyze Ethereum Smart Contracts
                                                                                                                                                                                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                                                                                                                                                                                  raiden-contractsby raiden-network

                                                                                                                                                                                                                                                                                                                                                                                                                  Python doticonstar image 41 doticonVersion:v0.39.0doticon
                                                                                                                                                                                                                                                                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                                                                                                                                  Raiden Network Smart Contracts

                                                                                                                                                                                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                                                                                                                                                                                            raiden-contractsby raiden-network

                                                                                                                                                                                                                                                                                                                                                                                                                            Python doticon star image 41 doticonVersion:v0.39.0doticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                                                                                                                                                            Raiden Network Smart Contracts
                                                                                                                                                                                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                                                                                                                                                                                      See similar Kits and Libraries