A library to make developing python based programs on cosmos chains easier
Project description
cosmpy-api
A library used to query different bits of cosmos data all in 1 place. Early stages, major WIP
Includes:
- Coingecko token query
- chain_apis (rest,rpc, denom, logo png, twitter, explorers, staking & gov pages, coingecko_id, & chain_registery )
Example usage
from pyibc_api import get_chain
print(get_chain("juno")) # gets chain data
from pyibc_chain.validators import get_latest_validator_set_sorted
for idx, op_addr in enumerate(get_latest_validator_set_sorted("https://lcd-osmosis.blockapsis.com", True), 1):
print(idx, op_addr, vals[op_addr])
if idx > 10: break
from cosmpy_price import get_price
print(get_price(['juno-network', "comdex"]))
# print(get_price('juno-network')) # also works
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
python-ibc-0.1.1.tar.gz
(13.5 kB
view hashes)
Built Distribution
python_ibc-0.1.1-py3-none-any.whl
(13.8 kB
view hashes)
Close
Hashes for python_ibc-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d851d8a400362bd43e12314c2ba7e71f83d3d4e11871ca1ea7d01bd4423e0695 |
|
MD5 | 3701587cbb77936e4429a10bbfc2f315 |
|
BLAKE2b-256 | 465b37a1e062e800c478558321b611e322cd7a4e30b0c6cea82994af8e313bee |