Skip to main content

tangled-game-client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 4.0.0
  • Package version: 4.0.0
  • Generator version: 7.10.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import tangled_game_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import tangled_game_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import tangled_game_client
from tangled_game_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tangled_game_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with tangled_game_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tangled_game_client.DefaultApi(api_client)
    create_game_request = tangled_game_client.CreateGameRequest() # CreateGameRequest | 

    try:
        # Create a new game
        api_response = api_instance.create_game(create_game_request)
        print("The response of DefaultApi->create_game:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->create_game: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi create_game POST /create_game Create a new game
DefaultApi get_bots GET /bots Get the list of available bots
DefaultApi get_game_state GET /game_state Get the state of the game
DefaultApi get_legal_moves GET /legal_moves Get the legal moves for the current game state
DefaultApi get_score GET /adjudicate Adjudicate the score of the game
DefaultApi get_scorers GET /get_adjudicators Get the list of available adjudicator algorithms
DefaultApi join_game POST /join_game Connect client to a game and get player token
DefaultApi make_move POST /move Make a move in the game
DefaultApi public_create_game POST /public/create_game Create a new game (public)
DefaultApi public_get_game_state GET /public/game_state Get the state of the game (public)
DefaultApi public_get_legal_moves GET /public/legal_moves Get the legal moves for the current game state (public)
DefaultApi public_get_score GET /public/adjudicate Adjudicate the score of the game (public)
DefaultApi public_get_scorers GET /public/get_adjudicators Get the list of available adjudicator algorithms (public)
DefaultApi public_join_game POST /public/join_game Connect client to a game and get player token (public)
DefaultApi public_make_move POST /public/move Make a move in the game (public)
DefaultApi public_secret_create_game POST /secret_create_game

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

auth0

Author

Metadata

Release files for tangled_game_client 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tangled_game_client 4.0.0
File Size Uploaded
tangled_game_client-4.0.0.tar.gz 27.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tangled_game_client 4.0.0
File Interpreter ABI Platform
tangled_game_client-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 76.2 kB

Release files / tangled_game_client-4.0.0.tar.gz

Download URL tangled_game_client-4.0.0.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aaa1c42a5d2a7b900695e589e6486a3e645057ed40006db40dbdf4f013cebbab
BLAKE2b-256 checksum
How to use checksums
b6d660e048876ded8c2f377b40c81ae30b241d51d5f7de0dee7532922e5569f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.8.19 Linux/5.15.153.1-microsoft-standard-WSL2

Release files / tangled_game_client-4.0.0-py3-none-any.whl

Download URL tangled_game_client-4.0.0-py3-none-any.whl
Size 48.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ef0c3c529a680a355fe52b481e7166f0b61d0f8baaabbf08a0c1fbae571be5c
BLAKE2b-256 checksum
How to use checksums
36c10dc1e4ae084b92e60f3fd547de13d167466c164f40c92b6ec86bd57afb64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.8.19 Linux/5.15.153.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page