{"name":"IPSpot: A Python Library for IP and Geolocation Data Retrieval","description":"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.","github":"https://github.com/openscilab/ipspot","url":"https://osrepos.com/repo/openscilab-ipspot","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/openscilab-ipspot","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/openscilab-ipspot.md","json":"https://osrepos.com/repo/openscilab-ipspot.json","topics":["Python","IP Address","Geolocation","IPv4","IPv6","Network Monitoring","CLI Tool","Open Source"],"keywords":["Python","IP Address","Geolocation","IPv4","IPv6","Network Monitoring","CLI Tool","Open Source"],"stars":null,"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.","content":"## Introduction\nIPSpot 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.\n\n## Installation\nIPSpot can be easily installed using pip:\n\nbash\npip install ipspot\n\n\nFor specific versions or to install from source, refer to the [official GitHub repository](https://github.com/openscilab/ipspot).\n\n## Examples\nIPSpot offers both a Python library for programmatic access and a command-line interface (CLI) for quick lookups.\n\n### Library Usage\n\n#### Retrieve Public IPv4 with Geolocation:\n\npython\nfrom ipspot import get_public_ipv4, IPv4API\n\n# Get public IPv4 address and basic API info\nprint(get_public_ipv4(api=IPv4API.IP_API_COM))\n\n# Get public IPv4 with detailed geolocation data\nprint(get_public_ipv4(api=IPv4API.IP_API_COM, geo=True, timeout=10))\n\n\n#### Retrieve Private IPv4:\n\npython\nfrom ipspot import get_private_ipv4\n\nprint(get_private_ipv4())\n\n\n#### Retrieve Public IPv6 with Geolocation:\n\npython\nfrom ipspot import get_public_ipv6, IPv6API\n\n# Get public IPv6 address and basic API info\nprint(get_public_ipv6(api=IPv6API.IP_SB))\n\n# Get public IPv6 with detailed geolocation data\nprint(get_public_ipv6(api=IPv6API.IP_SB, geo=True, timeout=10))\n\n\n#### Retrieve Private IPv6:\n\npython\nfrom ipspot import get_private_ipv6\n\nprint(get_private_ipv6())\n\n\n### CLI Usage\n\n#### Basic IP and Geolocation Info:\n\nbash\nipspot\n\n\n#### Get Version:\n\nbash\nipspot --version\n\n\n#### Disable Geolocation Data:\n\nbash\nipspot --no-geo\n\n\n## Why Use IPSpot?\nIPSpot stands out for several reasons:\n*   **Comprehensive Data**: It provides both public and private IPv4/IPv6 addresses, along with rich geolocation details.\n*   **Reliability**: Utilizes multiple API providers with a fallback mechanism, ensuring consistent data retrieval even if one service is down.\n*   **Ease of Use**: With a simple API and a straightforward CLI, it's easy to integrate into your projects or use for quick checks.\n*   **Flexibility**: Allows specifying preferred API providers and offers options to include or exclude geolocation data.\n*   **Open Source**: Being an open-source project, it benefits from community contributions and transparency.\n\n## Links\n*   **GitHub Repository**: [https://github.com/openscilab/ipspot](https://github.com/openscilab/ipspot)\n*   **PyPI**: [https://pypi.org/project/ipspot/](https://pypi.org/project/ipspot/)\n*   **Discord Channel**: [https://discord.gg/yyDV3T4cwU](https://discord.gg/yyDV3T4cwU)\n*   **Support the Project**: [https://openscilab.com/#donation](https://openscilab.com/#donation)","metrics":{"detailViews":5,"githubClicks":6},"dates":{"published":null,"modified":"2026-06-12T23:32:54.000Z"}}