Files
sakhteman/auth/utils/ip_info.py
T

7 lines
159 B
Python
Raw Normal View History

2024-02-15 00:17:51 +03:30
from ip2geotools.databases.noncommercial import DbIpCity
def get_info(ip: str):
response = DbIpCity.get(ip, api_key='free')
return response.__dict__