Skip to main content

FAB Client Lib

Project description

fab-clientlib

Python client lib to access Flatland Association Benchmarks / AI4REALNET Campaign Hub Backend API, generated with openapi-generator

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

  • API version: 0.0.0
  • Package version: v0.8.1
  • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

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

pip install git+https://github.com/flatland-association/flatland-benchmarks.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/flatland-association/flatland-benchmarks.git)

Then import the package:

import fab_clientlib

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 fab_clientlib

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import fab_clientlib
from fab_clientlib.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 = fab_clientlib.Configuration(
    host = "http://localhost"
)



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

    try:
        api_response = api_instance.health_live_get()
        print("The response of DefaultApi->health_live_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->health_live_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi health_live_get GET /health/live
DefaultApi results_benchmark_benchmark_id_get GET /results/benchmark/{benchmark_id}
DefaultApi results_campaign_item_benchmark_id_get GET /results/campaign-item/{benchmark_id}
DefaultApi results_campaign_item_benchmark_id_tests_test_id_get GET /results/campaign-item/{benchmark_id}/tests/{test_id}
DefaultApi results_submission_submission_id_get GET /results/submission/{submission_id}
DefaultApi results_submission_submission_id_tests_test_id_get GET /results/submission/{submission_id}/tests/{test_id}
DefaultApi results_submission_submission_id_tests_test_id_post POST /results/submission/{submission_id}/tests/{test_id}
DefaultApi results_submission_submission_id_tests_test_id_scenario_scenario_id_get GET /results/submission/{submission_id}/tests/{test_id}/scenario/{scenario_id}
DefaultApi submissions_get GET /submissions
DefaultApi submissions_post POST /submissions
DefaultApi submissions_uuid_get GET /submissions/{uuid}
DefaultApi tests_ids_get GET /tests/{ids}

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

oauth2

Author

contact@flatland-association.org

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

fab_clientlib-0.8.1.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

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

fab_clientlib-0.8.1-py3-none-any.whl (69.8 kB view details)

Uploaded Python 3

File details

Details for the file fab_clientlib-0.8.1.tar.gz.

File metadata

  • Download URL: fab_clientlib-0.8.1.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fab_clientlib-0.8.1.tar.gz
Algorithm Hash digest
SHA256 6d90b226533d0b3b34c9d5be4daf75b61aa8c5e2dedd76e0dcb7c3c43c52d788
MD5 3150b9a1b58102aa0e479dc2178607de
BLAKE2b-256 42655741ba928aab7f25ab8c97832886ad80244c7362df5521548298226e38ac

See more details on using hashes here.

File details

Details for the file fab_clientlib-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: fab_clientlib-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 69.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fab_clientlib-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b15dc135c768eb76a8fe2844895d3d4613ab2693a36f51842449d1191140e6a7
MD5 408f0df39b9dcb149d8c1bf708a7ae39
BLAKE2b-256 86711902ae839b7dfc78dbfd137a20382eda8c7cf69d6e42386c12b8167683c8

See more details on using hashes here.

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