Skip to main content

Python SDK for the Esource.gg Client API

Project description

Esource.gg Python SDK

This is a Python SDK for interacting with the Esource.gg REST API (v1.0.0). It provides a simple, consistent interface for authentication and accessing various API resources.

Features

  • Authenticated session management with automatic token refresh.
  • Handles common API errors gracefully.
  • Pythonic access to API resources:
    • Sports (/sports)
    • Maps (/maps)
    • Players (/players)
    • Teams (/teams, /teams/{id}/players)
    • Trading Categories (/trading-categories)
    • Trading Tournaments (/trading-tournaments)
    • Trading Events (/trading-events)
    • Changelog (/changelog)
  • Support for common query parameters (skip, limit/take, orderBy, search) where applicable.
  • Support for resource-specific query parameters (e.g., timestamp, sportId, statuses).
  • Integration tested against the live API.
  • Basic logging included.

Installation

  1. Clone the repository:

    git clone https://github.com/<your_github_username>/<your_repo_name>.git
    cd <your_repo_name>
    
  2. Install in editable mode (recommended for development):

    pip install -e .
    

    or for standard installation:

    pip install .
    
  3. Install development dependencies (for running tests):

    pip install -r requirements-dev.txt
    

    (You'll need to create a requirements-dev.txt containing pytest and potentially other dev tools)

Configuration

Integration tests require API credentials and the base API URL. Create a .env file in the project root directory:

# .env file
API_URL=https://esource.gg/api
TEST_EMAIL=your_test_email@example.com
TEST_PASSWORD=your_secret_password

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

esource_client_api-1.1.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

esource_client_api-1.1.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file esource_client_api-1.1.0.tar.gz.

File metadata

  • Download URL: esource_client_api-1.1.0.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for esource_client_api-1.1.0.tar.gz
Algorithm Hash digest
SHA256 03192e2752590dc11ac04931512801a56f6c0b8f21db7b09e57de101ba66e07a
MD5 443875e8f6ead3709c9428f00d0c3302
BLAKE2b-256 44d7faba28bad80ffe308448b5daf5793a3b1d6ab373af5c4757440f8fdad0be

See more details on using hashes here.

Provenance

The following attestation bundles were made for esource_client_api-1.1.0.tar.gz:

Publisher: publish.yml on Eppop-bet/client-api-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file esource_client_api-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for esource_client_api-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 796c5d4fb34716de8d293926d3a03b8d6940c4a7bb5868b47e62276eb79ec0b5
MD5 8a0bedb07b3a8747ae1004c7fce3fa69
BLAKE2b-256 0e62d23d7430a40617a7df824f2f1665ace53487ee0cd22232ee02b120e9bdf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for esource_client_api-1.1.0-py3-none-any.whl:

Publisher: publish.yml on Eppop-bet/client-api-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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