IPSpot: A Python Library for IP and Geolocation Data Retrieval

This repository profile is provided by osrepos.com, an open source repository discovery platform.

IPSpot: A Python Library for IP and Geolocation Data Retrieval

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

Analyzed by OSRepos on June 13, 2026

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

Related repositories

Similar repositories that may be relevant next.

dify-official-plugins: Extending Dify with AI Models, Tools, and Agent Strategies

dify-official-plugins: Extending Dify with AI Models, Tools, and Agent Strategies

August 18, 2026

The `dify-official-plugins` repository hosts a collection of official plugins for Dify, an open-source platform for developing LLM-powered AI applications. These plugins, including models, tools, agent strategies, and extensions, enhance Dify's capabilities and are maintained by the official Dify team. They are designed to help developers efficiently build, deploy, and manage AI-driven solutions.

PythonAILLM
Agent Skills: A Standardized Way to Give AI Agents New Capabilities

Agent Skills: A Standardized Way to Give AI Agents New Capabilities

August 18, 2026

Agent Skills provides a lightweight, open format for extending AI agent capabilities with specialized knowledge and workflows. It allows packaging procedural knowledge and context into portable, version-controlled folders that agents load on demand. This enables agents to gain domain expertise, follow repeatable workflows, and reuse skills across various compatible AI tools.

agent-skillsPythonAI
A-MEM: Self-Evolving Memory for Coding Agents

A-MEM: Self-Evolving Memory for Coding Agents

August 17, 2026

A-MEM is an innovative self-evolving memory system designed for coding agents, organizing knowledge into a dynamic Zettelkasten-style graph. It allows memories to evolve and connect over time, enhancing an agent's ability to recall and utilize information effectively. This system offers both semantic and structural search capabilities for a richer knowledge base.

PythonAILLM
Agent Sandbox: Secure Local Development for AI Coding Agents

Agent Sandbox: Secure Local Development for AI Coding Agents

August 17, 2026

Agent Sandbox provides a robust and secure local development environment specifically designed for collaborating with AI coding agents. It ensures minimal filesystem access, configurable network egress policies, and secure secret injection, protecting your local machine from potentially risky agent operations. This project supports various AI agents and integrates seamlessly with both CLI and popular IDE devcontainer setups.

agent-harnessagent-sandboxagents

Source repository

Open the original repository on GitHub.

25 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️