skillfed

injective-py

Injective Python SDK, with Exchange API Client

injective-py v1.16.0 632.4K downloads/30d#5,651 on PyPI46
Permissive license Apache-2.0 Active released

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-py

uv

uv add injective-py

poetry

poetry add injective-py

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

injective blockchain sdk pythoncosmos chain client libraryexchange api trading clientasync blockchain interactioninjective exchange integrationcryptocurrency trading sdkblockchain wallet management
blockchain-sdkcosmos-chainasync-client

More Internet packages