Skip to main content

Mojo Perception Python API

Project description

Mojo Perception Python API

Use Mojo Perception API as a Python module for Python applications.

Installation

If you use pip, install mojo-perception-python module:

pip install mojoperception

API Key

To use properly the API, you need an API key. Just go get one here : https://app.mojo.ai/register

  1. Create an account
  2. Create an API Key
  3. Follow the steps below to use it in your first app.

Usage

import mojoperception

from mojoperception.mojo_perception_api import MojoPerceptionAPI

Create an object MojoPerceptionAPI:

mojo_perception = MojoPerceptionAPI('<api_key>')

Expiration of MojoPerceptionAPI object is by default 360 seconds. You can set it using "expiration" parameter in constructor.

Checkout the Tutorials

💡   Have a look to the tutorials section

Troubleshooting

1️⃣   If you face a "JsonWebTokenError", maybe that's because of the expiration. You can try to increase the user token duration to match your need. Default value of 360 seconds might be too short.

mojo-perception-python 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

mojoperception-1.0.11.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

mojoperception-1.0.11-py3-none-any.whl (6.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