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 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file glassdome_waypoint_sdk-0.1.1.tar.gz.
File metadata
- Download URL: glassdome_waypoint_sdk-0.1.1.tar.gz
- Upload date:
- Size: 52.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b478e60e80e58bb139af154a5eaa4de48a78c06d53e534e374a7018207c38fe5
|
|
| MD5 |
209b2a37ad7846396281afeca39368a0
|
|
| BLAKE2b-256 |
4ed57ccc20cdf333facf056ff1a50455eacecc91cc66812833b043bd22cc3ca8
|
File details
Details for the file glassdome_waypoint_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: glassdome_waypoint_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 80.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c68f994fd017627d50c4d7142da7f9777fd5d5639b650b65253ee320ef5a7656
|
|
| MD5 |
1e1b87c880f2a15e074c0f026161d634
|
|
| BLAKE2b-256 |
f973510fe481dc2dbe333c9b0e51caf2ab7129d259c4e42f584ab0d3cce335ae
|