description Brownie (Python/Ethereum) Overview
Brownie is a Python-based development framework for Ethereum smart contracts. It provides tools for compiling contracts, running automated tests, managing local and forked blockchain environments, interacting with deployed contracts, and writing deployment scripts. Brownie is intended for developers who prefer Python for testing and scripting decentralized applications built with Solidity or Vyper.
help Brownie (Python/Ethereum) FAQ
Which languages and blockchains does Brownie support?
Brownie is a Python framework for Ethereum Virtual Machine smart contracts and supports both Solidity and Vyper. It is aimed at compiling, testing, deploying, and interacting with contracts rather than serving ordinary web pages. [Brownie documentation](https://eth-brownie.readthedocs.io/en/v1.6.5/index.html)
What testing tools does Brownie use for Ethereum contracts?
Brownie uses pytest-style contract tests and supports property-based and stateful testing through Hypothesis. Its documentation also highlights trace-based coverage and Python-style debugging for failed transactions.
Can Brownie test contracts locally and connect to Ethereum networks?
Yes, Brownie separates local development networks from live networks such as Ethereum mainnet and testnets. Its development setup uses Ganache for a local RPC environment, while live network entries can be configured for persistent chains.
What files does a new Brownie project contain?
A typical project has `contracts/` for Solidity or Vyper sources, `scripts/` for deployment and interaction, `tests/` for pytest tests, and `brownie-config.yaml` for configuration. The `brownie compile` command creates build artifacts from the contract sources.
explore Explore More
Reviews & Comments
Write a Review
Be the first to review
Share your thoughts with the community and help others make better decisions.