Metadata-Version: 2.1
Name: querycontacts
Version: 2.0.0
Summary: Query network abuse contacts on the command-line for a given ip address on abuse-contacts.abusix.zone
Home-page: https://github.com/abusix/querycontacts
Author: abusix
Author-email: fp@abusix.com
License: GNU General Public License v3 (GPLv3)
Project-URL: Source, https://github.com/abusix/querycontacts
Project-URL: Company, https://www.abusix.com/
Description: [![Build Status](https://img.shields.io/github/workflow/status/abusix/querycontacts/test%20querycontacts/master)](https://github.com/abusix/querycontacts/actions/)
        [![PyPi Version](https://img.shields.io/pypi/v/querycontacts.svg)](https://pypi.python.org/pypi/querycontacts)
        [![PyPi License](https://img.shields.io/pypi/l/querycontacts.svg)](https://pypi.python.org/pypi/querycontacts)
        [![PyPi Versions](https://img.shields.io/pypi/pyversions/querycontacts.svg)](https://pypi.python.org/pypi/querycontacts)
        [![PyPi Wheel](https://img.shields.io/pypi/wheel/querycontacts.svg)](https://pypi.python.org/pypi/querycontacts)
        
        # querycontacts - Query Abuse Contacts
        
        ## Installation
        
        ```
        pip install querycontacts
        ```
        
        Starting with version 2.0.0 support for python 2.7 is dropped. This is related to dnspython 2.0.0 also dropping support.
        
        ## 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.zone
        --version            show program's version number and exit
        ```
        
        ### Examples
        
        Show version:
        
        ```
        $ querycontacts --version
        querycontacts 2.0.0
        ```
        
        Show abuse contact for your IP:
        
        ```
        $ IP=$(curl ipecho.net/plain)
        $ querycontacts $IP
        abuse@yourisp.example.com
        ```
        
        Test response for localhost:
        
        ```
        $ querycontacts 127.0.0.1
        Abusix ContactDB Test point
        ```
        
        ## 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']
        ```
        
Keywords: contact,query,dns,abuse contact,abuse,abusix,network
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Customer Service
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Security
Requires-Python: >=3
Description-Content-Type: text/markdown
