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 details)

Uploaded Source

Built Distribution

GISL-1.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file gisl-1.0.1.tar.gz.

File metadata

  • Download URL: gisl-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gisl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 86a242842b817553e8058d68bd2b2cd8051b6bb8f8016fe2a1cbb443e7e5764e
MD5 646f0251ce727934d4d44e10d156e52f
BLAKE2b-256 7ffd6a60a27ff95ec25a99b1292ad51ed3077c8e6eed0d26c1d5f416f7b205fa

See more details on using hashes here.

File details

Details for the file GISL-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: GISL-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for GISL-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21da593f5a6075db7da373d34be119ad0a4bb5e9934543984cbc9ff92b3e19e6
MD5 853e97d41a960ff92090196d9132ca28
BLAKE2b-256 c9a005e808b4e614f89f2e67d150f6c6410ef9cdf862b8397aa4d6f70d0f4a0f

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