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
- Create an account
- Create an API Key
- 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
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
Built Distribution
Hashes for mojoperception-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6538599e08a48fbc2b1e020d33282d192b396413a75b988bb81c467e26416ac4 |
|
MD5 | c3e3d2528f192976af92fc2f88ad5d44 |
|
BLAKE2b-256 | 835eb103dec704d7fc9f52c919172243afd16fe452dfa5142a0f0cf686505b42 |