Skip to main content

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.

Metadata

Release files for defipulsedata 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for defipulsedata 0.0.0
File Size Uploaded Provenance Actions
defipulsedata-0.0.0.tar.gz 7.4 kB Without provenance Details for defipulsedata-0.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for defipulsedata 0.0.0
File Interpreter ABI Platform Actions
defipulsedata-0.0.0-py3-none-any.whl Python 3 none any Details for defipulsedata-0.0.0-py3-none-any.whl

Total release size: 15.5 kB

Release files / defipulsedata-0.0.0.tar.gz

Download URL defipulsedata-0.0.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ebcb29d4744297c6a7d1671fad52d633b79fbc59be7c82d70b1c1e4390fe2a7d
BLAKE2b-256 checksum
How to use checksums
e278a10daa06ecd6a5f64857f71b1cd60ffa5cbbcec22ac5f6dbaf98e8465d67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.7.10 Darwin/18.7.0

Release files / defipulsedata-0.0.0-py3-none-any.whl

Download URL defipulsedata-0.0.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7ff5e26d95edda190905740aa483768ad6a8e313bb1d25520bc8112afbec6a6
BLAKE2b-256 checksum
How to use checksums
bacd6a98d5f10a2ba0fc1aa2172e686065c6a8e7f8592664d920b5e7917fbf63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.7.10 Darwin/18.7.0

Security for defipulsedata 0.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page