hadiasghari / pyasn

Python IP address to Autonomous System Number lookup module. (Supports fast local lookups, and historical lookups using archived BGP dumps.)
Other
294 stars 72 forks source link

Add Support for Compressed As-Names Files #69

Closed mansweet closed 3 years ago

mansweet commented 3 years ago

Description

Previously, users were not able to pass in a compressed As-Names file, but they were able to pass in a compressed IP-ASN Database. For those trying to work with a single file-format / or compression approach, this feature enables that.

Tests

SKIPPING - Python 2 or PyASN 1.2 not present ... ..
 Cymru-whois & pyasn differ in 27/1000 cases; acceptable.. ..SKIPPING - full dump doesn't exist..SKIPPING - full dump doesn't exist..SKIPPING - full dump doesn't exist.....SKIPPING - full dump doesn't exist..SKIPPING - full dump doesn't exist....
----------------------------------------------------------------------
Ran 26 tests in 4.085s

OK

Process finished with exit code 0
............
mansweet commented 3 years ago

@hadiasghari I'm not sure if you were able to see this old PR of mine as well. Please kindly address this one if you'd like.