Help make StakeAPI even better β contributions of all kinds are welcome!
π‘ Don't have a Stake.com account yet? Sign up here to get started and unlock all API features.
git clone https://github.com/chipadevteam/StakeAPI.git
cd StakeAPI
# Create virtual environment
python -m venv .venv
# Activate (Windows)
.venv\Scripts\activate
# Activate (macOS/Linux)
source .venv/bin/activate
# Install dev dependencies
pip install -e ".[dev]"
# Install pre-commit hooks
pre-commit install
Or use the setup script (Windows):
.\setup_dev.ps1
git checkout -b feature/your-feature-name
# Run all tests
pytest
# With coverage
pytest --cov=stakeapi
# Run specific test file
pytest tests/test_client.py
# Format code
black stakeapi/ tests/
isort stakeapi/ tests/
# Lint
flake8 stakeapi/ tests/
# Type check
mypy stakeapi/
Push your branch and open a pull request against the main branch.
pytest-asyncio for async testsFollow conventional commits:
feat: add WebSocket support
fix: handle token expiration correctly
docs: update authentication guide
test: add tests for rate limiter
refactor: simplify GraphQL request handling
StakeAPI/
βββ stakeapi/ # Main package
β βββ __init__.py # Package exports
β βββ _version.py # Version info
β βββ auth.py # Authentication
β βββ client.py # Main client
β βββ endpoints.py # API endpoints
β βββ exceptions.py # Custom exceptions
β βββ models.py # Pydantic models
β βββ utils.py # Utility functions
βββ tests/ # Test suite
β βββ conftest.py # Test fixtures
β βββ test_client.py # Client tests
β βββ test_models.py # Model tests
β βββ test_utils.py # Utility tests
βββ docs/ # Documentation (GitHub Pages)
βββ examples/ # Example scripts
βββ pyproject.toml # Project configuration
βββ Makefile # Dev commands
Be respectful and constructive. Weβre all here to build something great together.
π¬ Join the StakeAPI Community on Discord
Get help, share your projects, discuss strategies, and stay up to date with the latest StakeAPI news.
Join Our Discord Server ββοΈ Built with ChipaEditor
ChipaEditor is the ultimate code editor built for speed, simplicity, and power. Try it free today.
Try ChipaEditor Free βWant to test your contributions? Youβll need a Stake.com account for integration testing.