Skip to main content

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

Metadata

Release files for pipgeoip 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pipgeoip 1.0.2
File Size Uploaded Provenance Actions
pipgeoip-1.0.2.tar.gz 36.7 MB Without provenance Details for pipgeoip-1.0.2.tar.gz

Release files / pipgeoip-1.0.2.tar.gz

Download URL pipgeoip-1.0.2.tar.gz
Size 36.7 MB
Tags Source
SHA-256 checksum
How to use checksums
8dc46fc5f5934c936f8d3812812e3e27424abd5f10e9806311114e6eaa7ce13b
BLAKE2b-256 checksum
How to use checksums
3cb885c09b7a478b9abc45ee8aa8c62bd2b7916bb55b7e6944051584260669db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for pipgeoip 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page