Skip to main content

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

  1. Install the package using pip:
pip install cs2-battle-bot-client

With poetry

  1. Install the package using poetry:
poetry add cs2-battle-bot-client

Usage

  1. Set access_token environment variable to the access token you received from the CS2 Battle Bot API.
export access_token="your_access_token"
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs2_battle_bot_client-0.0.6rc0.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

cs2_battle_bot_client-0.0.6rc0-py3-none-any.whl (36.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page