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.

AutoHedge: Build Your Autonomous AI Hedge Fund with Swarm Intelligence
June 15, 2026
AutoHedge is an enterprise-grade autonomous agent hedge fund that leverages swarm intelligence and specialized AI agents. This powerful Python project automates end-to-end market analysis, risk management, and trade execution. It allows users to build and deploy their own AI-driven trading strategies with minimal human intervention.

MOSS-TTS Family: Open-Source High-Fidelity Speech and Sound Generation
May 31, 2026
The MOSS-TTS Family offers an open-source suite of models for high-fidelity, highly expressive speech and sound generation. Designed for complex real-world scenarios, it covers stable long-form speech, multi-speaker dialogue, voice design, environmental sound effects, and real-time streaming TTS. This comprehensive family of models from MOSI.AI and OpenMOSS team provides robust solutions for diverse audio generation needs.

autoresearch: AI Agents for Autonomous LLM Training Research
May 31, 2026
autoresearch, by Andrej Karpathy, pioneers autonomous AI research by enabling agents to experiment with LLM training on a single GPU. The system allows an AI agent to modify code, train a model for a fixed 5-minute duration, and iteratively optimize for improved performance. This innovative approach aims to automate the experimental cycle of AI research, fostering continuous discovery and optimization.
MiroFish: A Universal Swarm Intelligence Engine for Predicting Anything
May 30, 2026
MiroFish is a cutting-edge AI prediction engine that leverages multi-agent technology to simulate future outcomes. It constructs high-fidelity digital worlds where intelligent agents interact, allowing users to test scenarios and deduce future trajectories. This innovative platform enables predictions across various domains, from public opinion to financial markets and even creative narrative endings.
Source repository
Open the original repository on GitHub.