Metadata-Version: 2.1
Name: dronebl
Version: 0.1.0
Summary: library to add, lookup and remove entries from DroneBL
Home-page: https://github.com/jesopo/pydronebl
Author: jesopo
Author-email: pip@jesopo.uk
License: UNKNOWN
Description: # pydronebl
        
        ## usage
        
        The RPC key, IP and ID below are fake.
        
        ### looking up an IP
        
        returns `None` if not found
        ```
        >>> from dronebl import DroneBL
        >>> d = DroneBL("04efa460cf244b6e88d9d2b8c31eb953")
        >>> r = d.lookup("198.51.100.123")
        >>> r
        Lookup(id=3174874, type=19, datetime=2020-08-21T10:18:44, comment='abused VPN (connect verified)')
        ```
        
        ### adding an IP
        ```
        >>> d.add("198.51.100.123", 19, "abused VPN (connect verified)")
        (True, 'Added 198.51.100.123')
        >>> d.add("198.51.100.123", 19, "abused VPN (connect verified)")
        (False, 'You already reported 198.51.100.123 as type 19')
        ```
        
        ### removing an IP
        ```
        >>> d.remove(3174874)
        (True, 'Removed 3174874')
        >>> d.remove(3174874)
        (False, '3174874 already delisted')
        ```
        
        ### async
        
        identical methods are offered on the async version of `DroneBL`, `AsyncDroneBL`
        
        ```
        >>> from dronebl import AsyncDroneBL
        >>> d = AsyncDroneBL("04efa460cf244b6e88d9d2b8c31eb953")
        >>> r = await d.lookup("198.51.100.123")
        >>> r
        Lookup(id=3174874, type=19, datetime=2020-08-21T10:18:44, comment='abused VPN (connect verified)')
        ```
        
        ## contact
        
        Come say hi at [##jess on freenode](https://webchat.freenode.net/?channels=%23%23jess)
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.6
Description-Content-Type: text/markdown
