Luma AI captures API wrapper library and CLI (deprecated, please install lumaai for dream machine API)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lumaapi-0.0.5.tar.gz
.
File metadata
- Download URL: lumaapi-0.0.5.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16a18c038805b5448133e0ad39d5877bf08ccade68f4d2f871c2570b7f8defec |
|
MD5 | 3a8d943761a63e02c1f664a05fe8c8e6 |
|
BLAKE2b-256 | 9f3a81e2db886e168c6d73966326abe5dc82de83cefcbd1d10c438e791340b6c |
File details
Details for the file lumaapi-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: lumaapi-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 739537c71ae3da9203ab93854582f82f6fad4e85a48f2877f5f098c00352f904 |
|
MD5 | 8fe4babc3fef19f2ac70ba2bdf7f2751 |
|
BLAKE2b-256 | 7ded04b047305452f897257b7e28507e9874d1ef509d624f3f2a4a5506f84bdc |