injective-py
Injective Python SDK, with Exchange API Client
What it is and what it does
Injective Python SDK is a client library for the Injective blockchain and its decentralized exchange, built on Cosmos. It provides both synchronous and asynchronous interfaces to interact with on-chain accounts, execute transactions, and stream market data and order updates from the Exchange API. The package wraps protocol buffers and gRPC bindings for the Injective chain and includes cryptographic utilities for wallet management and message signing via its runtime dependencies.
The SDK exposes an AsyncClient (V2) that returns market data in human-readable decimal format and supports the latest Exchange endpoints, while the older V1 ChainClient returns raw blockchain values and will not receive new Exchange features. Installation requires Python 3.10+ and system-level build tools for compiling native dependencies. The package is actively maintained and supports current Python versions through 3.14.
Use it for:
- Build trading bots or market-making applications using the async Exchange API client to stream orders and execute trades.
- Integrate Injective chain transactions into Python applications via the synchronous client.
- Stream real-time order book updates and market data from Injective Exchange for analytics or monitoring.
- Manage Injective wallets and sign transactions using built-in cryptographic utilities.
- Migrate from V1 to V2 AsyncClient to access new Exchange endpoints and human-readable market data formats.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Injective Python SDK provides client libraries for interacting with the Injective blockchain and Exchange API, supporting both synchronous and asynchronous operations for trading, account management, and chain transactions.
Yes, if you are building on Injective blockchain or integrating with its Exchange API. The SDK is actively maintained, has no known vulnerabilities, and offers both sync and async interfaces. Install friction is low for Python environments with standard build tools. The Apache-2.0 license is permissive. Requires Python 3.10+ and system dependencies; verify V2 stability for your use case if migrating from V1.
Install
injective-py on PyPI
pip
pip install injective-pyuv
uv add injective-pypoetry
poetry add injective-pyInstalling injective-py
Before you install
Low friction installation as a pure-Python wheel. Active maintenance with last commit 2026-07-29. Requires Python 3.10+ and system build tools (autoconf, automake, libffi-dev) for compilation of native dependencies.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; requires only attribution and inclusion of license text in distributions.
Quickstart
pip install injective-py
from injective_py.async_client_v2 import AsyncClient
from injective_py.network import Network
async def main():
client = AsyncClient(network=Network.mainnet())
Requires Python 3.10+; system build tools (autoconf, automake, libffi-dev on Ubuntu/Fedora, or brew on macOS) needed for native dependency compilation.
Verify before relying
- Whether V2 AsyncClient is production-ready or still in active development relative to V1
- Performance characteristics and rate limits for Exchange API endpoints
- Stability guarantees for market data format conversions between chain and human-readable formats
- Whether all 15 runtime dependencies are required for basic usage or optional for specific features
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 15 — aiohttp, bech32, bip32, ecdsa, eip712, eth-pydantic-types, grpcio, grpcio-tools, hdwallets, mnemonic, protobuf, requests, safe-pysha3, web3, websockets |
| Maintenance | actively maintained — 46 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 632,370/month — #5,651 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: injective_py-1.16.0-py3-none-any.whl
Keywords: injective, blockchain, cosmos, injectivelabs
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
hyperliquid-python-sdkPython SDK for trading on the Hyperliquid…
permissive · top 15,000 on PyPI
cosmpyCosmPy provides Python bindings to interact…
permissive · top 15,000 on PyPI
aptos-sdkProvides Python bindings to interact with the…
permissive · top 15,000 on PyPI
stellar-sdkStellar SDK provides Python APIs to build and…
permissive · top 15,000 on PyPI
tronpytronpy is a Python client library for…
permissive · top 15,000 on PyPI
fireblocks-sdkOfficial Python SDK for the Fireblocks API that…
permissive · top 15,000 on PyPI
ib_asyncib_async provides a Python interface to…
permissive · top 15,000 on PyPI
python-binanceUnofficial Python wrapper for the Binance…
permissive · top 15,000 on PyPI
python-kraken-sdkProvides REST and WebSocket clients for trading…
permissive · top 15,000 on PyPI
cybrid-api-bank-pythonPython client library for the Cybrid Bank API,…
permissive · top 15,000 on PyPI