Skip to main content

money-legos for Python

Project description

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-money-legos-0.1.1.tar.gz (66.1 kB view hashes)

Uploaded Source

Built Distribution

py_money_legos-0.1.1-py3-none-any.whl (104.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page