ip2region 3.0.0 and pip install desc

This commit is contained in:
lionsoul2014 2025-10-31 23:41:35 +08:00
parent e753437afc
commit 732d4eb945
2 changed files with 8 additions and 3 deletions

View File

@ -2,6 +2,11 @@
# 使用方式
### 安装 `ip2region`
```bash
pip3 install ip2region
```
### 关于查询 API
查询 API 的原型为:
```python
@ -69,7 +74,7 @@ except Exception as e:
# 3、关闭资源
searcher.close()
# 备注:每个线程需要单独创建一个独立的 Searcher 对象,但是都共享全局的制度 vIndex 缓存。
# 备注:每个线程需要单独创建一个独立的 Searcher 对象
```
### 缓存 `VectorIndex` 索引

View File

@ -17,7 +17,7 @@ setuptools.setup(
install_requires=[],
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
),
)
)