# 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')
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')
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.2.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pysip-1.0.2-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file pysip-1.0.2.tar.gz.
File metadata
- Download URL: pysip-1.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e9d99b9777a2937942a4c706623c71b431fc4d06e36dc3d96cf5a9d844526ab
|
|
| MD5 |
c1f27d40bcdd96191298a69acd6f37a8
|
|
| BLAKE2b-256 |
ba96e540ef27dec1416f87d014fb4229d1231b9843271ab790d0e243c5368148
|
File details
Details for the file pysip-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pysip-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a6154a2dc19687430467fc097df5a3e1e98334fbb40ecebcdf2b31d083715d2
|
|
| MD5 |
976b98bc12d9db2cac077b4abf4eb9ad
|
|
| BLAKE2b-256 |
630abd8ad46525324d040d5955e4ea3a05bbc5f4db8e38c69152b12014a0eaf2
|