Metadata-Version: 2.4
Name: whereip-network
Version: 0.1.0
Summary: Which network announces an IP address, for whereip
Project-URL: Documentation, https://github.com/tn3w/whereip#networks
Project-URL: Source, https://github.com/tn3w/whereip
Project-URL: Funding, https://www.buymeacoffee.com/tn3w
Author-email: tn3w <tn3w@protonmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: asn,bgp,ip,network,offline,rpki,whois
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# whereip-network

Which network announces an IP address, for [whereip](https://github.com/tn3w/whereip).

```bash
pip install "whereip[network]"
```

```python
>>> import whereip
>>> net = whereip.network("1.1.1.1")
>>> net.asn, net.name, net.prefix, net.rpki
(13335, 'CLOUDFLARENET', IPv4Network('1.1.1.0/24'), 'valid')

>>> net.operator.brand, net.operator.domain, net.operator.country.code
('Cloudflare', 'cloudflare.com', 'US')
```

959k routing boundaries over 86k autonomous systems, built from a RIPE RIS RIB,
RPKI ROAs, the NRO delegations, CAIDA, PeeringDB and `asn-abuse`. Boundaries ride
in blocks of 256 varints that decode as they are asked for, so the table warms up to
~1.3M lookups/s. See the whereip README for every field.

## LICENSE

MIT
