ipdb-python
ipdb-python copied to clipboard
IPIP.net officially supported IP database ipdb format parsing library
City db = new City("ip.ipdb"); System.out.println(Arrays.toString(db.find("1.1.1.1", "CN"))); 会报错 Exception in thread "main" java.lang.IllegalAccessError: class net.ipip.ipdb.Reader (in unnamed module @0x5479e3f) cannot access class sun.net.util.IPAddressUtil (in module java.base) because module java.base does...
PyPI 上的 1.6.1 版本包含对 Python 3.7、3.8 声明支持,修改了 `ipdb/database.py` 中的错误信息等变动,这些变动均未在此仓库中同步,也没有对应的 1.6.1 tag。
Add wheel requires
安装后的包名 ipdb 和 https://github.com/gotcha/ipdb (集成了 ipython 的 pdb 调试工具)重名,导致只能二选一。 是否可以把安装后的包名改成 ipip?
It resolves #5.
- support read compressed ipdb like `gzip` - refactor code - factor out `Database` class - `City`,`District`,`IDC`,`BaseStation` subclass from `Database`