Skip to main content

A package for geolocating IP addresses using the IPMike API

Project description

IPMike

A Python package for geolocating IP addresses using the IPMike API.

Installation

To install the package, run the following command:

pip install ipmike

You will also need to obtain an API token from the IPMike website in order to use the package. Once you have a token, you can create an instance of the IPMike class and use the get_location method to geolocate an IP address.

Usage

Here's an example of how to use the package to geolocate an IP address:

from ipmike import IPMike

# Create a new instance of the IPMike class
ipmike = IPMike()

# Use the get_location method to geolocate an IP address
response = ipmike.get_location("8.8.8.8")

# Print the response, which should be a JSON object containing location data
print(response)

The get_location method takes an IP address as a parameter and returns a JSON object containing location data. The API token is automatically included in the request.

Contributing Contributions to this package are welcome! If you would like to contribute, please create a new branch, make your changes, and open a pull request.

License This package is licensed under the MIT license. See the LICENSE file for more information.

In this example, we provide a brief description of the package, instructions for installing the package, and an example of how to use the package to geolocate an IP address. We also include sections on contributing to the package and licensing information. This should be enough to get users started with using the `ipmike` package.

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

ipmike-0.1.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

ipmike-0.1.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ipmike-0.1.4.tar.gz.

File metadata

  • Download URL: ipmike-0.1.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for ipmike-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5c4d92710123b5962adfe91c5b59bbe38f8c01e496cd1d935001d1a313b10892
MD5 31485cb4c7e8eb6dab23c158b6c9e5ba
BLAKE2b-256 5ffa3509d6c57d9c4abe2744f9b2d153db55a2f4c6c9eb8b9986d8cc76307833

See more details on using hashes here.

File details

Details for the file ipmike-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ipmike-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for ipmike-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 444a8f528f09c67238e9b5e09a3d696a5f9f5d54e437f2254fd4dcf2c529984c
MD5 046f1a1b3e5fa44ec1db69a16d1d4cb1
BLAKE2b-256 d79e1b21204a0d3dfa34fb66d26cc47890ad8df243b42af9986776e43ac8ed2b

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