Files
sakhteman/auth/utils/ip_info.py
T
2024-02-15 00:17:51 +03:30

7 lines
159 B
Python

from ip2geotools.databases.noncommercial import DbIpCity
def get_info(ip: str):
response = DbIpCity.get(ip, api_key='free')
return response.__dict__