Skip to main content

No project description provided

Project description

Lightwheel SDK Python

A Python SDK for interacting with the Lightwheel API to access Lightwheel assets and services.

Features

  • Authentication: Secure login with credential caching
  • Floorplan Loading: Download and cache USD floorplan files
  • Object Loading: Load USD and MJCF objects from floorplans
  • Caching: Automatic caching of downloaded files for improved performance

Installation

pip install lightwheel_sdk

Quick Start

Authentication

from lightwheel_sdk.loader import login_client

# Login interactively (will prompt for username/password)
headers = login_client.login()

# Or use environment variables
# Set LW_API_ENDPOINT, LoaderUserName, and LoaderToken
headers = login_client.get_headers()

Loading Floorplans

from lightwheel_sdk.loader import floorplan_loader

# Load a USD floorplan
future = floorplan_loader.acquire_usd(layout_id=123, style_id=456)
usd_file_path = future.result()  # Returns path to downloaded USD file

Loading Objects

from lightwheel_sdk.loader import object_loader

# Load a USD object
usd_path = object_loader.acquire_object("level1/level2/object_name", "USD")

# Load an MJCF object
mjcf_path = object_loader.acquire_object("level1/level2/object_name", "MJCF")

Configuration

Environment Variables

Cache Locations

  • Login cache: ~/.cache/lightwheel_sdk/login/
  • Floorplan cache: ~/.cache/lightwheel_sdk/floorplan/
  • Object cache: ~/.cache/lightwheel_sdk/object/

API Reference

Login Client

  • login(force_login=False): Authenticate with the API
  • get_headers(): Get authentication headers

Floorplan Loader

  • acquire_usd(layout_id, style_id, scene=None, cancel_previous_download=True): Download USD floorplan
  • get_usd(layout_id, style_id, scene=None): Synchronous USD download

Object Loader

  • acquire_object(rel_path, file_type): Download object files (USD or MJCF)

License

Apache License 2.0

Support

For support and questions, please contact the Lightwheel team.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

lightwheel_sdk-0.3-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file lightwheel_sdk-0.3-py3-none-any.whl.

File metadata

  • Download URL: lightwheel_sdk-0.3-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for lightwheel_sdk-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa3bdfe83c8a66b984d171b34557858866a82248e747e617eadac593af6085f4
MD5 26ec3fc01b04b867d91707883ffdc948
BLAKE2b-256 d72a7deeb218e765a066ebf537b59fc3b5cc77242ef6eb45324410c02490f406

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