Skip to main content

Luma AI API wrapper library and CLI

Project description

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

Project details


Download files

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

Source Distribution

lambdalumaapi-0.0.5.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file lambdalumaapi-0.0.5.tar.gz.

File metadata

  • Download URL: lambdalumaapi-0.0.5.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for lambdalumaapi-0.0.5.tar.gz
Algorithm Hash digest
SHA256 128376894e342c06f71bef0e2f7733d4b0130396fd282af2fff5ed14b0513d37
MD5 6983ec20e7cd335a764bb4fca0dfe297
BLAKE2b-256 b94d4f0ae3a71295c69874f991a70048379b2a8bd256f76cdee6e0d30e0aec5f

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