Skip to main content

Python SDK for Highwind (https://highwind.ai/)

Project description

Highwind

A Python SDK for Highwind.

Installation

The package is made available on the Python Package Index (PyPI).

pip install highwind

Usage and Current Features

1. Run Use Case inference

from typing import Dict

from highwind import UseCase

use_case: UseCase = UseCase(id="a1...88") # You'll need to get this from the Highwind Web UI

use_case.name # 'IRIS Classifier'

inference_payload: Dict = {
    "inputs": [
        {
            "name": "input-0",
            "shape": [1],
            "datatype": "BYTES",
            "parameters": None,
            "data": [[6.1, 2.8, 4.7, 1.2]],
        }
    ]
}

result: Dict = use_case.run_inference(inference_payload)

print(result)
# {
#     "id": "c1958d66-27d0-403d-9ae4-45fb9f7dac8b",
#     "model_name": "c8uj6o4d",
#     "model_version": None,
#     "outputs": [
#         {
#             "data": [1],
#             "datatype": "INT64",
#             "name": "output-0",
#             "parameters": None,
#             "shape": [1],
#         }
#     ],
#     "parameters": None,
# }

Full feature set

  • Create an Asset and upload its files from your local machine
  • Create a UseCase
  • Search for all your Assets and get their UUIDs
  • Link Assets to a UseCase
  • Search for all your UseCases and get their UUIDs
  • Deploy a UseCase
  • Run inference on a deployed UseCase
  • Many more future features as Highwind develops

Contributing

  1. Fork the repository
  2. Make your desired changes
  3. Ensure adequate test coverage
  4. Open a Pull Request

Installing dependencies

We use Poetry, so install that first by following the official docs.

Then run:

poetry install

We also use pre-commit, so install that too by following the official docs.

Then run:

pre-commit install

Running tests

Simply run:

pytest

Building and Publishing the SDK

To build the package, simply bump the version number in pyproject.toml. Then run:

poetry build

This creates a new (gitignored) folder called dist/ in the root of the project.

To publish the package to PyPI, simply run:

poetry publish

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

highwind-1.0.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

highwind-1.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file highwind-1.0.0.tar.gz.

File metadata

  • Download URL: highwind-1.0.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.18 Darwin/23.5.0

File hashes

Hashes for highwind-1.0.0.tar.gz
Algorithm Hash digest
SHA256 69c18ba7ae517d6fb30bde12cb0dd04ea20d9f5986afccf9b44e424610eff301
MD5 dbc2b7d110db6ad7d505f88bb4b051cc
BLAKE2b-256 d7e716ac62a6d4a6ea03872834dd3f706e53dfa5b89105ba1ccc32c55cc8fe09

See more details on using hashes here.

File details

Details for the file highwind-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: highwind-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.18 Darwin/23.5.0

File hashes

Hashes for highwind-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d21429797a92f318d4d10ec0d5fec056e4400ad2ac6b3e709bce4c9a4df58a66
MD5 022f915633a36a29c3561f567b296f46
BLAKE2b-256 5a37b5e181cd1c821331fe0491f49a69e6ab0b0b86b7f76c9c29d8b4153d23b0

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