Skip to main content

No project description provided

Project description

Introduction

Python client for Midgard API

THORChain has several APIs - Midgard, THORNode, Cosmos RPC, CometBFT RPC. This python client focuses on interactions with Midgard API.

Built for Midgard Public API version 2.32.8.

API Docs

Warning

I needed this to use only one endpoint, so first release will be very much useless for anyone. I will continue working on this and covering all API endpoints in the future when I have more free time.

Progress

Below is the implementation status of the major sections of Midgard API in this Python client:

Section Implemented Notes
Health Info
Pools List

If you notice any discrepancy or want a section prioritized, please open an issue or PR.

Installation

Normal installation

pip install midgard-py

Development installation

git clone https://github.com/jpleorx/midgard-py.git
cd midgard-py
pip install --editable .

Usage

from midgard_py import MidgardAPI

api = MidgardAPI()

# Check that it's online
health = api.health()

# Get pools
pools = api.pools()

Links

In case you’d like to check my other work or contact me:

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

midgard-py-0.0.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

midgard_py-0.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file midgard-py-0.0.1.tar.gz.

File metadata

  • Download URL: midgard-py-0.0.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for midgard-py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 60e1088255b7a88bdc1a6ff9acb0fab34a7b9acf6617e46eda72dd00b70fbda4
MD5 748d549457ade998b3b0d84bc8287dfd
BLAKE2b-256 067e1dd9f5543a91184490aa5cfd30a68df1624e69f63dd52d3f1997299ed762

See more details on using hashes here.

File details

Details for the file midgard_py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: midgard_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for midgard_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc6520c93fc00a6da5a6a0f5543c893ba37b1b23e7486bb798ba57bf1239e40
MD5 25c894b66bb6b81e4029231c491229d4
BLAKE2b-256 734db605bb932c94440384c2715564959227a355da553560dc810c23f3a632a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page