Skip to main content

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
)

Metadata

Release files for overwatch-client 0.1.9

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

Source distribution (sdist)

Source distribution for overwatch-client 0.1.9
File Size Uploaded Provenance Actions
overwatch_client-0.1.9.tar.gz 4.6 kB Without provenance Details for overwatch_client-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for overwatch-client 0.1.9
File Interpreter ABI Platform Actions
overwatch_client-0.1.9-py3-none-any.whl Python 3 none any Details for overwatch_client-0.1.9-py3-none-any.whl

Total release size: 10.0 kB

Release files / overwatch_client-0.1.9.tar.gz

Download URL overwatch_client-0.1.9.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b355a18bc74d9e1840baf55532b7f3d1c421bf81a3a873abf3eeac45c319af1
BLAKE2b-256 checksum
How to use checksums
ab5ab850f3d761d4a13a101b28bb40b155a5707a6e7a3b6092bab5f2f97ab198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.13 Linux/5.15.0-89-generic

Release files / overwatch_client-0.1.9-py3-none-any.whl

Download URL overwatch_client-0.1.9-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53c14ca86041a9d16e755e87164d40cd1af1c31c703c13dd41810d2a39c9f548
BLAKE2b-256 checksum
How to use checksums
a2f58222105955d867d8d8fa5311f669cd63a14700a42225fb62f40a603dec07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.13 Linux/5.15.0-89-generic

Security for overwatch-client 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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