<reponame>jophex/mansion<filename>loc.py<gh_stars>0
from requests import get

ip = get('https://api.ipify.org').text
print(f'My public IP address is: {ip}')

import ipinfo

access_token = '8<PASSWORD>'
handler = ipinfo.getHandlerAsync(access_token)
ip_address = ip
details = handler.getDetails()


from requests import get

ip = get('https://api.ipify.org').text
print(f'My public IP address is: {ip}')

import ipinfo

access_token = '8<PASSWORD>'
handler = ipinfo.getHandlerAsync(access_token)
ip_address = ip
details = handler.getDetails()