Skip to main content

No project description provided

Project description

Move UGC Python SDK

wemake-python-styleguide Python version Tests Coverage CI Documentation Style

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


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.1.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

move_ugc_python-1.6.1-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file move_ugc_python-1.6.1.tar.gz.

File metadata

  • Download URL: move_ugc_python-1.6.1.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for move_ugc_python-1.6.1.tar.gz
Algorithm Hash digest
SHA256 0184e7ceb8fcd9c3091acbd26f33218eb460d1d6a917b0e3e30ceebaa8ce57b7
MD5 3c20a8849576ed4bb8879679af8d581f
BLAKE2b-256 7830cd86331761edf138dad217d0d5d7c389c1d61e39b6706a2cf25633dbf120

See more details on using hashes here.

File details

Details for the file move_ugc_python-1.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for move_ugc_python-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6b38c6efdd730a64908a0fdda23e42156bcb28aa18beacd003bf95457c3ae03
MD5 3ada65fc2ac6166bbdae8c4ff19c3c9f
BLAKE2b-256 21db4ebcbf28cd9d6f699c0ac513f5e9eac4977208c09109c29281a8bb5c231f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page