use the py-ip2region as the pypi package name

This commit is contained in:
lionsoul2014 2025-11-02 18:34:21 +08:00
parent 784f336646
commit 32a755ac3f
2 changed files with 5 additions and 5 deletions

View File

@ -2,9 +2,9 @@
# 使用方式
### 安装 `ip2region`
### 安装 `py-ip2region`
```bash
pip3 install ip2region
pip3 install py-ip2region
```
### 关于查询 API
@ -218,4 +218,4 @@ python3 bench_test.py --db=../../data/ip2region_v6.xdb --src=../../data/ipv6_sou
```
可以通过分别设置 `cache-policy` 为 file/vectorIndex/content 来测试三种不同缓存实现的效果。
@Note: 注意 bench 使用的 src 文件要是生成对应 xdb 文件相同的源文件。
@Note: 注意 bench 使用的 src 文件要是生成对应 xdb 文件相同的源文件。

View File

@ -1,9 +1,9 @@
import setuptools
setuptools.setup(
name="ip2region",
name="py-ip2region",
version="3.0.0",
description="official python binding for ip2region with both IPv4 and IPv6 supported",
description="ip2region official python binding with both IPv4 and IPv6 supported",
long_description=open("ReadMe.md", encoding='utf-8').read(),
long_description_content_type='text/markdown',