Metadata-Version: 2.1
Name: picpurify
Version: 1.0.4
Summary: Python client library for accessing PicPurify moderation API
Home-page: https://www.picpurify.com
Author: Romain Cousseau
Author-email: romain.cousseau@picpurify.com
License: MIT license
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
        
        ```bash
        pip install picpurify
        ```
        
        ## Usage
        
        ```python
        from picpurify.api import PicPurifyImage, PicPurifyException
        
        image_client = PicPurifyImage('YOUR_PERSONAL_API_KEY', ['porn_moderation', 'gore_moderation', 'obscene_gesture_moderation'])
        
        try:
            response = image_client.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'])))
        except PicPurifyException as e:
            print(e)
        ```
        
        ## Documentation
        
        API documentation can be found at <https://www.picpurify.com/api-services.html>.
        
        
Platform: UNKNOWN
Requires-Python: >=2.7
Description-Content-Type: text/markdown
