Metadata-Version: 2.4
Name: stakeapi
Version: 0.1.0
Summary: Unofficial Python API wrapper for stake.com
Author-email: Vigo Walker <vigopaul05@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/chipadevteam/StakeAPI
Project-URL: Documentation, https://chipadevteam.github.io/StakeAPI/
Project-URL: Repository, https://github.com/chipadevteam/StakeAPI
Project-URL: Bug Tracker, https://github.com/chipadevteam/StakeAPI/issues
Keywords: stake,gambling,api,casino,betting
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=0.19.0
Requires-Dist: websockets>=10.0
Requires-Dist: cryptography>=3.4.8
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: isort>=5.10.0; extra == "dev"
Requires-Dist: flake8>=4.0.0; extra == "dev"
Requires-Dist: mypy>=0.910; extra == "dev"
Requires-Dist: pre-commit>=2.15.0; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx>=4.0.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "docs"
Requires-Dist: myst-parser>=0.15.0; extra == "docs"
Dynamic: license-file

# StakeAPI

**Join our affiliate link**: https://stake.com/?c=WY7953wQ

An unofficial Python API wrapper for stake.com - the online gambling platform.

## ⚠️ Disclaimer

This is an unofficial API wrapper and is not affiliated with, endorsed by, or connected to stake.com in any way. Use at your own risk and ensure compliance with all applicable laws and regulations in your jurisdiction.
 
## Features

- 🎰 Access to casino games data
- 🏈 Sports betting information
- 👤 User account management
- 📊 Statistics and analytics
- 🔐 Secure authentication handling
- ⚡ Async support for high performance

## Installation

```bash
pip install stakeapi
```

## Quick Start

```python
import asyncio
from stakeapi import StakeAPI

async def main():
    # Initialize with access token from stake.com
    async with StakeAPI(access_token="your_access_token") as client:
        # Get account balance
        balance = await client.get_user_balance()
        print(f"Available balance: {balance['available']}")
        print(f"Vault balance: {balance['vault']}")

asyncio.run(main())
```

## Getting Your Access Token

1. **Log in to stake.com** in your browser
2. **Open Developer Tools** (F12)
3. **Go to the Network tab**
4. **Make any action** that triggers a request (like checking balance)
5. **Find a GraphQL request** to `/_api/graphql`
6. **Right-click** → **Copy as cURL**
7. **Extract the x-access-token** from the cURL command

The access token will be in a header like:
```
-H "x-access-token: your_token_here"
```

## Documentation

For detailed documentation, please visit **[chipadevteam.github.io/StakeAPI](https://chipadevteam.github.io/StakeAPI/)**.

## Contributing

We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Support

If you encounter any issues, please file them in the [issues section](https://github.com/chipadevteam/StakeAPI/issues).
