MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / get_zipcode

Method get_zipcode

lib/ip2location/IP2Location.py:176–179  ·  view source on GitHub ↗

Get zipcode

(self, ip)

Source from the content-addressed store, hash-verified

174 return rec and rec.domain
175
176 def get_zipcode(self, ip):
177 """ Get zipcode """
178 rec = self.get_all(ip)
179 return rec and rec.zipcode
180
181 def get_timezone(self, ip):
182 """ Get timezone """

Callers

nothing calls this directly

Calls 1

get_allMethod · 0.95

Tested by

no test coverage detected