Install System Dependencies
The Python SDK depends on First, install For more details on macOS installation, see the starknet.py installation guide.
starknet.py, which requires certain system libraries to be installed first.- macOS
- Linux
- Windows
The following instructions assume Homebrew is installed.
cmake (required for building crypto dependencies):Install the Python SDK
Install:
chipi-stack (PyPI). Import: from chipi_sdk import ....
The PyPI package name and the Python module name differ — pip install chipi-stack succeeds, but import chipi_stack will fail. Always import from chipi_sdk.Apple Silicon Installation
Apple Silicon Installation
If you’re on an Apple Silicon Mac (M1/M2/M3) and encounter issues, use these flags:
Get your API Keys
- Go to your API Keys in the Chipi Dashboard
- Copy your Public Key (
pk_prod_xxxx) - Copy your Secret Key (
sk_prod_xxxx)
Your secret key is used for backend authentication. Keep it secure and never commit it to version control.
Async Support
The Python SDK supports both sync and async operations. For better performance in async applications, use the async methods:All SDK methods have async equivalents prefixed with
a (e.g., create_wallet → acreate_wallet, transfer → atransfer).Next Steps
Now that you have the basic setup working, explore more advanced features:- Create Wallet - Detailed wallet creation guide
- Transfer Tokens - Send USDC and other tokens
- Backend API Reference - Full SDK method documentation
