Python bindings for decancer.
You can get started with decancer_py
by installing from PyPI:
pip install -U decancer-py
decancer_py
can be used to turn sketchy text strings into their more
basic counterparts.
A single function and class are exported from decancer_py
:
CuredString
- A wrapper around a string object that can be used for comparisons.parse
- Parse a jank string into a normal string wrapped in aCuredString
object.
from decancer_py import parse, CuredString
parsed: CuredString = parse("𝔂EE𝓣")
assert "ee" in parsed
assert parsed == "yeet"
assert parsed.contains("ee")
assert parsed.ends_with("et")
assert parsed.starts_with("ye")
# Implicit string conversion
print(parsed)
# yeet
decancer_py
is licensed under the
MIT License.