Skip to main content

Python SDK for Glassdome Waypoint API.

Project description

Glassdome Waypoint SDK

Python SDK for the Glassdome Waypoint API. This SDK provides a convenient interface for interacting with the Waypoint API.

Installation

pip install glassdome-waypoint-sdk

Requirements

  • Python >= 3.9
  • requests >= 2.28.0
  • protobuf >= 6.0.0
  • googleapis-common-protos >= 1.60.0

Quick Start

Authentication

The SDK currently supports API key authentication.

from glassdome_waypoint_sdk import WaypointClient, WaypointConfig

# Configure the client
config = WaypointConfig(base_url="https://waypoint.glassdome.dev")
client = WaypointClient.from_api_key(config, "your-api-key")

Usage Examples

API Reference

WaypointClient

Main entrypoint for interacting with the Waypoint API.

Attributes:

  • client.operation: long-running operations
  • client.site: site APIs
  • client.product: product APIs
  • client.pcf: PCF APIs

Factory method:

WaypointClient.from_api_key(config: WaypointConfig, api_key: str) -> WaypointClient

WaypointConfig

@dataclass
class WaypointConfig:
    base_url: str
    timeout_seconds: float = 60.0

Long-Running Operations

Batch import operations return Operation object.

op = client.product.create_products(requests=[...])

# Block until done or timeout
op.wait()

# With return options
op.wait(return_options=OperationReturnOptions(response=True))

# Check for error
if err := op.error():
    print(err.code, err.message)

# Access the response
if resp := op.response():
    # Process response
    pass

Error Handling

The SDK defines these error classes:

  • WaypointError: Base SDK error
  • WaypointHTTPError: HTTP errors
  • AnyUnpackError: Protobuf Any unpacking errors
from glassdome_waypoint_sdk import WaypointError, WaypointHTTPError

try:
    # Your API call
    pass
except WaypointHTTPError as e:
    print(f"HTTP error: {e}")
except WaypointError as e:
    print(f"SDK error: {e}")

License

This SDK is proprietary and may be used only under agreement with Glassdome Inc.

Support

For questions or support, contact: developer@glassdomeinc.com

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

glassdome_waypoint_sdk-0.1.0.tar.gz (51.9 kB view details)

Uploaded Source

Built Distribution

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

glassdome_waypoint_sdk-0.1.0-py3-none-any.whl (80.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for glassdome_waypoint_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40a604d969719cdc6c3095e3d5c0273668c86c72a1872bd492357976d86d1838
MD5 4e722e49628176e0763bd13050eb8314
BLAKE2b-256 3c020d04f2ae0a9503d98bf3b6bbe0075562c643d0d51905b02b3e9d25084ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for glassdome_waypoint_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95fe9f06121bf3e97a03d72e589516a4686e47798d89ddcdcb0fd01326a4cd8e
MD5 ef2cbce35d3b8840f42e9443dcdb4e3c
BLAKE2b-256 6432585586ed780f09c5a16da812bb1c9b2509e51a2280886d3d15e61a9170e1

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