A thin wrapper around requests to interact with the Simple Intel Platform (SIP).
Project 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 GET request
print(sip_client.get('indicators/status'))
# Adding an indicator and ignoring any 409 Conflict error if the indicator already exists.
try:
data = {'type': 'IP', 'value': '127.0.0.1'}
sip_client.post('indicators', data)
except pysip.ConflictError:
pass
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 GET request
print(sip_client.get('indicators/status'))
# Adding an indicator and ignoring any 409 Conflict error if the indicator already exists.
try:
data = {'type': 'IP', 'value': '127.0.0.1'}
sip_client.post('indicators', data)
except pysip.ConflictError:
pass
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
pysip-1.0.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
pysip-1.0.1-py3-none-any.whl
(4.2 kB
view hashes)