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

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.1
File Size Uploaded
querycontacts-1.0.1.tar.gz 16.0 kB Details

Built distribution (wheel)

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

Total release size: 21.9 kB

Release files / querycontacts-1.0.1.tar.gz

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

Release files / querycontacts-1.0.1-py3-none-any.whl

Download URL querycontacts-1.0.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fc33df2a358a1c9b46bafc5d77448314c37565a434014e41ea5085041bfe6c0
BLAKE2b-256 checksum
How to use checksums
e46e098b12e3e345446a356458d1c62dede3f3229758d55e683d032157c17656
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

1.0.2

2 release files

This release

1.0.1 This release

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