Getting Started With Brownie (Part 3)
Getting Started With Brownie (Part 3)

Photo by André François McKenzie on Unsplash

Now that we’ve installed Brownie and created a project, it’s time to get acquainted with some of the core functionality.

If you haven’t yet, start by opening the console:

brownie console

Brownie will launch Ganache and create some objects to help you interact with your project. Once it’s ready, you are given a command prompt:

For the newcomers to Python, it’s time to level up! Let’s take a look at two very useful built-in functions:

dir displays a list of objects within the namespace or a list of members of an object. If using Python feels like visiting a foreign country to you, then think of dir as your roadmap.

help accepts any object as an argument and displays documentation for the object. Continuing with our previous analogy, if dir is your roadmap, then help is your guidebook.

With these two functions and a healthy dose of curiosity, you can pretty much figure out how to do anything without reaching for the documentation. (But please do open the Brownie documentation. I put a lot of work into it.)
['Ben Hauser']
['Solidity', 'Smart Contracts', 'Ethereum', 'Python', 'Programming']