Skip to main content

Build Status Test Coverage PyPi Version PyPi License PyPi Versions PyPi Wheel

querycontacts - Query Abuse Contacts

ahocorapy is a pure python implementation of the Aho-Corasick Algorithm. Given a list of keywords one can check if at least one of the keywords exist in a given text in linear time.

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for querycontacts 1.0.2
File Size Uploaded
querycontacts-1.0.2.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for querycontacts 1.0.2
File Interpreter ABI Platform
querycontacts-1.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 34.2 kB

Release files / querycontacts-1.0.2.tar.gz

Download URL querycontacts-1.0.2.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
94f46e3f45c832efa410a9ff556ac95bb7ba692c4bd5628517d1e293f91826aa
BLAKE2b-256 checksum
How to use checksums
8ffb612b47baf116270aefbaf598fedd556bd2f6a7af90f464b0d08bff9ad8d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / querycontacts-1.0.2-py2.py3-none-any.whl

Download URL querycontacts-1.0.2-py2.py3-none-any.whl
Size 18.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ed35cbb28b8b151b1b273b30b15ea832f1f91952b0c2e83a70b70b1413404de5
BLAKE2b-256 checksum
How to use checksums
10df491aaf7697a416179e05f76871f6cc4fd97fcd77b15bc03b61215c498c1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.0.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page