Metadata-Version: 2.1
Name: cosmpy
Version: 0.1.2
Summary: A library for interacting with the cosmos networks
Home-page: https://github.com/fetchai/cosmpy
Author: Fetch.AI Limited
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/fetchai/cosmpy/issues
Project-URL: Source, https://github.com/fetchai/cosmpy
Keywords: cosmos,gaia,fetchhub,fetchai
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.6, <4
Description-Content-Type: text/markdown
Provides-Extra: dev
Provides-Extra: test
License-File: LICENSE

# Cosmpy

[![Checks amd Tests](https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg)](https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml)

A python library for interacting with cosmos based blockchain networks

## Installing

To install the project use:

    pip3 install cosmpy

## Getting started

Below is a simple example using the `SigningCosmWasmClient` and the `RestClient` channel.

    from cosmpy.clients.signing_cosmwasm_client import SigningCosmWasmClient
    from cosmpy.common.rest_client import RestClient

    channel = RestClient("http://<rest endpoint addres>")
    client = SigningCosmWasmClient(private_key, channel, "<chain id>")
    
    res = client.get_balance(client.address, "stake")
    print(f"Balance: {res.balance.amount} {res.balance.denom}")

## Extra Resources

* [Github Repo](https://github.com/fetchai/cosmpy)
* [Bug Reports](https://github.com/fetchai/cosmpy/issues)
* [Discussions](https://github.com/fetchai/cosmpy/discussions)


