This is a collection of small utilities and classes I tend to use.
Map IP addresses to AS numbers. This is based on data from https://iptoasn.com/. No guarantee for the quality of the data. Note: instantiating the object takes quite some time. But then it's quite fast.