Metadata-Version: 2.4
Name: py-money-legos
Version: 0.1.1
Summary: money-legos for Python
Home-page: https://github.com/gokhanbaydar/py-money-legos
Author: Gokhan Baydar
Author-email: gokhanbaydar@yahoo.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

# py-money-legos

`money-legos` is an NPM package that provides you with the **mainnet addresses**, **ABIs**, and **Solidity interfaces** for popular DeFi protocols.

`py-money-legos` is its Python version

## Install
```bash
pip install py-money-legos
```

## Usage

Please check the main javascript repo for more on how to use: https://github.com/studydefi/money-legos

Docs of javascript version: https://money-legos.studydefi.com/
Discord for javascript version: https://discord.gg/rBr3U32

test.py includes a sample to get MKR price from UNISWAP using the Web3, you will need to pip install web3 for this to work, it is commented to remove dependency with this library.

## Sample Import
```bash
from money_legos.uniswap.contracts import contracts
factory_abi = contracts["factory"]["abi"]
exch_abi = contracts["exchange"]["abi"]
```

## Help

Feel free to contribute or contact me for any help or comments
