Okaeri Services SDK
Project description
Okaeri SDK for Python
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.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file okaeri-sdk-1.2.1.tar.gz.
File metadata
- Download URL: okaeri-sdk-1.2.1.tar.gz
- Upload date:
- Size: 3.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02c5c2dd85c9b3ab40ee5bd3a791d2bb20cab9034741fe1ac4300d24d856dcf3
|
|
| MD5 |
46fd4914edc750f6e0c4030f0bf3dd61
|
|
| BLAKE2b-256 |
ff6dec62a5697222368dc388d7eb773c6b805e588db2ca1d0278253615e80a75
|
File details
Details for the file okaeri_sdk-1.2.1-py3-none-any.whl.
File metadata
- Download URL: okaeri_sdk-1.2.1-py3-none-any.whl
- Upload date:
- Size: 5.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bc1daf14e36124c130f32bfaf816d596caa3c1ee3aa92cea88e765b36753136
|
|
| MD5 |
c951c30378d74a0988244d0910fabd43
|
|
| BLAKE2b-256 |
0f668b9dffe992e3ca07daa791bfdf5a10afd17585f2491e007cc072074d7260
|