{"id":13565973,"url":"https://github.com/fetchai/cosmpy","last_synced_at":"2026-03-10T15:04:35.895Z","repository":{"id":37086891,"uuid":"378897019","full_name":"fetchai/cosmpy","owner":"fetchai","description":"A Python client library for interacting with blockchains based on the Cosmos-SDK","archived":false,"fork":false,"pushed_at":"2024-06-28T09:06:25.000Z","size":3003,"stargazers_count":131,"open_issues_count":41,"forks_count":74,"subscribers_count":21,"default_branch":"main","last_synced_at":"2024-11-08T18:45:54.533Z","etag":null,"topics":["blockchain","cryptocurrency","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fetchai.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-21T10:46:18.000Z","updated_at":"2024-10-23T02:34:41.000Z","dependencies_parsed_at":"2023-02-17T21:31:16.948Z","dependency_job_id":"4a3d0b1e-0d4e-45fe-85cd-4d2cb47c2cb4","html_url":"https://github.com/fetchai/cosmpy","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchai%2Fcosmpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchai%2Fcosmpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchai%2Fcosmpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchai%2Fcosmpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetchai","download_url":"https://codeload.github.com/fetchai/cosmpy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247097625,"owners_count":20883122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","cryptocurrency","python"],"created_at":"2024-08-01T13:01:59.207Z","updated_at":"2026-03-10T15:04:35.880Z","avatar_url":"https://github.com/fetchai.png","language":"Python","funding_links":[],"categories":["Client Libraries","Python"],"sub_categories":["Python"],"readme":"# CosmPy\n\n[![Official Website](https://img.shields.io/badge/Official%20Website-fetch.ai-blue?style=flat\u0026logo=world\u0026logoColor=white)](https://fetch.ai) \n\u003ca href=\"https://pypi.org/project/cosmpy/\"\u003e\n\u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/cosmpy\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml\"\u003e\n\u003cimg alt=\"CosmPy sanity checks and tests\" src=\"https://github.com/fetchai/cosmpy/actions/workflows/workflow.yml/badge.svg\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/cosmpy/\"\u003e\n\u003cimg alt=\"Download per Month\" src=\"https://img.shields.io/pypi/dm/cosmpy\"\u003e\n\u003c/a\u003e\n[![Twitter Follow](https://img.shields.io/twitter/follow/fetch_ai?style=social)](https://x.com/fetch_ai)\n\nA python library for interacting with cosmos based blockchain networks\n\n## To Install\n\n```bash\npip3 install cosmpy\n```\n\n## Getting Started\n\nBelow is a simple example for querying an account's balances:\n\n```python\nfrom cosmpy.aerial.client import LedgerClient, NetworkConfig\n\n# connect to Fetch.ai network using default parameters\nledger_client = LedgerClient(NetworkConfig.fetchai_mainnet())\n\nalice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x'\nbalances = ledger_client.query_bank_all_balances(alice)\n\n# show all coin balances\nfor coin in balances:\n  print(f'{coin.amount}{coin.denom}')\n```\n\n## Documentation\n\nThe full documentation can be found [here](https://network.fetch.ai/docs/guides/cosmpy/installation).\n\n## Examples\n\nUnder 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.\n\n## Contributing\n\nAll 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!\n\nRead below to learn how you can take part in the CosmPy project.\n\n### Code of Conduct\n\nPlease be sure to read and follow our [Code of Conduct][coc]. By participating, you are expected to uphold this code.\n\n### Contribution Guidelines\n\nRead our [contribution guidelines][contributing] to learn about our issue and pull request submission processes, coding rules, and more.\n\n### Development Guidelines\n\nRead our [development guidelines][developing] to learn about the development processes and workflows.\n\n### Issues, Questions and Discussions\n\nWe use [GitHub Issues][issues] for tracking requests and bugs, and [GitHub Discussions][discussion] for general questions and discussion.\n\n[contributing]: https://github.com/fetchai/cosmpy/blob/main/CONTRIBUTING.md\n[developing]: https://github.com/fetchai/cosmpy/blob/main/DEVELOPING.md\n[coc]: https://github.com/fetchai/cosmpy/blob/main/CODE_OF_CONDUCT.md\n[discussion]: https://github.com/fetchai/cosmpy/discussions\n[issues]: https://github.com/fetchai/cosmpy/issues\n[license]: https://github.com/fetchai/cosmpy/blob/main/LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetchai%2Fcosmpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetchai%2Fcosmpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetchai%2Fcosmpy/lists"}