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

Uploaded Python 3

File details

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

File metadata

  • Download URL: okaeri-sdk-1.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ba2f4b3381e3a726c42b3d7830852702ff839042ffa6a1e90faee59672ef04d5
MD5 ca8ac51dfecf36ac87f5761c3711807f
BLAKE2b-256 72c509d6bd34ff0011be4f0a162527ece7fa11d51c212060e7750cf40051d350

See more details on using hashes here.

File details

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

File metadata

  • Download URL: okaeri_sdk-1.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97af584b4cb1b229d5d342fdfc372ba8a8e83f143eff824674ff46a83a1ab1fd
MD5 560c4645e57f68e304ad9f5ee24374a6
BLAKE2b-256 58eeaf04bc1dd6b7fab088b83006cd599bda290b55d2cdf27bd273fd1ce81f91

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