Skip to main content

Python GeoIP

Project description

PIP GeoIP

Get ip information offline without api

Build Status

PyGeoIP is a package that can be use to get ip information without any api and it's free.

Available information

  • Continent
  • Country
  • Iso Code
  • City
  • Zip
  • timezone
  • latitude
  • longitude
  • org

Features

  • Can be use in offile
  • It's Free
  • No need api key
  • Get Dictionary or JSON result

Tech

  • [maxmind] - GeoIP2 Databases

Installation

PyGeoIP tested on python 3.8. All version of python 3 shoud support.

pip install pipgeoip

Example JSON object

import pipgeoip
print(get_geo_ip_json('204.236.186.159'))
{
    "ip": "204.236.186.159",
    "country": "United States",
    "continent": "North America",
    "iso": "US",
    "city": "San Jose",
    "zip": "95141",
    "timezone": "America/Los_Angeles",
    "latitude": 37.3388,
    "longitude": -121.8916,
    "org": "AMAZON-02"
}

Example Dictionary

print(get_geo_ip('204.236.186.159')['country'])
United States

MySelf

I am Himel, Software Engineer and Ethical HackerInstructions on how to use them in your own application are linked below.

Info Link
Portfolio https://himelrana.com
GitHub https://github.com/Swe-HImelRana
Linkedin https://www.linkedin.com/in/swe-himelrana

Version: 1.0.0 - First Release

Version 1.0.1 - Version 1.0.0 removed - Configuration issue solved

Version 1.0.2 - Version 1.0.1 removed - Bug Fix

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

pipgeoip-1.0.2.tar.gz (36.7 MB view details)

Uploaded Source

File details

Details for the file pipgeoip-1.0.2.tar.gz.

File metadata

  • Download URL: pipgeoip-1.0.2.tar.gz
  • Upload date:
  • Size: 36.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for pipgeoip-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8dc46fc5f5934c936f8d3812812e3e27424abd5f10e9806311114e6eaa7ce13b
MD5 e4984b7a7ce9fc97b00bcb4e6cb86123
BLAKE2b-256 3cb885c09b7a478b9abc45ee8aa8c62bd2b7916bb55b7e6944051584260669db

See more details on using hashes here.

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