Registry / crm-productivity / lightning-sdk

lightning-sdk

JSON →
library2026.6.8.post0pypypiunverified

The Lightning SDK provides programmatic access to Lightning AI Studios, enabling developers to create, manage, and interact with studios, workspaces, and apps. Version 2026.4.23 supports Python >=3.8 and is released on a monthly cadence.

pip install lightning-sdk
INSTALL
IMPORT
SIG · LIGHTNING-SDK
L
lightning-sdk
crm-productivitypythonv2026.6.8.post0
Install
8.3s avg
Import
Disk
89MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2026.4.23 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 83.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.3s · import 0.000s · 84MB
89MB installed
● package 89MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AIHub
from lightning_sdk import AIHub
from lightning_sdk import LightningClient
Studio
from lightning_sdk import Studio
from lightning_sdk import LightningClient
Job
from lightning_sdk import Job
from lightning_sdk import LightningClient

Initialize the Lightning client with an API key environment variable and create a studio.

import os from lightning_sdk import LightningClient, Studio # Authenticate using API key (set as environment variable) client = LightningClient(api_key=os.environ.get('LIGHTNING_API_KEY', '')) # Create a new studio studio = client.create_studio(name='my-studio') print(f"Created studio: {studio.id}")
Debug
Known issues
breakingIn version 2026.4.0, the API for creating studios changed. The 'create_studio' method now requires a 'project_id' parameter instead of 'workspace_id'.
fix
Update your code: replace 'workspace_id' with 'project_id' when calling create_studio().
affects: >=2026.4.0
deprecatedThe 'lightning_sdk.api.v1' module is deprecated and will be removed in a future release.
fix
Use 'lightning_sdk.api.v2' or the high-level interfaces in 'lightning_sdk' directly.
affects: >=2026.1.0
gotchaAPI keys must be passed as a string to the client constructor. If you omit the api_key and have LIGHTNING_API_KEY env var set, it will be read automatically, but only if the env var is exactly 'LIGHTNING_API_KEY'.
fix
Ensure the environment variable is named 'LIGHTNING_API_KEY' (case-sensitive).
affects: all
Upgrade
Version history
2026.6.8.post0latest on PyPI · released Jun 9, 2026
Audit
Dependencies
lightningrequiredCore Lightning AI framework for studio operations
requestsrequiredHTTP client for API calls
Agent activity
44 hits · last 30 days
node
40
OpenAI (training)
1
Resources
lightning-sdk — pip install lightning-sdk · libregistry