How to use the ipdb.ipdb function in ipdb

To help you get started, we’ve selected a few ipdb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Phype / telnet-iot-honeypot / backend / clientcontroller.py View on Github external
	@db_wrapper
	def get_ip_range_offline(self, ip):
		ip_int = ipdb.ipdb.ipstr2int(ip)
		
		range = self.session.query(IPRange).filter(and_(IPRange.ip_min <= ip_int, 
			ip_int <= IPRange.ip_max)).first()
		
		return range