### Install aslookup with pipx for CLI usage Source: https://pypi.org/project/aslookup Use pipx to install the aslookup command-line interface tool. This is the recommended method for users who will only interact with the tool via the command line. ```bash pipx install aslookup ``` -------------------------------- ### Get AS data using Python module Source: https://pypi.org/project/aslookup Import and use the get_as_data function from the aslookup library to query AS information for a given IP address. The 'service' parameter allows specifying the data source, defaulting to 'shadowserver'. ```python from aslookup import get_as_data ip = "8.8.8.8" get_as_data(ip, service="shadowserver") ``` -------------------------------- ### Install aslookup with pip for library usage Source: https://pypi.org/project/aslookup Use pip to install the aslookup library within your Python environment. This method is suitable for developers who intend to use aslookup as a Python module in their projects. ```bash python3 -m pip install aslookup ``` -------------------------------- ### CLI script with multiple IPv6 addresses Source: https://pypi.org/project/aslookup/2.0.0 Shows how to use the aslookup CLI script to look up multiple IPv6 addresses directly as arguments. ```bash as-lookup 2001:4860:4860::8888 2001:4860:4860::8844 ``` -------------------------------- ### Validate IP prefix classifications with test data Source: https://pypi.org/project/aslookup Run the as-lookup CLI script using the provided test data file 'tests/test_input.txt'. This is useful for verifying IP prefix classifications and observing the script's output format. ```bash as-lookup < tests/test_input.txt ``` -------------------------------- ### Lookup multiple IPv4 and IPv6 addresses via CLI Source: https://pypi.org/project/aslookup Execute the as-lookup CLI script with multiple IPv4 or IPv6 addresses as direct arguments. The script processes each address and outputs the results on separate lines. ```bash as-lookup 8.8.8.8 9.9.9.9 as-lookup 2001:4860:4860::8888 2001:4860:4860::8844 ``` -------------------------------- ### CLI script with multiple IPv4 addresses Source: https://pypi.org/project/aslookup/2.0.0 Shows how to use the aslookup CLI script to look up multiple IPv4 addresses directly as arguments. ```bash as-lookup 8.8.8.8 9.9.9.9 ``` -------------------------------- ### Lookup IP addresses from a file via CLI Source: https://pypi.org/project/aslookup Use the as-lookup CLI script to process IP addresses listed in a file. Pipe the file content to the script's standard input using the '<' redirection operator. ```bash as-lookup < ipaddrs.txt ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.