Skip to main content

Python client library for accessing PicPurify moderation API

Project description


Python client library for accessing PicPurify moderation API.

Before starting

Please make sure you have created an account on to collect your personal API key.

Your personnal API key can be found in your dashboard in the "API keys" tab:


pip install picpurify


from picpurify.api import PicPurifyImage, PicPurifyException

image_client = PicPurifyImage('YOUR_PERSONAL_API_KEY', ['porn_moderation', 'gore_moderation', 'obscene_gesture_moderation'])

    response = image_client.analyse('')
    if response['final_decision'] == 'OK':
        print('Image Accepted')
        print('Image Rejected')
        print('Reject criteria: %s' % (','.join(response['reject_criteria'])))
except PicPurifyException as e:


API documentation can be found at

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

picpurify-1.0.4.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

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