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
File details
Details for the file mojoperception-2.0.0.tar.gz
.
File metadata
- Download URL: mojoperception-2.0.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caf2ffd6677693fb455059c2421d4acaeccca6338d2c2e657e90ab75a34a9826 |
|
MD5 | eb8daad95bd3f7ed0292d9eb8a455ec6 |
|
BLAKE2b-256 | 4745ca4abbc1e6f069141b83f647d8de38bc8f74516320ba740b25a996f2baa8 |
File details
Details for the file mojoperception-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: mojoperception-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c734df489f7c895bbd5550f68de011c6483c1237372a4049d333c95f16a56fc7 |
|
MD5 | 7acf383ffd09d8106d1d3570a96df181 |
|
BLAKE2b-256 | fc939b189040213f39e57a4420064b92e9c30ddfd1490ddcba86d6d955fb92be |