添加 Python 补丁覆盖工具(Patch Override Tool)#410
Open
lycosa9527 wants to merge 2 commits intolionsoul2014:masterfrom
Open
添加 Python 补丁覆盖工具(Patch Override Tool)#410lycosa9527 wants to merge 2 commits intolionsoul2014:masterfrom
lycosa9527 wants to merge 2 commits intolionsoul2014:masterfrom
Conversation
Owner
|
代码我仔细看了看,确实是一个不错的想法,用于紧急的临时数据修复或者数据验证,有两个问题看能否一起做了: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 功能说明
本 PR 添加了一个轻量级的 Python 补丁覆盖工具,用于应用 ip2region 数据库补丁,无需修改原始的 xdb 数据库文件。
核心特性
解决的问题
当前 ip2region 项目提供了 Java/Golang/C++ 等语言的制作工具,可以直接修改 xdb 文件。但在某些场景下,用户可能希望:
本工具提供了一种非破坏性的补丁应用方法,完美解决了上述需求。
文件结构
使用示例
与现有工具对比
测试
data/fix目录读取补丁文件文档
建议的放置位置
建议将本工具放置在
maker/python/patch_override/目录下,与现有的 Python xdb 生成工具(maker/python/)保持一致的目录结构。相关 Issue
如有相关的 Issue,请在此处引用。
检查清单