IPSpot: A Python Library for IP and Geolocation Data Retrieval
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
IPSpot is a powerful Python library designed to retrieve both public and private IPv4 and IPv6 addresses. It also provides detailed geolocation data, such as region, longitude, and latitude, using a reliable fallback mechanism across multiple API providers. This makes it an essential tool for network monitoring and location-based lookups directly from your system.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
IPSpot is a robust Python library developed by openscilab, offering a streamlined way to retrieve comprehensive IP address information. It supports both public and private IPv4 and IPv6 addresses, along with detailed geolocation data including country, city, region, latitude, and longitude. Designed with a simple and modular structure, IPSpot ensures reliable data retrieval through its intelligent fallback mechanism across various API providers. Whether you need to monitor network details or perform quick IP lookups, IPSpot provides an efficient solution directly from your machine.
Installation
IPSpot can be easily installed using pip:
pip install ipspot
For specific versions or to install from source, refer to the official GitHub repository.
Examples
IPSpot offers both a Python library for programmatic access and a command-line interface (CLI) for quick lookups.
Library Usage
Retrieve Public IPv4 with Geolocation:
from ipspot import get_public_ipv4, IPv4API
# Get public IPv4 address and basic API info
print(get_public_ipv4(api=IPv4API.IP_API_COM))
# Get public IPv4 with detailed geolocation data
print(get_public_ipv4(api=IPv4API.IP_API_COM, geo=True, timeout=10))
Retrieve Private IPv4:
from ipspot import get_private_ipv4
print(get_private_ipv4())
Retrieve Public IPv6 with Geolocation:
from ipspot import get_public_ipv6, IPv6API
# Get public IPv6 address and basic API info
print(get_public_ipv6(api=IPv6API.IP_SB))
# Get public IPv6 with detailed geolocation data
print(get_public_ipv6(api=IPv6API.IP_SB, geo=True, timeout=10))
Retrieve Private IPv6:
from ipspot import get_private_ipv6
print(get_private_ipv6())
CLI Usage
Basic IP and Geolocation Info:
ipspot
Get Version:
ipspot --version
Disable Geolocation Data:
ipspot --no-geo
Why Use IPSpot?
IPSpot stands out for several reasons:
- Comprehensive Data: It provides both public and private IPv4/IPv6 addresses, along with rich geolocation details.
- Reliability: Utilizes multiple API providers with a fallback mechanism, ensuring consistent data retrieval even if one service is down.
- Ease of Use: With a simple API and a straightforward CLI, it's easy to integrate into your projects or use for quick checks.
- Flexibility: Allows specifying preferred API providers and offers options to include or exclude geolocation data.
- Open Source: Being an open-source project, it benefits from community contributions and transparency.
Links
- GitHub Repository: https://github.com/openscilab/ipspot
- PyPI: https://pypi.org/project/ipspot/
- Discord Channel: https://discord.gg/yyDV3T4cwU
- Support the Project: https://openscilab.com/#donation
Related repositories
Similar repositories that may be relevant next.

Ragas: Supercharge Your LLM Application Evaluations
August 9, 2026
Ragas is an ultimate toolkit for evaluating and optimizing Large Language Model (LLM) applications. It offers objective metrics, intelligent test generation, and data-driven insights to move beyond subjective assessments. This framework helps developers build feedback loops and continuously improve their LLM applications.

awesome-cli-coding-agents: A Curated Directory of Terminal-Native AI Tools
August 9, 2026
The `awesome-cli-coding-agents` repository offers a comprehensive, curated directory of over 100 terminal-native AI coding agents. These powerful tools operate directly within your command line, enabling autonomous code reading, editing, and execution. The list also covers various harnesses and orchestration solutions for managing these agents.

QwenPaw: Your Personal AI Assistant for Local and Cloud Deployment
August 7, 2026
QwenPaw is a powerful personal AI assistant designed for easy installation and deployment, either on your local machine or in the cloud. It supports multiple chat applications and offers highly extensible capabilities, making it a versatile tool for various AI-driven tasks. With its robust memory system and security features, QwenPaw aims to be an intuitive and private partner in your digital life.

DeepTutor: Lifelong Personalized Tutoring with AI Agents
August 7, 2026
DeepTutor is an advanced AI-powered platform designed for lifelong personalized tutoring, integrating various learning modes into a single, extensible system. It leverages large language models and multi-agent systems to offer features like interactive chat, quiz generation, and skill development. This project provides a comprehensive environment for learners and educators seeking intelligent, adaptive educational tools.
Source repository
Open the original repository on GitHub.
20 counted GitHub visits