Skip to content

Requesting adding IPinfo to the list. #21

Description

@abdullahdevrel

Hi,

I would like to request the addition of ipinfo to the awesome-python list.

It is a wrapper library built on top of IPinfo.io's API service. The library has the following features:

  • Tokenless access to IPinfo's IP to Geolocation service
  • Bulk IP enrichment with IP metadata
  • Asynchronous operations
  • Caching operations

If the request is approved, I can make a pull request to the repository. Thank you for reviewing.

Code example:

import ipinfo

# Initialize the library
handler = ipinfo.getHandler()

# Random IP address
ip = "167.116.158.203"

# Get details of the IP address using the IPinfo API service
print(details.all)

Output:

{'ip': '167.116.158.203', 'hostname': 'r167-116-158-203.dialup.mobile.ancel.net.uy', 'city': 'Montevideo', 'region': 'Montevideo Department', 'country': 'UY', 'loc': '-34.9033,-56.1882', 'org': 'AS6057 Administracion Nacional de Telecomunicaciones', 'postal': '11100', 'timezone': 'America/Montevideo', 'readme': 'https://ipinfo.io/missingauth', 'country_name': 'Uruguay', 'isEU': False, 'country_flag_url': 'https://cdn.ipinfo.io/static/images/countries-flags/UY.svg', 'country_flag': {'emoji': '🇺🇾', 'unicode': 'U+1F1FA U+1F1FE'}, 'country_currency': {'code': 'UYU', 'symbol': '$U'}, 'continent': {'code': 'SA', 'name': 'South America'}, 'latitude': '-34.9033', 'longitude': '-56.1882'}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions