# defillamaAPI
API Collection of DefiLlama (https://defillama.com/docs/api)
Splitted the endpoints categories on defillama's 'docs as a seperate class, so that user can import only required category endpoints.
### Installation:
use pip to install:
```
pip install defillamaAPI
```
### Example usage:
```
from defillamaAPI import TVL, Stablecoins
# initialize TVL api client
defillama_tvl = TVL()
# initialize Stablecoins api client
defillama_stablecoins = Stablecoins()
# Get all protocols data
protocols = defillama_tvl.get_protocols()
# Get all stablecoins along with their circulating amounts
stablecoins = defillama_stablecoins.get_all_stablecoins()
```
-------
**Task ToDo**
- Add Doc string details for all endpoints
- User can select if he wants pandas dataframe or just response json
- Test with other versions of python ( Although used only requests and time module with no fancy methods)
This is open-source project, I am extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.
Raw data
{
"_id": null,
"home_page": "https://github.com/jafark92/defillamaAPI",
"name": "defillamaAPI",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Jafar Sadiq",
"author_email": "Jafar Sadiq <jsadiqk92@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/ae/6f/c751ec9acc0a23b2f5fa6252a56acd117a56f1748a52645c57f550ce02b3/defillamaAPI-0.0.4.tar.gz",
"platform": null,
"description": "# defillamaAPI\r\nAPI Collection of DefiLlama (https://defillama.com/docs/api)\r\n\r\nSplitted the endpoints categories on defillama's 'docs as a seperate class, so that user can import only required category endpoints.\r\n\r\n### Installation:\r\n\r\nuse pip to install:\r\n\r\n``` \r\npip install defillamaAPI\r\n```\r\n\r\n### Example usage:\r\n\r\n```\r\nfrom defillamaAPI import TVL, Stablecoins\r\n\r\n# initialize TVL api client\r\ndefillama_tvl = TVL()\r\n\r\n# initialize Stablecoins api client\r\ndefillama_stablecoins = Stablecoins()\r\n\r\n# Get all protocols data\r\nprotocols = defillama_tvl.get_protocols()\r\n\r\n# Get all stablecoins along with their circulating amounts\r\nstablecoins = defillama_stablecoins.get_all_stablecoins()\r\n```\r\n-------\r\n**Task ToDo**\r\n- Add Doc string details for all endpoints\r\n- User can select if he wants pandas dataframe or just response json\r\n- Test with other versions of python ( Although used only requests and time module with no fancy methods)\r\n\r\nThis is open-source project, I am extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.\r\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "defillama API Module",
"version": "0.0.4",
"project_urls": {
"Bug Tracker": "https://github.com/jafark92/defillamaAPI/issues",
"Homepage": "https://github.com/jafark92/defillamaAPI"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5b59567fedc44797bda9b15057208ae600b128ce559eb0461ea9ac28b5f4b527",
"md5": "cfe64b2ab7eee4aa5a637be50629301f",
"sha256": "4f73c3927e1d854c1087c2dcf0422983045c9670248b9d79abbf9ad0b7b6e0c0"
},
"downloads": -1,
"filename": "defillamaAPI-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cfe64b2ab7eee4aa5a637be50629301f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 9738,
"upload_time": "2023-06-07T20:22:04",
"upload_time_iso_8601": "2023-06-07T20:22:04.507715Z",
"url": "https://files.pythonhosted.org/packages/5b/59/567fedc44797bda9b15057208ae600b128ce559eb0461ea9ac28b5f4b527/defillamaAPI-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ae6fc751ec9acc0a23b2f5fa6252a56acd117a56f1748a52645c57f550ce02b3",
"md5": "60fc47468f33a9aa04eb6b1ead2ba591",
"sha256": "a9147eba4db38155873e27d4d2ad1b586c34227972980092b1a98a567450cbbd"
},
"downloads": -1,
"filename": "defillamaAPI-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "60fc47468f33a9aa04eb6b1ead2ba591",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 7604,
"upload_time": "2023-06-07T20:22:06",
"upload_time_iso_8601": "2023-06-07T20:22:06.155043Z",
"url": "https://files.pythonhosted.org/packages/ae/6f/c751ec9acc0a23b2f5fa6252a56acd117a56f1748a52645c57f550ce02b3/defillamaAPI-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-07 20:22:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jafark92",
"github_project": "defillamaAPI",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "defillamaapi"
}