Git Product home page Git Product logo

lumaapi-python's Introduction

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

lumaapi-python's People

Contributors

sxyu avatar aharwood9 avatar karanganesan avatar

Stargazers

 avatar Ai avatar  avatar  avatar 白树呐 avatar  avatar Eve avatar Samat Gatin avatar Rowan Aldean avatar Alex Lévy avatar  avatar id-2 avatar Ilya Nemihin avatar Zongbao Feng avatar James Shi avatar Jarrick avatar Eirik F. Wahl avatar Serial Chiller avatar shawlyu avatar  avatar Dave avatar nandroidj avatar  avatar TosHos avatar oleksandr.korol avatar  avatar Jade Cong avatar Seungtae avatar Alexander Kristoffersen avatar  avatar  avatar

Watchers

Amit Jain avatar  avatar  avatar  avatar

lumaapi-python's Issues

Failure

Here is my shell history

(/projects/gitlab/aiml/lumatest/env) sam@skylab:/projects/gitlab/aiml/lumatest$ luma credits
remaining: 10
used:      0
total:     10
(/projects/gitlab/aiml/lumatest/env) sam@skylab:/projects/gitlab/aiml/lumatest$ luma submit AIML_lab_colmap.zip "AIML_Lab"
Capture data {'title': 'AIML_Lab', 'camModel': 'normal'}
Created capture 0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
Uploading
Triggering
Submitted 0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
(/projects/gitlab/aiml/lumatest/env) sam@skylab:/projects/gitlab/aiml/lumatest$ luma status 0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
title:     AIML_Lab
type:      reconstruction
location:  null
privacy:   unlisted
date:      2024-05-09T04:11:15.000Z
username:  samhodge
status:    complete
slug:      0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
latestRun: {"status": "new", "progress": 0, "currentStage": "Queued", "artifacts": [], "pipelineVersion": 2}
uuid:      0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
(/projects/gitlab/aiml/lumatest/env) sam@skylab:/projects/gitlab/aiml/lumatest$ luma status 0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
title:     AIML_Lab
type:      reconstruction
location:  null
privacy:   unlisted
date:      2024-05-09T04:11:15.000Z
username:  samhodge
status:    complete
slug:      0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
latestRun: {"status": "dispatched", "progress": 0, "currentStage": "Preprocessing", "artifacts": [], "pipelineVersion": 2}
uuid:      0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
(/projects/gitlab/aiml/lumatest/env) sam@skylab:/projects/gitlab/aiml/lumatest$ luma credits
remaining: 9
used:      1
total:     10
(/projects/gitlab/aiml/lumatest/env) sam@skylab:/projects/gitlab/aiml/lumatest$ luma status 0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
title:     AIML_Lab
type:      reconstruction
location:  null
privacy:   unlisted
date:      2024-05-09T04:11:15.000Z
username:  samhodge
status:    complete
slug:      0fd4a6c1-c36e-477f-b83f-dac1fd0c963b
latestRun: {"status": "failed", "progress": 100, "currentStage": "Failed", "artifacts": [], "errorReason": "Our pipeline failed due to internal issues. Please report to our team.", "pipelineVersion": 2}
uuid:      0fd4a6c1-c36e-477f-b83f-dac1fd0c963b

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.