Skip to main content

Python SDK for Crunchable.IO

Project description

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

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

crunchable-0.3.tar.gz (2.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page