Skip to main content

Python Wrapper for DefiLlama endpoints

Project description

pydefillama: a DefiLlama Python client

BUILD PyPi

An unofficial DeFiLlama wrapper built for data science workflows.

For detailed instructions on the endpoints, refer to the API docs

Installation

pip install pydefillama

Usage

import pydefillama as llama

# fetch all protocols
protocols = llama.fetch_all_protocols()

# fetch TVL for a protocol 
llama.fetch_protocol_tvl(protocols[0]["slug"])

# fetch all chains 
chains = llama.fetch_all_chains()

# fetch TVL for a chain
llama.fetch_chain_tvl(chains["name"])

Full list of supported functions here.

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

pydefillama-1.0.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

pydefillama-1.0.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pydefillama-1.0.3.tar.gz.

File metadata

  • Download URL: pydefillama-1.0.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pydefillama-1.0.3.tar.gz
Algorithm Hash digest
SHA256 cf8e3c3a974d8adbcbfe22dd6085463a212f8a07b44ac5797a39876f3ee7e41f
MD5 f80cc58c52653cf98bf810de252ea1f7
BLAKE2b-256 d17f63ad55951eb9c5e02c53f4e85119fae53c236d04524bec3609e118b7e711

See more details on using hashes here.

File details

Details for the file pydefillama-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pydefillama-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pydefillama-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 20695c0ee73dcf9a4ddddfa2b5ce3d907e1b9ca1749cd869739eed665fb037be
MD5 14df23a83c0573e627532d975b8c3b29
BLAKE2b-256 008796e91a7c1bff3e1280a50a0fa8de819162eb71456837fd5718ccb2a97840

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