Installation¶
The Akash Python SDK can be installed using pip, the standard Python package manager.
Requirements¶
System requirements
- Python: 3.8 or higher
- Operating system: Linux, macOS, or Windows
- Dependencies: Automatically installed with pip
Akash Network compatibility
This SDK is compatible with:
- Akash Node: v0.38.0, v0.38.1
Install from PyPI¶
Install from source¶
For development or to get the latest features:
Verify installation¶
Test that the installation was successful:
test_installation.py
from akash import AkashClient, AkashWallet
wallet = AkashWallet.generate()
print(f"✅ SDK installed successfully!")
print(f"Test wallet address: {wallet.address}")
Expected output:
Dependencies¶
The SDK automatically installs these required packages:
| Package | Version | Purpose |
|---|---|---|
| grpcio | ≥1.50.0 | RPC client library |
| grpclib | ≥0.4.0 | Async gRPC library |
| protobuf | ≥4.21.0 | Protocol buffer support |
| googleapis-common-protos | ≥1.57.0 | Google API common protobuf types |
| ecdsa | ≥0.18.0 | Elliptic curve cryptography |
| bech32 | ≥1.2.0 | Address encoding/decoding |
| requests | ≥2.20.0 | HTTP client for provider communication |
| mnemonic | ≥0.20 | BIP39 mnemonic phrase support |
| pycryptodome | ≥3.15.0 | Cryptographic functions |
| cryptography | ≥41.0.0 | X.509 certificates and SSL/TLS support |
| pyyaml | ≥5.1.0 | YAML parsing for manifest files |
| websocket-client | ≥1.0.0 | WebSocket support for streaming logs |
Virtual environment¶
Recommended setup
It's recommended to use a virtual environment to avoid dependency conflicts:
Upgrading¶
To upgrade to the latest version:
Check your installed version:
Docker¶
Use the SDK in a Docker container:
Dockerfile
FROM python:3.11-slim
RUN pip install akash
COPY . /app
WORKDIR /app
CMD ["python", "your_app.py"]
Build and run:
Installation complete!
Continue with the Quick start guide.