MCPcopy
hub / github.com/eldraco/domain_analyzer / get_info

Method get_info

geoip.py:240–246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

238 return self._md
239
240 def get_info(self):
241 return DatabaseInfo(
242 filename=self.filename,
243 date=datetime.utcfromtimestamp(self._md['build_epoch']),
244 internal_name=_native_str(self._md['database_type']),
245 provider='maxmind',
246 )
247
248 def _lookup(self, ip_addr):
249 packed_addr = pack_ip(ip_addr)

Callers

nothing calls this directly

Calls 2

DatabaseInfoClass · 0.85
_native_strFunction · 0.85

Tested by

no test coverage detected