Unofficial SDK for DeFi Pulse Data
Project description
Overview
An unofficial Python SDK for the DeFi Pulse Data project and each of its partner service providers. This project provides a lightweight Python client for each service provider.
Currently, the DeFi Pulse Data service providers include:
The goals of this package are to empower Python programmers to make use of DeFi Pulse Data services, to enrich the broader DeFi developer ecosystem, and to reduce overall developer effort by providing a packaged developer SDK so that developers do not need to reinvent the wheel for each project they make.
This project bears no official relationship to the DeFi Pulse Data project, or the Concourse Open Community project.
Setup
Requirements
- Python 3.7+
Installation
Install it directly into an activated virtual environment:
$ pip install defipulsedata
or add it to your Poetry project:
$ poetry add defipulsedata
Usage
After installation, the package can imported.
Each module below corresponds to a single, logical data provider service defined in the DeFi Pulse Data documentation.
from defipulsedata import RekTo, EthGasStation, DefiPulse, DexAg, PoolsFyi
key='REPLACE-WITH-YOUR-KEY'
# Example requests for each client.
# Rek.to
rekto = RekTo(api_key=key)
rekto.get_events()
# DeFi Pulse
dp = DefiPulse(api_key=key)
dp.get_projects()
# ETH Gas Station
egs = EthGasStation(api_key=key)
egs.get_gas_price()
# DEX.AG
dexag = DexAg(api_key=key)
dexag.get_markets()
# Pools.Fyi
pools = PoolsFyi(api_key=key)
pools.get_exchanges()
Contributing and Filing Issues
Details for local development dependencies and useful Make targets can be found in contributing.md
Contributions, suggestions, bug reports, are welcome and encouraged.
If you have a bug or issue, please file a GitHub issue on the project describing the expected behavior and the actual behavior, with steps to reproduce the issue.
If you have a feature request, please file a GitHub issue on the project describing the feature you want, and why you want it.
License
The MIT License (MIT)
Copyright © 2021, James Boyle
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file defipulsedata-0.0.0.tar.gz
.
File metadata
- Download URL: defipulsedata-0.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.7.10 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebcb29d4744297c6a7d1671fad52d633b79fbc59be7c82d70b1c1e4390fe2a7d |
|
MD5 | 772ed1894e4a2e35e7be4d63db1b7d25 |
|
BLAKE2b-256 | e278a10daa06ecd6a5f64857f71b1cd60ffa5cbbcec22ac5f6dbaf98e8465d67 |
File details
Details for the file defipulsedata-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: defipulsedata-0.0.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.7.10 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7ff5e26d95edda190905740aa483768ad6a8e313bb1d25520bc8112afbec6a6 |
|
MD5 | 5d827f93a2a839d14fbb35c38475ae64 |
|
BLAKE2b-256 | bacd6a98d5f10a2ba0fc1aa2172e686065c6a8e7f8592664d920b5e7917fbf63 |