Skip to main content

Shared data models and service protocols for NextPoints and its ML backend

Project description

nextpoints-sdk

Shared data models and simple synchronous service protocol client between NextPoints and its ML backend.

MVP scope:

  • Pydantic models for project metadata, annotations, calibration.
  • Synchronous HTTP client (httpx) for three service endpoints: pre-annotation, reconstruction, calibration.
  • Minimal error and artifact models.

Install (local)

pip install -e .

Run tests

pytest -q

Basic Usage

from nextpoints_sdk.client.services import ServicesClient
from nextpoints_sdk.models.requests import PreAnnotationRequest
# build project_meta ...
client = ServicesClient(base_url="http://ml-backend:8000", api_key="your-key")
resp = client.pre_annotate(PreAnnotationRequest(project_meta=project_meta))
print(resp.annotations.keys())

This is an early skeleton. Models will be filled incrementally.

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

nextpoints_sdk-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

nextpoints_sdk-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file nextpoints_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: nextpoints_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for nextpoints_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac3e289974da58fa46dc62c08833813a2ec83fe7c5df833f8063f2b9c139d111
MD5 08a0cd1cf7a862b2fa9051be6b7ba295
BLAKE2b-256 bb78fe3ecbe9bcd237e518c52d3e927751ade2c411175efb6a9bd9f4e7202f0d

See more details on using hashes here.

File details

Details for the file nextpoints_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nextpoints_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for nextpoints_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e28242174a1ac29a0150c34e67d927053f73440803c8539a7dcb67b26357c216
MD5 39cec3473a5a148ed7e3e23870975260
BLAKE2b-256 8c849296e0681d3507bba0a4e8308b5bb224b4f64f1116c27a2b124049ae7536

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