Metadata-Version: 2.1
Name: pysip
Version: 1.0.3
Summary: A thin wrapper around requests to interact with the Simple Intel Platform (SIP).
Home-page: https://github.com/IntegralDefense/pysip
Author: Matthew Wilson
Author-email: automationator@runbox.com
License: Apache 2.0
Description: # pysip
        A thin wrapper around requests to interact with the Simple Intel Platform (SIP).
        
        ## Usage
        
        	import pysip
        
            # Connect to SIP
        	sip_client = pysip.Client('localhost:4443', '11111111-1111-1111-1111-111111111111', verify=False)
        		
        	# Example POST request
        	# Add an indicator and ignore any 409 Conflict error if the indicator already exists.
        	try:
        	    data = {'type': 'IP', 'value': '127.0.0.1'}
        	    sip_client.post('/api/indicators', data)
        	except pysip.ConflictError:
        	    pass
        
            # Example GET request
            # Get all of the indicators with the "Analyzed" status in "bulk" mode.
            indicators = sip_client.get('/api/indicators?status=Analyzed&bulk=true')
            
            # Example PUT request
            # Update an indicator's status.
            data = {'status': 'Informational'}
            result = sip_client.put('/api/indicators/1', data)
            
            # Example DELETE request
            # Delete an indicator.
            result = sip_client.delete('/api/indicators/1')
Keywords: pysip
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Description-Content-Type: text/markdown
