Skip to main content

ipwhere - query an IP address geographical location

Project description

ipwhere

IP geo location command line tool (relies on 3rd-party to provide actual location).

The current supported provider for ipwhere is IP2Location.io - a future version will use a free service or list.

API key required

The program uses IP2Location for resolving locations. They provide a free service, just ask you to register so that they can give you a unique API key.

The API key is defined as an environment variable:

IPWHERE_API_KEY=your-API-key-here

ipwhere won't start if the environment variable isn't defined.

Getting an IP2Location API Key

Head to http://www.ip2location.io, sign up to the service and follow the instructions. API keys are free for the first 30,000 requests. They take up to 10 minutes to be activated.

Query Frequency

IP2Location is a free service, but require that API requests are spaced about 2 seconds apart to lighten their server load. If possible, use local caching as well.

ipwhere makes a single query per call, so no attempt at pacing is done in this implementation.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipwhere-2.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file ipwhere-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: ipwhere-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ipwhere-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee43966129749751769a410e0ef6085b6534b5aec70c4aa9b5c0300c7c86ddf0
MD5 45824eac32e55d63a63191548c3a2366
BLAKE2b-256 fb8e3573a784ddd51f2abfa71506c513a7bb2d0e91495b0b0b1f7984849f6c6b

See more details on using hashes here.

Supported by

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