Skip to main content

library to add, lookup and remove entries from DroneBL

Project 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, 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')

contact

Come say hi at ##jess on freenode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dronebl-0.0.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

dronebl-0.0.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page