Skip to main content

Okaeri Services SDK

Project description

Okaeri SDK for Python (3.7+)

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.4.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.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: okaeri-sdk-1.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 1cbf79ffc119f421a828a28f35f7b1d7246d03864a9b529ae4e39258df737b9b
MD5 2578212aa057c7751affd290dedfc538
BLAKE2b-256 7e46e95c74fa9b84dfcfac7a8804c93ac041324466b6589c672ffde8d986a79e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: okaeri_sdk-1.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 106073ee970520778b7909587c025762fcc88f766812cca0635a4ee3a5562267
MD5 15ce6c2cc1e92421d1512c64343edf5d
BLAKE2b-256 4ab2b61c874d5220191a8a93886699113c711dd3d7b68ec046bdb6c7a0af49dc

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