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)
- Sports (
- 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
-
Clone the repository:
git clone https://github.com/<your_github_username>/<your_repo_name>.git cd <your_repo_name>
-
Install in editable mode (recommended for development):
pip install -e .
or for standard installation:
pip install .
-
Install development dependencies (for running tests):
pip install -r requirements-dev.txt
(You'll need to create a
requirements-dev.txtcontainingpytestand 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03192e2752590dc11ac04931512801a56f6c0b8f21db7b09e57de101ba66e07a
|
|
| MD5 |
443875e8f6ead3709c9428f00d0c3302
|
|
| BLAKE2b-256 |
44d7faba28bad80ffe308448b5daf5793a3b1d6ab373af5c4757440f8fdad0be
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
esource_client_api-1.1.0.tar.gz -
Subject digest:
03192e2752590dc11ac04931512801a56f6c0b8f21db7b09e57de101ba66e07a - Sigstore transparency entry: 201555573
- Sigstore integration time:
-
Permalink:
Eppop-bet/client-api-sdk@a2dcbdf99f12203f55a0c3df85f1b5b9702eddfb -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/Eppop-bet
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a2dcbdf99f12203f55a0c3df85f1b5b9702eddfb -
Trigger Event:
release
-
Statement type:
File details
Details for the file esource_client_api-1.1.0-py3-none-any.whl.
File metadata
- Download URL: esource_client_api-1.1.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
796c5d4fb34716de8d293926d3a03b8d6940c4a7bb5868b47e62276eb79ec0b5
|
|
| MD5 |
8a0bedb07b3a8747ae1004c7fce3fa69
|
|
| BLAKE2b-256 |
0e62d23d7430a40617a7df824f2f1665ace53487ee0cd22232ee02b120e9bdf9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
esource_client_api-1.1.0-py3-none-any.whl -
Subject digest:
796c5d4fb34716de8d293926d3a03b8d6940c4a7bb5868b47e62276eb79ec0b5 - Sigstore transparency entry: 201555579
- Sigstore integration time:
-
Permalink:
Eppop-bet/client-api-sdk@a2dcbdf99f12203f55a0c3df85f1b5b9702eddfb -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/Eppop-bet
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a2dcbdf99f12203f55a0c3df85f1b5b9702eddfb -
Trigger Event:
release
-
Statement type: