No project description provided
Project description
CS2 Battle Bot Client
Description
This is a Python client for the CS2 Battle Bot API. It uses the OpenAPI Python Generator for API interactions and Pydantic for data modeling.
Installation
With pip
- Install the package using pip:
pip install cs2-battle-bot-client
With poetry
- Install the package using poetry:
poetry add cs2-battle-bot-client
Usage
- Set
access_token
environment variable to the access token you received from the CS2 Battle Bot API.
export access_token="your_access_token"
- Use the client in your Python code:
from cs2_battle_bot_client import APIConfig
from cs2_battle_bot_client.services import matches_service
api_config = APIConfig(
base_url="http://localhost:8000"
)
def main():
matches = matches_service.matches_list(api_config_override=api_config)
print(matches)
if __name__ == "__main__":
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cs2_battle_bot_client-0.0.6rc0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43ec26e7c9845d0beb7c07905c544cee571f16a0e3d3118bf47f3a64e083e6c0 |
|
MD5 | 8825e0d678b0d4a89250b58ecc00fbbe |
|
BLAKE2b-256 | 011e7b7b9a00e0ddeb7a1595887e05bf6199fcae63151c2715ce24c97fdbf9fd |
Close
Hashes for cs2_battle_bot_client-0.0.6rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362828800c984db572036fe0971199b67fe1c4f035884d640bb41a7cddf5d011 |
|
MD5 | e8f1b9645ee8bbd75617fc10746f3f2b |
|
BLAKE2b-256 | 38932bf267d35d3f2b3853d8353bcafe38237afbab7b33c41b5d7fd22df4309f |