{"id":23373,"library":"bogons","title":"Bogons","description":"Python library for generating and checking IP & ASN bogons (martian packets). Current version 1.0.3, release cadence irregular.","status":"active","version":"1.0.3","language":"python","source_language":"en","source_url":"https://github.com/mellowdrifter/python-bogons","tags":["bogons","ip","asn","network","security"],"install":[{"cmd":"pip install bogons","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"BogonChecker","correct":"from bogons import BogonChecker"}],"quickstart":{"code":"from bogons import BogonChecker\n\nchecker = BogonChecker()\nprint(checker.is_bogon('192.168.1.1'))  # True\nprint(checker.is_bogon('8.8.8.8'))       # False","lang":"python","description":"Basic usage: create a BogonChecker instance and check if an IP is a bogon."},"warnings":[{"fix":"Ensure network connectivity or pre-download lists.","message":"BogonChecker downloads bogon lists on first instantiation. If offline or slow network, initialization may hang.","severity":"gotcha","affected_versions":"*"},{"fix":"Use Python 3.6+.","message":"The library requires Python >=3.6. No support for Python 2.","severity":"gotcha","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run pip install bogons","cause":"Library not installed.","error":"ModuleNotFoundError: No module named 'bogons'"},{"fix":"Use from bogons import BogonChecker then create checker = BogonChecker() and call checker.is_bogon()","cause":"Importing the module directly instead of class instance.","error":"AttributeError: module 'bogons' has no attribute 'is_bogon'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}