crunchable-0.3
توضیحات
Python SDK for Crunchable.IO
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | crunchable-0.3 |
| نام | crunchable |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Crunchable.IO |
| ایمیل نویسنده | admin@crunchable.io |
| آدرس صفحه اصلی | UNKNOWN |
| آدرس اینترنتی | https://pypi.org/project/crunchable/ |
| مجوز | UNKNOWN |
Crunchable.IO
-------------
This package is a thin wrapper around the crunchable.io_ API
Example usage::
>>> from crunchable import Crunchable
>>> client = Crunchable(YOUR_API_KEY)
>>> request = client.request_multiple_choice(instruction="Is this image safe for kids?", choices=["Safe", "Not Safe!"], attachments_type="image", attachments=['http://i.dailymail.co.uk/i/pix/2015/09/30/20/2CD2A9C700000578-3255251-Tom_and_Jerry_take_note_this_is_how_a_cat_and_mouse_can_get_on_a-a-87_1443640290328.jpg'], min_choices=1, max_choices=1)
>>> response = client.wait_for_task(request['id'])
>>> print response['response']
For more information, refer to the Crunchable.IO API docs_
.. _crunchable.io: http://crunchable.io
.. _docs: http://crunchable.io/docs/
نحوه نصب
نصب پکیج whl crunchable-0.3:
pip install crunchable-0.3.whl
نصب پکیج tar.gz crunchable-0.3:
pip install crunchable-0.3.tar.gz