Python client library for accessing PicPurify moderation API
Project description
picpurify-python-client
Python client library for accessing PicPurify moderation API.
Before starting
Please make sure you have created an account on https://www.picpurify.com/signup.html to collect your personal API key.
Your personnal API key can be found in your dashboard in the "API keys" tab: https://www.picpurify.com/apikey.html
Installation
pip install picpurify
Usage
#### 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('https://s3-eu-west-1.amazonaws.com/site-picpurify/images/porn-accepted-example.jpg')
if response["final_decision"] == "OK":
print('Image Accepted')
else:
print('Image Rejected')
print('Reject criteria: %s' % (','.join(response["reject_criteria"])))
Documentation
API documentation can be found at https://www.picpurify.com/api-services.html.
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.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for picpurify-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e48c703bbae3e2b06cbdcaff757543e739de58138859ebcfc6635de9c456643 |
|
MD5 | 938815a613273ae50f3d877bf32fe09e |
|
BLAKE2b-256 | cf6bf8d29a188e595101bf88c7fdc62a0a73a9ba05aca4930782e019b8de38bc |