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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mojoperception-1.0.11.tar.gz.

File metadata

  • Download URL: mojoperception-1.0.11.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for mojoperception-1.0.11.tar.gz
Algorithm Hash digest
SHA256 f729d6801c7e3073c30f78c220ab5008dcdf3ed8f5e53b2e095a56ef631b82d3
MD5 d3f5fa3f2a7bc9bce529598e7c62c21d
BLAKE2b-256 a311c967e910f1558822c06055963765edf9a74754109c5913759ac2215eccd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mojoperception-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for mojoperception-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6538599e08a48fbc2b1e020d33282d192b396413a75b988bb81c467e26416ac4
MD5 c3e3d2528f192976af92fc2f88ad5d44
BLAKE2b-256 835eb103dec704d7fc9f52c919172243afd16fe452dfa5142a0f0cf686505b42

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