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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file cs2_battle_bot_client-0.0.6rc0.tar.gz.

File metadata

  • Download URL: cs2_battle_bot_client-0.0.6rc0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1018-azure

File hashes

Hashes for cs2_battle_bot_client-0.0.6rc0.tar.gz
Algorithm Hash digest
SHA256 43ec26e7c9845d0beb7c07905c544cee571f16a0e3d3118bf47f3a64e083e6c0
MD5 8825e0d678b0d4a89250b58ecc00fbbe
BLAKE2b-256 011e7b7b9a00e0ddeb7a1595887e05bf6199fcae63151c2715ce24c97fdbf9fd

See more details on using hashes here.

File details

Details for the file cs2_battle_bot_client-0.0.6rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for cs2_battle_bot_client-0.0.6rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 362828800c984db572036fe0971199b67fe1c4f035884d640bb41a7cddf5d011
MD5 e8f1b9645ee8bbd75617fc10746f3f2b
BLAKE2b-256 38932bf267d35d3f2b3853d8353bcafe38237afbab7b33c41b5d7fd22df4309f

See more details on using hashes here.

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