### Install aslookup with pipx (CLI) Source: https://github.com/dspruell/aslookup/blob/master/README.md Use pipx to install the aslookup command-line interface if you will only use it as a utility. ```bash pipx install aslookup ``` -------------------------------- ### Install aslookup with pip (Library) Source: https://github.com/dspruell/aslookup/blob/master/README.md Use pip to install aslookup into your Python environment if you plan to use it as a library. ```bash python3 -m pip install aslookup ``` -------------------------------- ### Get AS Data using Python Module Source: https://github.com/dspruell/aslookup/blob/master/README.md Import the get_as_data function and call it with an IP address. The service parameter can be used to specify 'shadowserver' or 'team-cymru' (default). ```python from aslookup import get_as_data ip = "8.8.8.8" get_as_data(ip, service="shadowserver") ``` -------------------------------- ### CLI Lookup from Standard Input Source: https://github.com/dspruell/aslookup/blob/master/README.md Pipe a list of IP addresses from a file (e.g., ipaddrs.txt) into the as-lookup script via standard input. ```bash as-lookup < ipaddrs.txt ``` -------------------------------- ### CLI Lookup with Test Data Source: https://github.com/dspruell/aslookup/blob/master/README.md Use the as-lookup script with the provided test input file to validate IP prefix classifications and output format. ```bash as-lookup < tests/test_input.txt ``` -------------------------------- ### CLI Lookup with Multiple IPs Source: https://github.com/dspruell/aslookup/blob/master/README.md Provide multiple IPv4 or IPv6 addresses as command-line arguments to the as-lookup script for concurrent processing. ```bash as-lookup 8.8.8.8 9.9.9.9 ``` ```bash as-lookup 2001:4860:4860::8888 2001:4860:4860::8844 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.