Skip to main content

AnyMotion SDK for Python

Project description

AnyMotion Python SDK

PyPi CircleCI codecov

AnyMotion SDK for Python.

Installation

Install using pip:

$ pip install anymotion-sdk

Usage

Set the client id and client secret issued by the AnyMotion Portal.

from anymotion_sdk import Client

# Setup client
client = Client(client_id="your_client_id", client_secret="your_client_secret")

# Upload image file
upload_result = client.upload("image.jpg")

# Extract keypoint
keypoint_id = client.extract_keypoint(image_id=upload_result.image_id)
extraction_result = client.wait_for_extraction(keypoint_id)

# Get keypoint data from result
keypoint = extraction_result.json

# Get keypoint data from keypoint_id
keypoint = client.get_keypoint(keypoint_id)

Example

See AnyMotion Examples.

Change Log

See CHANGELOG.md.

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

anymotion-sdk-1.0.1.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

anymotion_sdk-1.0.1-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

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