Check ASNs and metadata for a list of IPs
Project description
ASN Check
Given a list of IPs the tool returns their AS numbers and names.
Data sources:
Features:
- Caching the data from sources - first run may take a long time,
- Binary IP network search for high throughput,
- Returns AS Number, AS Name and a country code for each IP address.
Installation
pip install asn-check
Options
--input-file FILENAME Input file with one IPv4 per line [default:STDIN]
--output-file FILENAME Output file - csv, header: ip,asn,name,country_code [default: STDOUT]
--log-level [DEBUG|INFO|WARNING|ERROR|CRITICAL] Set logging level. [default: WARNING]
--help Show this message and exit.
Example
$ echo '250.254.147.119
12.154.0.67
41.13.122.240
176.218.30.1078
128.105.177.84
85.227.158.196
74.74.207.74' | asn-check
Output:
ip,asn,name,country_code
250.254.147.119,,,
12.154.0.67,7018,ATT-INTERNET4,US
41.13.122.240,29975,VODACOM-,ZA
128.105.177.84,59,WISC-MADISON-AS,US
85.227.158.196,2119,TELENOR-NEXTEL Telenor Norge AS,NO
74.74.207.74,11351,TWC-11351-NORTHEAST,US
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
asn_check-1.0.1.tar.gz
(20.3 kB
view hashes)
Built Distribution
asn_check-1.0.1-py3-none-any.whl
(18.0 kB
view hashes)
Close
Hashes for asn_check-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e48e1b1105d4d3f7c2f8e09ca007d0c1c3b28b82be832a2e9b484a92ce9d48 |
|
MD5 | 62d030ed29ef7e8d530ecf8e5991aca2 |
|
BLAKE2b-256 | 05888161d947961420a4bfd2139532ec3b6123ffc94c8f41cb1382ff0556d995 |