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
Release files for mojoperception 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mojoperception-2.0.0.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mojoperception-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / mojoperception-2.0.0.tar.gz
| Download URL | mojoperception-2.0.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caf2ffd6677693fb455059c2421d4acaeccca6338d2c2e657e90ab75a34a9826
|
|
BLAKE2b-256 checksum How to use checksums |
4745ca4abbc1e6f069141b83f647d8de38bc8f74516320ba740b25a996f2baa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.1
|
Release files / mojoperception-2.0.0-py3-none-any.whl
| Download URL | mojoperception-2.0.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c734df489f7c895bbd5550f68de011c6483c1237372a4049d333c95f16a56fc7
|
|
BLAKE2b-256 checksum How to use checksums |
fc939b189040213f39e57a4420064b92e9c30ddfd1490ddcba86d6d955fb92be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.1
|