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.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipwhere-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcd70e12a763baaa9ee8e6bb21a4906ce8e414a2b4f971a4ee5acdbf5b37b5c1
MD5 4be3d1cef3a5998849d5cdb8de21297b
BLAKE2b-256 9502ba3af07e2088b05dad809254a904a87a9d9763770ff316c243edf9ba5d69

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