Installation

Install StakeAPI and all its dependencies in seconds.

Quick Install

The easiest way to install StakeAPI is with pip:

pip install stakeapi

This installs StakeAPI and all required dependencies:

DependencyPurpose
aiohttp ≥ 3.8.0Async HTTP client for API requests
pydantic ≥ 2.0.0Data validation and type-safe models
python-dotenv ≥ 0.19.0Environment variable management
websockets ≥ 10.0Real-time WebSocket connections
cryptography ≥ 3.4.8Secure token handling

Install from Source

If you want the latest development version:

git clone https://github.com/chipadevteam/StakeAPI.git
cd StakeAPI
pip install -e .

Install with Development Dependencies

For contributors and developers who want to run tests and linting:

pip install -e ".[dev]"

This adds:

ToolPurpose
pytestTest framework
pytest-asyncioAsync test support
pytest-covCode coverage
blackCode formatting
isortImport sorting
flake8Linting
mypyType checking
pre-commitGit hooks

Install with Documentation Dependencies

pip install -e ".[docs]"

We recommend using a virtual environment to avoid dependency conflicts:

Using venv (Built-in)

# Create virtual environment
python -m venv .venv

# Activate (Windows)
.venv\Scripts\activate

# Activate (macOS/Linux)
source .venv/bin/activate

# Install StakeAPI
pip install stakeapi

Using conda

conda create -n stakeapi python=3.11
conda activate stakeapi
pip install stakeapi

Using Poetry

poetry add stakeapi

Verify Installation

After installation, verify everything works:

import stakeapi
print(f"StakeAPI version: {stakeapi.__version__}")

You should see output like:

StakeAPI version: 0.1.0

System Requirements

RequirementMinimum
Python3.8+
OSWindows, macOS, Linux
Memory64 MB
NetworkInternet connection required

Next Steps

Now that StakeAPI is installed, you need a Stake.com account and access token: