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

Uploaded Python 3

File details

Details for the file lightwheel_sdk-0.7a0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for lightwheel_sdk-0.7a0-py3-none-any.whl
Algorithm Hash digest
SHA256 310878585c1e3f0259b6a619e4a97723137a31ca2a26d4df71ef9600e71fca00
MD5 bf68d8d122802413398e3db02c304f93
BLAKE2b-256 022e24533b841b392beb2ffeaf8c94e8ecc945d27ce8b323f345a4731c0b304d

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