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-2.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

mojoperception-2.0.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for mojoperception-2.0.0.tar.gz
Algorithm Hash digest
SHA256 caf2ffd6677693fb455059c2421d4acaeccca6338d2c2e657e90ab75a34a9826
MD5 eb8daad95bd3f7ed0292d9eb8a455ec6
BLAKE2b-256 4745ca4abbc1e6f069141b83f647d8de38bc8f74516320ba740b25a996f2baa8

See more details on using hashes here.

File details

Details for the file mojoperception-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mojoperception-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c734df489f7c895bbd5550f68de011c6483c1237372a4049d333c95f16a56fc7
MD5 7acf383ffd09d8106d1d3570a96df181
BLAKE2b-256 fc939b189040213f39e57a4420064b92e9c30ddfd1490ddcba86d6d955fb92be

See more details on using hashes here.

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