No project description provided
Project description
Move UGC Python SDK
Full documentation
The full documentation is available at https://move-ai.github.io/move-ugc-python/latest/
Installation
With pip:
pip install move-ugc-python
With poetry:
poetry add move-ugc-python
Initialize with your API key
from move_ugc import MoveUgc
ugc = MoveUgc(api_key='<API_KEY>')
Create a file and upload to move.ai
video_file = ugc.files.create(file_type="mp4")
depth_file = ugc.files.create(file_type="move")
presigned_url = video_file['presigned_url']
filename = "<path to file on disk>"
with open(filename, 'rb') as f:
requests.put(presigned_url, data=f.read())
presigned_url = depth_file['presigned_url']
filename = "<path to file on disk>"
with open(filename, 'rb') as f:
requests.put(presigned_url, data=f.read())
Retrieve a file
video_file = ugc.files.retrieve(file_id="<FILE_ID>")
Create a take
take = ugc.takes.create_singlecam(
sources=[
SourceIn(
device_label="my-device",
file_id=video_file.id,
format=video_file.type
)])
ugc.jobs.create(take_id=take.id)
Create a job
job = ugc.jobs.create(take_id=take.id)
Contribution Guide
Information for how someone can contribute to this project can be found in our documentation
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
move_ugc_python-1.6.0.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for move_ugc_python-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b21a9cc915905c6dde814316b4e530b73e025ca778590bcd0358fdc78a2abd2a |
|
MD5 | 5237235c4af928d577ea17947fb7a357 |
|
BLAKE2b-256 | 8a50d938df37c5ae5d5027bc1723b1ed3d61d544587ad47bf46e06c84024a932 |