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.4-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lightwheel_sdk-0.4-py3-none-any.whl
  • Upload date:
  • Size: 39.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 21d385f2a0b88a3b7d9d60e821b67078f29cdfde5b40cfe8399f085e863d2a66
MD5 365dd5d19745c999e6bd7702fe73d8c9
BLAKE2b-256 0e119800b61fc409dbd88b981b2861cdc55c98512690b9e6032893e28cd731e0

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