Chinalionsoul2014/ip2region
Ip2region is an offline IP-to-Region localization library and IP data management framework with both IPv4 and IPv6 supports, 10-microsecond level query efficiency, xdb search client for many programming languages
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#1 Repository Của Tuần
��d Offline IP localization at 10-microsecond speed
ip2region delivers city-level IP geolocation offline, supporting IPv4 and IPv6 with sub-100 microsecond query response times.
ip2region is an offline IP address localization library and data management framework. It provides raw IP data for both IPv4 and IPv6, along with pre-built xdb files for city-level queries. The region format follows Country|Province|City|ISP|iso-alpha2-code, with Chinese domestic data in Chinese and international data in English. It supports xdb data generation and query clients across many programming languages.
✨ Highlights
- Offline Localization: No network dependency, works entirely with local xdb files.
- Dual Stack Support: Handles both IPv4 and IPv6 address lookups.
- High-Speed Query: Single query response at 10-microsecond level with xdb files.
- Memory Acceleration: vIndex caching (512KiB) or full xdb file caching options.
- Data Deduplication: Automatically merges adjacent IP segments and compresses data.
- Custom Regions: Append business-specific data like GPS or zip codes to region info.
- Multi-Language Bindings: Supports Go, Java, Python, PHP, C, Rust, JavaScript, and more.
- Unified API: Single interface for querying both IPv4 and IPv6 data.
💡 Why it matters
ip2region stands out by offering fully offline IP geolocation without relying on external APIs, making it ideal for privacy-sensitive or high-performance applications. Its xdb engine provides exceptional query speeds while keeping memory usage low through optional caching strategies.
The framework also acts as a complete IP data management solution, allowing users to generate, update, and customize their own IP databases. This makes it suitable for applications requiring precise control over IP localization data, from ad targeting to network analytics.
#IPGeolocation #IPv6 #OfflineLibrary #TiniX
Similar Projects
Discover other similar projects and AI models.
Go library for handling IP addresses and subnets, both IPv4 and IPv6
PHP library for IPv4 subnet calculations, CIDR operations, and network planning.
This module is a Python Library that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type and IAB category that any IP address or host name originates from.
Free, daily-updated IP to Country & ASN databases and samples from www.iplocate.io