querycontacts - Query Abuse Contacts
Installation
pip install querycontacts
Command line usage
usage: querycontacts [-h] [--provider PROVIDER] [--version] ip
QueryContact - Find the Abuse contact for a IP address
positional arguments:
ip query network abuse contacts for a given ip address
optional arguments:
-h, --help show this help message and exit
--provider PROVIDER change standard network abuse contacts provider.
Defaults to abuse-contacts.abusix.org
--version show program's version number and exit
Examples
Show version:
$ querycontacts --version querycontacts 1.0.0
Show abuse contact for your IP:
$ IP=$(curl ipecho.net/plain) $ querycontacts $IP abuse@yourisp.example.com
Error when no abuse contact was found:
$ querycontacts 127.0.0.1 querycontacts: error: no contacts for 127.0.0.1
Library usage
>>> from querycontacts import ContactFinder
>>> qf = ContactFinder()
>>> qf.find('127.0.0.2')
['root@localhost', 'abuse@localhost']
>>> qf.find('::ffff:7f00:2')
['root@localhost']
Metadata
Release files for querycontacts 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| querycontacts-1.0.3.tar.gz | 15.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| querycontacts-1.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 33.9 kB
Release files / querycontacts-1.0.3.tar.gz
| Download URL | querycontacts-1.0.3.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26f56750b34f727ccff25aee788bd0de58583c8c859cf86952793cbc16aa601c
|
|
BLAKE2b-256 checksum How to use checksums |
27013010b80d8070c58f0f631bb86457d73d61f85cbf47ab6b590147ac625724
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / querycontacts-1.0.3-py2.py3-none-any.whl
| Download URL | querycontacts-1.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9715957363419a805213e60b0124eebc40f2d5d353d059beac3462f8a9249714
|
|
BLAKE2b-256 checksum How to use checksums |
52cc576cfe41a31878f070ea6c30d629835320edbe8af6ac16ce6bfb28b6ff46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |