Skip to main content

A python based Overwatch Client for interacting with the overwatch server with higher level apis.

Project description

Overwatch Client

This is a python client for the Overwatch REST API. This implementation is a work in progress but is still able to communicate with the overwatch server and register/infer models.

from overwatch_client import HTTPClient

client = HTTPClient(
  overwatch_server_url = "https://overwatch.distributive.network",
  model_registry_url = "https://models.overwatch.distributive.network"
)

print(f"Can we connect? {client.check_overwatch_server_connection()}")

#### Register a Model

response = client.register_model(
    model_name = "my_model",
    model_path = "./my_model.onnx",
    preprocess_path = "./preprocess.py",
    postprocess_path = "./postprocess.py",
    password = "my_password",
    language = "python",
    packages = ["numpy", "pandas", "opencv-python"]
)

print(response.text) ### Model registered successfully!

#### Infer a Model


response = client.infer(
    inputs = files, # a list of the bytes of each input
    model_name = "my_model",
    slice_batch = 1, # number of inputs per slice
    inference_id = "my_inference_id", # An identifier for the inference
    compute_group_info = "joinKey/joinSecret" # The compute group info for the inference
)

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

overwatch_client-0.1.9.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

overwatch_client-0.1.9-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file overwatch_client-0.1.9.tar.gz.

File metadata

  • Download URL: overwatch_client-0.1.9.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/5.15.0-89-generic

File hashes

Hashes for overwatch_client-0.1.9.tar.gz
Algorithm Hash digest
SHA256 0b355a18bc74d9e1840baf55532b7f3d1c421bf81a3a873abf3eeac45c319af1
MD5 0476f8b0d75670b70be7797ee3e23c76
BLAKE2b-256 ab5ab850f3d761d4a13a101b28bb40b155a5707a6e7a3b6092bab5f2f97ab198

See more details on using hashes here.

File details

Details for the file overwatch_client-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: overwatch_client-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/5.15.0-89-generic

File hashes

Hashes for overwatch_client-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 53c14ca86041a9d16e755e87164d40cd1af1c31c703c13dd41810d2a39c9f548
MD5 2527d23fcff627d4a48c1433b1063f85
BLAKE2b-256 a2f58222105955d867d8d8fa5311f669cd63a14700a42225fb62f40a603dec07

See more details on using hashes here.

Supported by

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