Skip to main content

GISL is a versatile Python library designed for Geographic Information System (GIS) tasks. It offers methods to retrieve country names and codes, determine continents, geocode IP addresses, calculate distances between coordinates, find time zones, and get addresses from latitude and longitude. GISL also allows users to obtain the public IP address of the current machine, making it an essential toolkit for developers and researchers working with geospatial data.

Project description

GISL (Geographic Information System Library)

GISL is a Python library that provides functionality for various Geographic Information System (GIS) tasks such as retrieving country names, continents, latitude and longitude information, addresses, timezones, and public IP addresses.

Features

  • Retrieve country names and continents based on country codes.
  • Obtain latitude and longitude information from IP addresses.
    Latitude and longitude from IP address is not allways fully reliable
  • Calculate distances between coordinates.
  • Determine timezones based on coordinates.
  • Reverse geocoding to get address information from coordinates.
  • Get the public IP address of the current machine.

Installation

You can install GISL via pip:

pip install gisl

Usage

Here's a basic example of how to use GISL:

from gisl import GISL

gisl = GISL()

country_name = gisl.get_country("US")
print("Country Name:", country_name)

Output:

Country Name: United States

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

gisl-1.0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

GISL-1.0.1-py3-none-any.whl (5.2 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