wrapclibΒΆ


Links: github, documentation, wrapclib, blog
wrapclib is a wrapper for some C libraries difficult to build otherwise. The first one to be wrapped is re2 with some code taken from pyre2.
<<<
from wrapclib import re2
s = "<h1>mot</h1>"
print(re2.compile("(<.*>)").match(s).groups())
print(re2.findall("(<.*>)", s))
>>>
('<h1>mot</h1>',)
[('<h1>mot</h1>',)]