Metadata-Version: 2.1
Name: bogons
Version: 1.0.0
Summary: Python Libary for IP & ASN Bogons
Home-page: https://github.com/mellowdrifter/python-bogons
Author: Darren O'Connor
Author-email: nouser@bgpstuff.net
License: Apache Software License (http://www.apache.org/licenses/LICENSE-2.0)
Description: # python-bogons
        
        Python version of [https://github.com/mellowdrifter/bogons](https://github.com/mellowdrifter/bogons)
        
        
        Python library to validate IP and ASN [bogons](https://en.wikipedia.org/wiki/Bogon_filtering).
        This library does not filter out unassigned space. It will filter IPv4, IPv6, and Autonomous system numbers that have been marked as bogons in the following RFCs:
        * RFC1918
        * RFC6483
        * RFC7607
        * RFC6793
        * RFC5398
        * RFC1930
        * RFC6996
        * RFC7300
        * RFC4893
        * RFC5398
        
        For IPv6, 6to4, 6bone, and any prefix not in 2000::/3 is marked as invalid.
        
        
        # Install
        ```pip install bogons```
        
        # How to use
        ```import bogons
        >>> bogons.is_public_ip("1.1.1.1")
        True
        >>> bogons.is_public_ip("10.0.0.0")
        False
        >>> bogons.is_public_ip("2600::")
        True
        >>> bogons.is_public_ip("4600::")
        False
        >>> bogons.valid_public_asn(1)
        True
        >>> bogons.valid_public_asn(23456)
        False```
        
        # Developement
        I welcome pull requests for updated RFCs or errors.
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
