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')
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.3.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.3-py3-none-any.whl
(7.2 kB
view details)
File details
Details for the file pysip-1.0.3.tar.gz.
File metadata
- Download URL: pysip-1.0.3.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 |
afc7523ad8980cb272b02ceaf1a26c2484a596ef5dac41941cb71801280e4009
|
|
| MD5 |
1fc7dcf1dc8b0538cfe6e16e720d0d21
|
|
| BLAKE2b-256 |
c3f6f6d898c891423e89932c28da25b329c9f82bd8d066a0d1457871bc955eeb
|
File details
Details for the file pysip-1.0.3-py3-none-any.whl.
File metadata
- Download URL: pysip-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.2 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 |
3566c0fe3f226808ec2e0b7188415c25388b723af38abf4898a246599d3d3be1
|
|
| MD5 |
92727a3cdb16bd52be32d33f971c26a4
|
|
| BLAKE2b-256 |
4b027ee8d00f98c981777b19720dcb40d635c8b1a9b9cb457623cf2ec7b5d407
|