decancer-py-0.2.1
توضیحات
Python bindings for decancer.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | decancer-py-0.2.1 |
| نام | decancer-py |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jonxslays |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Jonxslays/decancer_py |
| آدرس اینترنتی | https://pypi.org/project/decancer-py/ |
| مجوز | MIT |
# decancer_py
Python bindings for [decancer](https://github.com/null8626/decancer).
## Installation
You can get started with `decancer_py` by installing from PyPI:
```bash
pip install -U decancer-py
```
## Usage
`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 a `CuredString` object.
```py
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
```
## License
`decancer_py` is licensed under the
[MIT License](https://github.com/Jonxslays/decancer_py/blob/master/LICENSE).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<3.12 | Python |
نحوه نصب
نصب پکیج whl decancer-py-0.2.1:
pip install decancer-py-0.2.1.whl
نصب پکیج tar.gz decancer-py-0.2.1:
pip install decancer-py-0.2.1.tar.gz