:py:mod:`flow.record.tools.geoip` ================================= .. py:module:: flow.record.tools.geoip Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: flow.record.tools.geoip.georecord_for_ip flow.record.tools.geoip.asnrecord_for_ip flow.record.tools.geoip.ip_records_from_text_files flow.record.tools.geoip.main Attributes ~~~~~~~~~~ .. autoapisummary:: flow.record.tools.geoip.logger flow.record.tools.geoip.IPv4Record flow.record.tools.geoip.GeoRecord flow.record.tools.geoip.AsnRecord flow.record.tools.geoip.DEFAULT_CITY_DB flow.record.tools.geoip.DEFAULT_ASN_DB flow.record.tools.geoip.REGEX_IPV4 .. py:data:: logger .. py:data:: IPv4Record .. py:data:: GeoRecord .. py:data:: AsnRecord .. py:data:: DEFAULT_CITY_DB :value: '/usr/share/GeoIP/GeoLite2-City.mmdb' .. py:data:: DEFAULT_ASN_DB :value: '/usr/share/GeoIP/GeoLite2-ASN.mmdb' .. py:data:: REGEX_IPV4 .. py:function:: georecord_for_ip(city_db, ip) .. py:function:: asnrecord_for_ip(asn_db, ip) .. py:function:: ip_records_from_text_files(files) Yield IPv4Records by extracting IP addresses from `files` using a regex. .. py:function:: main()