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_singlecam(take_id=take.id)

Create a job

    job = ugc.jobs.create_singlecam(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-4.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

move_ugc_python-4.1.0-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: move_ugc_python-4.1.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for move_ugc_python-4.1.0.tar.gz
Algorithm Hash digest
SHA256 b209bd909a96ebd1a7e06fca81561f74b6199a4da213a0a7242537d96bb49eb0
MD5 419a6178b79e59a56fd4075c60de24fe
BLAKE2b-256 6c1ef1c3a9ff36a44e6d3fef2bc12e1e5cdeeba0f94d9e17cf823c4b76129ec2

See more details on using hashes here.

Provenance

The following attestation bundles were made for move_ugc_python-4.1.0.tar.gz:

Publisher: release.yml on move-ai/move-ugc-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for move_ugc_python-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0318e38a730bc1bfefaab74a0e289fdd88e2cd618d17c1bb03075c1766ad581
MD5 c283cb72d603e48e55de8560bb6d255a
BLAKE2b-256 8cf8f77ce90c60885eff5cb5ef9b5af8c415aa5ec7c535708faa80afd1c13035

See more details on using hashes here.

Provenance

The following attestation bundles were made for move_ugc_python-4.1.0-py3-none-any.whl:

Publisher: release.yml on move-ai/move-ugc-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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