Skip to main content

A package for geolocating IPs

Project description

pyiplocation

Downloads

A simple python package to geolocate IPs without the need for a paid/limited API.

Usage

This code snippet :

from pyiplocation import geolocate

geolocate("42.34.78.123")

will return a dictionary containing :

  • The IP
  • The Hostname
  • The Continent Code
  • The Continent Name
  • The Country Codes
  • The Country Name
  • The Country Capital
  • The State/Province
  • The District/County
  • The City
  • The Zip Code
  • The City's Latitude
  • The City's Longitude
  • The Geoname ID
  • A Boolean indicating whether or not the IP is in the EU
  • The Calling Code
  • The Country TLD
  • The Country Languages
  • The ISP
  • The Connection Type
  • The Organization
  • The AS Number
  • The Country's Currency (name, code, symbol)
  • The Timezone (name, offset, current time etc..)

And more!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyiplocation-1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pyiplocation-1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page