semvec/pypi-packages huggingface dataset:
okaeri-sdk 1.2.4
Okaeri Services SDK
License: MIT

# Okaeri SDK for Python (3.7+)
Currently supported services:
- [OK! AI.Censor](#ok-aicensor)
- [OK! No.Proxy](#ok-noproxy)

Full documentation available on [wiki.okaeri.eu](https://wiki.okaeri.eu/) in:
- [Polish](https://wiki.okaeri.eu/pl/sdk/python)
- [English](https://wiki.okaeri.eu/en/sdk/python)

## Installation
```bash
pip install okaeri-sdk==1.*
```

## Example usage
### OK! AI.Censor
See full docs in: [Polish](https://wiki.okaeri.eu/pl/sdk/python#ok-aicensor), [English](https://wiki.okaeri.eu/en/sdk/python#ok-aicensor)
```python
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](https://wiki.okaeri.eu/pl/sdk/python#ok-noproxy), [English](https://wiki.okaeri.eu/en/sdk/python#ok-noproxy)
```python
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)}")
```
mkimgproxy 0.4
Generates URL for imgproxy image processing server
License: MIT
Keywords: imgproxy image

############
mkimgproxy
############

Generates URL for imgproxy image processing server

Use following command line to generate IMGPROXY_KEY and IMGPROXY_SALT

.. code:: bash

    echo $(xxd -g 2 -l 64 -p /dev/random | tr -d '\n')

.. code:: python

    from mkimgproxy import ImgProxy

    IMGPROXY_URL = "http://my-imgproxy-server/path"
    IMGPROXY_KEY = "9cbc4f564037858e5b9f2304f8540aa606943bddeaecb00a0b4a498092d0d65c079e291d3a2ddceafd23f1a29bb914fbf91a8464515826bb6a9f609800781182"
    IMGPROXY_SALT = "3dae9fbe7138431c57d59625d19175901df23786b1b8b6c65a39a0ac26f344809478bb3c7f6a838a1a45dbe123f85a16d8ce74c2f595cbf61d12a8470c588201"

    imgProxy = ImgProxy(IMGPROXY_KEY, IMGPROXY_SALT, IMGPROXY_URL)
    resizedImageUrl = imgProxy.generate("http://example.com/images/curiosity.jpg", {
        "s": "800:500", "rt": "fit", "g": "sm", "q": 70, "sm": "true"}, "jpeg")

    print(resizedImageUrl)
bilibiliupload 0.2.4
Upload video to bilibili under command-line interface
License: MIT
Keywords: bilibili,upload

# bilibiliupload
[![image](https://img.shields.io/pypi/v/bilibiliupload.svg)](https://pypi.org/project/bilibiliupload/)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fcomwrg%2Fbilibiliupload.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fcomwrg%2Fbilibiliupload?ref=badge_shield)

Upload video to bilibili under command-line interface

## Installation
```
pip3 install bilibiliupload
```

## How to use
```python
from bilibiliupload import *

b = Bilibili()
b.login(...)
b.upload(...)

```
More details see [source code](https://github.com/comwrg/bilibiliupload/tree/master/bilibiliupload)

## Why not log print
```python
import logging
logging.basicConfig()
```
More details see python logger docs

## Credits
* Thanks `KAAAsS` provides [Login API](http://docs.kaaass.net/showdoc/web/#/2?page_id=12)
* Refer Login API from [Dawnnnnnn/bilibili-live-tools](https://github.com/Dawnnnnnn/bilibili-live-tools), Thanks a lot



## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fcomwrg%2Fbilibiliupload.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fcomwrg%2Fbilibiliupload?ref=badge_large)