PinInPy 1.0.0__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pininpy-1.0.0 → pininpy-1.0.2}/.github/workflows/python-publish.yml +1 -1
- {pininpy-1.0.0 → pininpy-1.0.2}/PKG-INFO +1 -1
- {pininpy-1.0.0 → pininpy-1.0.2}/package/__init__.py +3 -5
- {pininpy-1.0.0 → pininpy-1.0.2}/pyproject.toml +1 -1
- {pininpy-1.0.0 → pininpy-1.0.2}/.editorconfig +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/.gitignore +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/.gitmodules +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/CMakeLists.txt +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/LICENSE +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/.editorconfig +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/.gitattributes +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/.gitignore +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/CMakeLists.txt +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/CMakeSettings.json +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/FFIExample/PinInLua.lua +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/LICENSE +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/README.md +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/cmake/PinIn4CppConfig.cmake.in +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/example/PinyinTest.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/Keyboard.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/ParallelSearch.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/PinIn.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/PinInCAPI.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/PinyinFormat.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/TreeSearcher.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/detail/Accelerator.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/detail/AdaptiveContainers.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/detail/BinUtils.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/detail/IndexSet.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/detail/ObjectPool.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/detail/StringPool.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/include/PinIn4Cpp/detail/StringUtils.h +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/licenses/PinIn.txt +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/licenses/pinyin-data.txt +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/Keyboard.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/PinIn.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/PinInCAPI.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/PinyinFormat.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/TreeSearcher.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/utils/Accelerator.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/utils/BinUtils.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/utils/IndexSet.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/utils/StringPool.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/src/utils/StringUtils.cpp +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/test_data/large.txt +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/test_data/pinyin.txt +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/PinIn4Cpp/test_data/small.txt +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/README.md +0 -0
- {pininpy-1.0.0 → pininpy-1.0.2}/build_cffi.py +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
from ._pinin4cpp_cffi import lib,ffi
|
|
2
2
|
from enum import IntEnum
|
|
3
|
-
import
|
|
3
|
+
from typing import Union
|
|
4
4
|
|
|
5
5
|
_pffi = ffi
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
__version__ = "1.0.0"
|
|
7
|
+
__version__ = "1.0.2"
|
|
10
8
|
__all__ = ["PinIn", "TreeSearcher", "Logic", "Keyboard", "PinInConfig", "DeserializeException", "PinInInitException", "TreeSearcherInitException"]
|
|
11
9
|
|
|
12
10
|
def _create_pinin(handle):
|
|
@@ -255,7 +253,7 @@ class PinIn:
|
|
|
255
253
|
class TreeSearcher:
|
|
256
254
|
'''用于搜索的搜索树'''
|
|
257
255
|
cdata = None
|
|
258
|
-
def __init__(self, logic:Logic, PathOrPinIn:str
|
|
256
|
+
def __init__(self, logic:Logic, PathOrPinIn:Union[str, PinIn]):
|
|
259
257
|
temp_handle = None
|
|
260
258
|
if type(PathOrPinIn) == str:
|
|
261
259
|
temp_handle = lib.PinInCpp_TreeSearcher_NewPath(logic, PathOrPinIn.encode("utf-8"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|