forked from KeyviDev/keyvi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- using libcpp_utf8_output_string from autowrap
(OpenMS/autowrap#71) - set minimum required autowrap version
- Loading branch information
1 parent
8f964f6
commit a1207eb
Showing
5 changed files
with
13 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
msgpack-python | ||
autowrap | ||
autowrap>=0.16.0 | ||
pytest | ||
twine | ||
wheel |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from .pykeyvi_autowrap_conversion_providers import * | ||
from autowrap.ConversionProvider import special_converters | ||
|
||
|
||
def register_converters(): | ||
special_converters.append(MatchIteratorPairConverter()) | ||
special_converters.append(OutputStdStringUnicodeConverter()) |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from libcpp.string cimport string as libcpp_utf8_string | ||
from libcpp.string cimport string as libcpp_utf8_output_string | ||
|
||
cdef extern from "vector/vector_types.h" namespace "keyvi::vector": | ||
cdef cppclass JsonVector: | ||
JsonVector(libcpp_utf8_string filename) except + | ||
libcpp_utf8_string Get(size_t index) # wrap-ignore | ||
JsonVector(libcpp_utf8_output_string filename) except + | ||
libcpp_utf8_output_string Get(size_t index) # wrap-ignore | ||
size_t Size() | ||
libcpp_utf8_string Manifest() | ||
libcpp_utf8_output_string Manifest() | ||
|
||
cdef extern from "vector/vector_types.h" namespace "keyvi::vector": | ||
cdef cppclass StringVector: | ||
StringVector(libcpp_utf8_string filename) except + | ||
libcpp_utf8_string Get(size_t index) | ||
StringVector(libcpp_utf8_output_string filename) except + | ||
libcpp_utf8_output_string Get(size_t index) | ||
size_t Size() | ||
libcpp_utf8_string Manifest() | ||
libcpp_utf8_output_string Manifest() |