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.4.1.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for move_ugc_python-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b48d7a680836be2b01ae6f4828bb6ed442f883b9c78a42de008e5b5e0bcefd8 |
|
MD5 | ef58d93e970728bc7709b3e75298d5e3 |
|
BLAKE2b-256 | 77d060e876d2525c47c496f3032e39c67b09cad65919d52bbc3fa4b6aa417fea |