cosmpy
A library for interacting with the cosmos networks
Decision gist · record as of 2026-08-14
Yes, if you are building on Cosmos SDK networks (especially Fetch.ai). The library is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. The Alpha status means the API may change, so pin the version in production. Not relevant for non-Cosmos blockchain work.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; depends on 14 runtime packages including cryptographic libraries (bcrypt, ecdsa, pycryptodome, pynacl).
- Low friction installation with a pure-Python wheel.
- Active maintenance with a recent release 80 days ago and ongoing commits.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most projects.
last release 2026-05-26 (80 days) · last repo commit 2026-08-05 · 150 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 83,709 downloads/mo, #14,054 on PyPI
Alternatives
Verify before relying
pip install cosmpy
from cosmpy.aerial.client import LedgerClient, NetworkConfig
ledger_client = LedgerClient(NetworkConfig.fetchai_mainnet())
balances = ledger_client.query_bank_all_balances('fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x')
for coin in balances:
print(f'{coin.amount}{coin.denom}')- Whether the library supports networks beyond Fetch.ai mainnet or if other Cosmos chains are documented.
- Performance characteristics when querying large account histories or performing batch operations.
- Whether smart contract deployment and interaction examples cover all major contract types.
What it is and what it does
CosmPy is a Python client library for Cosmos SDK-based blockchains, primarily designed for the Fetch.ai network. It abstracts the complexity of blockchain interaction by providing high-level methods for common operations: querying account balances, transferring tokens, staking, and deploying or calling smart contracts. The library handles cryptographic signing, network communication via gRPC, and protocol buffer serialization internally.
The package is built on a foundation of established cryptographic and serialization dependencies (bcrypt, ecdsa, pycryptodome, protobuf, grpcio) and is actively maintained with recent releases. It targets developers building applications on Cosmos networks who want to avoid low-level protocol details. The library is in Alpha status, meaning the API may evolve, but it has been in development since 2021 and is actively used.
Use it for
- Query account balances and transaction history on Cosmos-based networks without running a full node.
- Build automated token transfer or staking workflows that interact with blockchain accounts programmatically.
- Deploy and interact with smart contracts on Cosmos networks from Python applications.
- Integrate blockchain operations into backend services or data pipelines that need to read or write blockchain state.
- Perform atomic swaps or multi-step transactions that require coordination across blockchain operations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building on Cosmos SDK networks (especially Fetch.ai).
The library is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. The Alpha status means the API may change, so pin the version in production. Not relevant for non-Cosmos blockchain work.
Install
cosmpy on PyPI
Before you install
Low friction installation with a pure-Python wheel. Active maintenance with a recent release 80 days ago and ongoing commits. Supports Python 3.10 through 3.14.
Requires Python 3.10 or later; depends on 14 runtime packages including cryptographic libraries (bcrypt, ecdsa, pycryptodome, pynacl).
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
pip install cosmpy
from cosmpy.aerial.client import LedgerClient, NetworkConfig
ledger_client = LedgerClient(NetworkConfig.fetchai_mainnet())
balances = ledger_client.query_bank_all_balances('fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x')
for coin in balances:
print(f'{coin.amount}{coin.denom}')
Verify before relying
- Whether the library supports networks beyond Fetch.ai mainnet or if other Cosmos chains are documented.
- Performance characteristics when querying large account histories or performing batch operations.
- Whether smart contract deployment and interaction examples cover all major contract types.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 14 packagesbcryptbech32ecdsagoogleapis-common-protosgrpciojsonschemapackagingprotobufpycryptodomepynaclpython-dateutilrequestssortedcontainersvirtualenv |
| Maintenance | Actively maintained 80 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 83,709 / month, #14,054 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software DevelopmentTopic :: Software Development :: Libraries :: Python ModulesTopic :: System |
Evidence: cosmpy-0.12.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cosmos blockchain python client”
- cosmpyCosmPy provides Python bindings to interact with Cosmos SDK-based…
- injective-pyInjective Python SDK provides client libraries for interacting with…
- azure-mgmt-cosmosdbProvides programmatic management of Azure Cosmos DB…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also web3 · injective-py · anchorpy · cdp-sdk · aptos-sdk · tronpy · stellar-sdk · pycoingecko · tonsdk · azure-cosmos