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.13.1
  • Generator version: 7.15.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)
    benchmark_ids = ['benchmark_ids_example'] # List[str] | Comma-separated list of IDs.

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

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi definitions_benchmarks_benchmark_ids_get GET /definitions/benchmarks/{benchmark_ids}
DefaultApi definitions_benchmarks_get GET /definitions/benchmarks/
DefaultApi definitions_fields_field_ids_get GET /definitions/fields/{field_ids}
DefaultApi definitions_scenarios_scenario_ids_get GET /definitions/scenarios/{scenario_ids}
DefaultApi definitions_suites_get GET /definitions/suites
DefaultApi definitions_suites_suite_ids_get GET /definitions/suites/{suite_ids}
DefaultApi definitions_tests_test_ids_get GET /definitions/tests/{test_ids}
DefaultApi health_live_get GET /health/live
DefaultApi info_get GET /info
DefaultApi results_benchmarks_benchmark_id_tests_test_ids_get GET /results/benchmarks/{benchmark_id}/tests/{test_ids}
DefaultApi results_benchmarks_benchmark_ids_get GET /results/benchmarks/{benchmark_ids}
DefaultApi results_campaign_items_benchmark_ids_get GET /results/campaign-items/{benchmark_ids}
DefaultApi results_campaigns_suite_ids_get GET /results/campaigns/{suite_ids}
DefaultApi results_submissions_submission_id_scenarios_scenario_ids_get GET /results/submissions/{submission_id}/scenarios/{scenario_ids}
DefaultApi results_submissions_submission_id_tests_test_ids_get GET /results/submissions/{submission_id}/tests/{test_ids}
DefaultApi results_submissions_submission_id_tests_test_ids_post POST /results/submissions/{submission_id}/tests/{test_ids}
DefaultApi results_submissions_submission_ids_get GET /results/submissions/{submission_ids}
DefaultApi submissions_get GET /submissions
DefaultApi submissions_post POST /submissions
DefaultApi submissions_submission_ids_get GET /submissions/{submission_ids}
DefaultApi submissions_submission_ids_patch PATCH /submissions/{submission_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.13.1.tar.gz (43.7 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.13.1-py3-none-any.whl (98.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fab_clientlib-0.13.1.tar.gz
Algorithm Hash digest
SHA256 a8f717b9321628790e08e4aa25f982e6b7b23c6f463864074ac7492a6435c230
MD5 ba9ad930d1560be52a196411c195be9b
BLAKE2b-256 d2afbbcc22e163231fba580afde86d153ed1d177c67fe8bdca627c86b2b62584

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fab_clientlib-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b16889fe16d7e2cd33a6b9820f25e138712eeb3ed3a140a2c8ee54eb2f6eee6a
MD5 e3b7514058125c20ced82e33494207f1
BLAKE2b-256 336121b2e31249eee414aed540681b228dee8afc4aff628ea3b7752bad2e62f3

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