Skip to main content

Okaeri Services SDK

Project description

Okaeri SDK for Python (3.6+)

Currently supported services:

Full documentation available on wiki.okaeri.eu in:

Installation

pip install okaeri-sdk==1.*

Example usage

OK! AI.Censor

See full docs in: Polish, English

from okaeri_sdk import AiCensor
from okaeri_sdk.client import OkaeriError
from okaeri_sdk.aicensor import AiCensorError

try:
    aicensor = AiCensor(f"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
    prediction = aicensor.get_prediction("o cie k u r//w@!")
    swear = prediction.general.swear
    print(f"swear: {swear}")
except (OkaeriError, AiCensorError) as e:
    print(f"Error: {str(e)}")

OK! No.Proxy

See full docs in: Polish, English

from okaeri_sdk import NoProxy
from okaeri_sdk.client import OkaeriError
from okaeri_sdk.noproxy import NoProxyError

try:
    noproxy = NoProxy(f"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
    info = noproxy.get_info("1.1.1.1")
    proxy = info.risks.proxy
    verify = info.suggestions.verify
    block = info.suggestions.block
    print(f"proxy: {proxy}, verify: {verify}, block: {block}")
except (OkaeriError, NoProxyError) as e:
    print(f"Error: {str(e)}")

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

okaeri-sdk-1.2.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

okaeri_sdk-1.2.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file okaeri-sdk-1.2.2.tar.gz.

File metadata

  • Download URL: okaeri-sdk-1.2.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for okaeri-sdk-1.2.2.tar.gz
Algorithm Hash digest
SHA256 19bfc420d27697b597a02d7bab9d1e327d1b8085449395d60f1ff198ad2ac9c0
MD5 812810e03345f6cf25d173efebe67f52
BLAKE2b-256 abff6feb849396fcb389c777f3d27bd613dea1fcedd1b1366579cde51331667e

See more details on using hashes here.

File details

Details for the file okaeri_sdk-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: okaeri_sdk-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for okaeri_sdk-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 789a952e4e688dec5100d8dc8b64e88c60ac81fef12622cbb042032b629747b7
MD5 0a40a654624054f39bda7e3eb793f43a
BLAKE2b-256 85e3d832937bdf5a4d2611b0f03c6e72eaf53073eba193db201fd58be04a03aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page