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.0.0.tar.gz
(12.2 kB
view hashes)
Built Distribution
Close
Hashes for move_ugc_python-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 781c2c90ed82d944a432ea3abe606aeff034a8125f0ca54f1de458928dc46c84 |
|
MD5 | 0b16252dd15b137a5a2447e79303699d |
|
BLAKE2b-256 | 54fdd79f1bbb6be9917e3266ee6c41ea28cb28dde42da9c595e5ff84fbb4a86d |