{ "info": { "author": "Valentin Secades M.", "author_email": "vsecades@qxdev.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools" ], "description": "# AbuseIpDb\n### Wrapper around the AbuseIPDb service API\n\nThis was a project born of having to do this in an automated fashion for our internal systems, and not finding a decent Python 2.7 package worth installing.\n\nIn order to use it, all you need to do is:\n\n```python\nimport abuseipdb\n```\nOnce imported into your project, configure the API key for further use (you need to sign up for a webmaster account for this):\n\n```python\nabuseipdb.configure_api_key(\"[API KEY]\")\n```\nThis just updates the internal api key value in use. Update that as needed if you need to report into multiple accounts over the course of your script.\n\nFollowing that, there are 3 main methods for use within the module. They are modelled against the AbuseIPDb API. These methods are:\n\ncheck_ip\n```python\nabuseip.check_ip(ip=\"[IP]\",days=\"[DAYS]\")\n```\n\ncheck_cidr\n```python\ncheck_cidr(cidr=\"[CIDR]\",days=\"[DAYS]\")\n```\n\nreport_ip\n```python\nreport_ip(categories=\"[CATEGORIES]\", comment=\"[OPTIONAL COMMENT]\", ip=\"[IP]\")\n```\nOut of these 3 methods, the parameters follow the rules set forth by AbuseIPDb posted here:\n\n[Abuse IP DB API](https://www.abuseipdb.com/api.html \"Abuse IP DB API\")\n\n| Field | Required | Default | Example | Description |\n| ------------ | ------------ | ------------ | ------------ | ------------ |\n| [IP] | Y | NA | 8.8.8.8 | IPv4 Address |\n| [DAYS] | N | 30 | 30 | Check for IP Reports in the last 30 days. |\n| [CIDR] | Y | NA | 207.126.144.0/20 | IPv4 Address Block in CIDR notation |\n| [CATEGORIES] | Y | NA | 10,12,15 | Comma delineated list of category IDs |\n| [OPTIONAL COMMENT] | N | NA | This is a comment. | Describe the type of malicious activity |\n| [API KEY] | Y | NA | Tzmp1...quWvaiO | Your API key. |\n\n\nSource code can be found here:\n\n####[AbuseIpDB Repository](https://github.com/vsecades/AbuseIpDb \"AbuseIpDB Repository\")\n----", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vsecades/AbuseIpDb", "keywords": "abuseipdb,blacklisting,ip reporting", "license": "", "maintainer": "", "maintainer_email": "", "name": "abuseipdb", "package_url": "https://pypi.org/project/abuseipdb/", "platform": "", "project_url": "https://pypi.org/project/abuseipdb/", "project_urls": { "Bug Reports": "https://github.com/vsecades/AbuseIpDb/issues", "Funding": "https://www.paypal.me/VSecades/5", "Homepage": "https://github.com/vsecades/AbuseIpDb", "Source": "https://github.com/vsecades/AbuseIpDb/" }, "release_url": "https://pypi.org/project/abuseipdb/1.3.0/", "requires_dist": null, "requires_python": "", "summary": "AbuseIPDb wrapper for IP checking and trouble reporting", "version": "1.3.0" }, "last_serial": 3804728, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "98d999862e4f596a0d55808761920ce8", "sha256": "1f8788364c376cf5adcfa27d312dc5e6917e2509ac10f1a9bd12cc68be58ee56" }, "downloads": -1, "filename": "abuseipdb-1.0.0.tar.gz", "has_sig": false, "md5_digest": "98d999862e4f596a0d55808761920ce8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4810, "upload_time": "2018-04-20T19:28:42", "url": "https://files.pythonhosted.org/packages/f1/55/e97d9328099ddae28bc0092c4732bc5b9954b936cbbcfac8e4385d7116cd/abuseipdb-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f2b9d43e2b32845f8954e621ecdeed03", "sha256": "6c3c14b6e32216d1703d7881d475d9fb078a56ba24e812ac2c3ae4354225b0da" }, "downloads": -1, "filename": "abuseipdb-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f2b9d43e2b32845f8954e621ecdeed03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5893, "upload_time": "2018-04-24T12:03:34", "url": "https://files.pythonhosted.org/packages/d7/43/55f941545633e8dc692e34a3382be64b9e545dc3ffcdb23f622f9d6ba598/abuseipdb-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "02642f7f8858c4e968671b1a481a4563", "sha256": "141d81de9cce74d6c4c9f838df72166aae23a0cacffbf32d2fd0bb7985700b94" }, "downloads": -1, "filename": "abuseipdb-1.2.0.tar.gz", "has_sig": false, "md5_digest": "02642f7f8858c4e968671b1a481a4563", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5978, "upload_time": "2018-04-24T13:40:44", "url": "https://files.pythonhosted.org/packages/14/34/7589c10f3f6e91a5ba7cf5c3c1e3617103cd0fcefbaad8233163eac98242/abuseipdb-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "ce82812226657474a79747732b7525d1", "sha256": "e728ed5562c6239b84c2f509233ecf1f6c413216be8502bb40d52fad1585b924" }, "downloads": -1, "filename": "abuseipdb-1.3.0.tar.gz", "has_sig": false, "md5_digest": "ce82812226657474a79747732b7525d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6680, "upload_time": "2018-04-24T22:04:08", "url": "https://files.pythonhosted.org/packages/88/da/f264b16a5d6a9ad1e9b41aa7c71937300316ee7b0c190d841b74e99bf1a3/abuseipdb-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ce82812226657474a79747732b7525d1", "sha256": "e728ed5562c6239b84c2f509233ecf1f6c413216be8502bb40d52fad1585b924" }, "downloads": -1, "filename": "abuseipdb-1.3.0.tar.gz", "has_sig": false, "md5_digest": "ce82812226657474a79747732b7525d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6680, "upload_time": "2018-04-24T22:04:08", "url": "https://files.pythonhosted.org/packages/88/da/f264b16a5d6a9ad1e9b41aa7c71937300316ee7b0c190d841b74e99bf1a3/abuseipdb-1.3.0.tar.gz" } ] }