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.0.9.tar.gz (65.8 kB view details)

Uploaded Source

Built Distribution

py_money_legos-0.0.9-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file py-money-legos-0.0.9.tar.gz.

File metadata

  • Download URL: py-money-legos-0.0.9.tar.gz
  • Upload date:
  • Size: 65.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0

File hashes

Hashes for py-money-legos-0.0.9.tar.gz
Algorithm Hash digest
SHA256 5dd937f0d7a79fb169f948c9fc98dd9588dfb9dcb6c8c66399fc0a555c3b0cdc
MD5 69ffcd747024cdb5d54d998c9a9f3a81
BLAKE2b-256 8a3aae3501f0d543d3960af246be465cffa87811345085bcd07441e5aa44516d

See more details on using hashes here.

File details

Details for the file py_money_legos-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: py_money_legos-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0

File hashes

Hashes for py_money_legos-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3b0ccde8d80431f3b3585ef76d8d78bc6d4a59bc6164ed15b64fd57d663c6304
MD5 5ce307092a86da41c125b1027ac69892
BLAKE2b-256 b4babe30c17a0c46715f02bcaf4dc455636bb0e1bf9ac748cce6d03903998f91

See more details on using hashes here.

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