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


#### Check image safety
from picpurify.api import PicPurifyImage

client_image = PicPurifyImage('YOUR_PERSONAL_API_KEY',['porn_moderation','gore_moderation','obscene_gesture_moderation'])
response = client_image.analyse('')
if response["final_decision"] == "OK":
    print('Image Accepted')
    print('Image Rejected')
    print('Reject criteria: %s' % (','.join(response["reject_criteria"])))


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.

Files for picpurify, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size picpurify-1.0.3-py2-none-any.whl (7.0 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size picpurify-1.0.3.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page