Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CosmPy

Official Website PyPI CosmPy sanity checks and tests Download per Month Twitter Follow

A python library for interacting with cosmos based blockchain networks

To Install

pip3 install cosmpy

Getting Started

Below is a simple example for querying an account's balances:

from cosmpy.aerial.client import LedgerClient, NetworkConfig

# connect to Fetch.ai network using default parameters
ledger_client = LedgerClient(NetworkConfig.fetchai_mainnet())

alice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x'
balances = ledger_client.query_bank_all_balances(alice)

# show all coin balances
for coin in balances:
  print(f'{coin.amount}{coin.denom}')

Documentation

The full documentation can be found here.

Examples

Under the examples directory, you can find examples of basic ledger interactions using cosmpy, such as transferring tokens, staking, deploying and interacting with a smart contract, and performing atomic swaps.

Contributing

All contributions are very welcome! Remember, contribution is not only PRs and code, but any help with docs or helping other developers solve their issues are very appreciated!

Read below to learn how you can take part in the CosmPy project.

Code of Conduct

Please be sure to read and follow our Code of Conduct. By participating, you are expected to uphold this code.

Contribution Guidelines

Read our contribution guidelines to learn about our issue and pull request submission processes, coding rules, and more.

Development Guidelines

Read our development guidelines to learn about the development processes and workflows.

Issues, Questions and Discussions

We use GitHub Issues for tracking requests and bugs, and GitHub Discussions for general questions and discussion.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cosmpy-0.13.0rc1.tar.gz (269.5 kB view details)

Uploaded Source

Built Distribution

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

cosmpy-0.13.0rc1-py3-none-any.whl (618.1 kB view details)

Uploaded Python 3

File details

Details for the file cosmpy-0.13.0rc1.tar.gz.

File metadata

  • Download URL: cosmpy-0.13.0rc1.tar.gz
  • Upload date:
  • Size: 269.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1020-azure

File hashes

Hashes for cosmpy-0.13.0rc1.tar.gz
Algorithm Hash digest
SHA256 da8ec905ff1b39ed8635307aaee76c0fff0e60c695735e44f392e7fbb3d8441d
MD5 b6d14dcaba23a7175ef16f7799b20112
BLAKE2b-256 51c1c4dc13144e966493b0a8a526f7d1fe6b49c6f6851d13b6c66e86bef331d8

See more details on using hashes here.

File details

Details for the file cosmpy-0.13.0rc1-py3-none-any.whl.

File metadata

  • Download URL: cosmpy-0.13.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 618.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1020-azure

File hashes

Hashes for cosmpy-0.13.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcbad949a7cf40f7c7b6876901aa690111ab3f444607b5d593c418ae2373dd33
MD5 1b8ca9f46803e7cde3fb6669543307cd
BLAKE2b-256 58609fa7fd721e0fcf24742087231821a4ee29ad8050ac0c231bc00777573e1a

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