Skip to main content

Luma API Python client

WARNING: We are no longer actively supporting this capture API. For Genie API, please contact us for information.

Installation

pip install lumaapi

Docs

https://lumalabs.ai/luma-api/client-docs/index.html

To build docs: go to docs/ and

make html

Need to install requirements first time (pip install -r docs/requirements.txt)

Release

First install deps pip install python-build twine

Then update the version in pyproject.toml and

python -m build
twine upload dist/lumaapi-<x.x.x>.tar.gz

For Luma employees: Please get the password from 1Password (search PyPI)

CLI usage

  • To submit a video: luma submit <path> <title>, where path can be a video, zip, or directory.
    • This outputs a slug.
  • To check status of the capture: luma status <slug>
  • To search user's captures: luma get <title>
  • To manually authenticate: luma auth (CLI will also prompt when required)
  • To check for credits: luma credits

Library usage

from lumaapi import LumaClient
client = LumaClient(api_key)
slug = client.submit(video_path, title)
print(client.status(slug))

Then use functions corresponding to the CLI

Metadata

Release files for lumaapi 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lumaapi 0.0.5
File Size Uploaded
lumaapi-0.0.5.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lumaapi 0.0.5
File Interpreter ABI Platform
lumaapi-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / lumaapi-0.0.5.tar.gz

Download URL lumaapi-0.0.5.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16a18c038805b5448133e0ad39d5877bf08ccade68f4d2f871c2570b7f8defec
BLAKE2b-256 checksum
How to use checksums
9f3a81e2db886e168c6d73966326abe5dc82de83cefcbd1d10c438e791340b6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.13

Release files / lumaapi-0.0.5-py3-none-any.whl

Download URL lumaapi-0.0.5-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
739537c71ae3da9203ab93854582f82f6fad4e85a48f2877f5f098c00352f904
BLAKE2b-256 checksum
How to use checksums
7ded04b047305452f897257b7e28507e9874d1ef509d624f3f2a4a5506f84bdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page