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 operationsclient.site: site APIsclient.product: product APIsclient.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 errorWaypointHTTPError: HTTP errorsAnyUnpackError: 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
Release files for glassdome-waypoint-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| glassdome_waypoint_sdk-0.1.1.tar.gz | 52.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| glassdome_waypoint_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 132.9 kB
Release files / glassdome_waypoint_sdk-0.1.1.tar.gz
| Download URL | glassdome_waypoint_sdk-0.1.1.tar.gz |
|---|---|
| Size | 52.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b478e60e80e58bb139af154a5eaa4de48a78c06d53e534e374a7018207c38fe5
|
|
BLAKE2b-256 checksum How to use checksums |
4ed57ccc20cdf333facf056ff1a50455eacecc91cc66812833b043bd22cc3ca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / glassdome_waypoint_sdk-0.1.1-py3-none-any.whl
| Download URL | glassdome_waypoint_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 80.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c68f994fd017627d50c4d7142da7f9777fd5d5639b650b65253ee320ef5a7656
|
|
BLAKE2b-256 checksum How to use checksums |
f973510fe481dc2dbe333c9b0e51caf2ab7129d259c4e42f584ab0d3cce335ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|