Python client for Sniffcat API.
Project description
sniffcat
Python client for the Sniffcat IP reputation and abuse reporting API.
Features
- Fetch blacklist of suspicious IPs
- Check reputation and abuse score for any IP
- View reports about IP activity
- Report suspicious IPs (e.g., for port scanning)
Installation
pip install sniffcat
Usage
from sniffcat import SniffcatClient
# Initialize the client with your API token
client = SniffcatClient("your_api_token")
# Example 1: Get blacklist with default confidence
blacklist = client.get_blacklist()
print("Blacklist:", blacklist)
# Example 2: Get blacklist with custom confidence
blacklist_80 = client.get_blacklist(confidence_min=80)
print("Blacklist (confidence >= 80):", blacklist_80)
# Example 3: Check reputation and abuse score for an IP
ip_info = client.check_ip("1.1.1.1")
print("IP info:", ip_info)
# Example 4: Get reports for an IP
reports = client.get_ip_reports("1.1.1.1")
print("IP reports:", reports)
# Example 5: Report an IP for port scanning with default comment
result = client.report_ip_port_scan("1.1.1.1")
print("Report result:", result)
# Example 6: Report an IP for port scanning with custom comment
result_custom = client.report_ip_port_scan("1.1.1.1", comment="Suspicious port scan detected from this IP")
print("Custom report result:", result_custom)
API Documentation
See full API docs at https://sniffcat.com/documentation/api
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
sniffcat-0.1.5.tar.gz
(2.7 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
File details
Details for the file sniffcat-0.1.5.tar.gz.
File metadata
- Download URL: sniffcat-0.1.5.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
344522597c752b3a734405dc98b9a9f0428ee12ecfa14ab9ca5a042dcee2cccd
|
|
| MD5 |
12d42a8ab0fc4f025d6ec70c82a02c4e
|
|
| BLAKE2b-256 |
4e983fa3ad94504aea9d757c89c6d2b11b21b4cfe2f83c9ba9905abd1738c8af
|
File details
Details for the file sniffcat-0.1.5-py3-none-any.whl.
File metadata
- Download URL: sniffcat-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a5c43935025588fd03ec7d6d5a1dab33826c99d48feeff44c984ecb58b89c43
|
|
| MD5 |
14dafc8ca952a90126f4a505e9dfb3b8
|
|
| BLAKE2b-256 |
ca8040942854b41917e3b8087af6662e1bd1cf9f7dd4f7a9b4a6922acdf2b584
|