TextLoom
Lightweight text processing utilities for Python.
TextLoom provides a small collection of reusable tools for:
- Transliteration
- Text normalization
- Identifier generation
- Filename normalization
- Name deduplication
The library was extracted from larger data-processing projects to provide a focused and dependency-free toolkit for text handling.
Installation
pip install textloom
Usage
import textloom as tl
Transliteration
tl.transliterate("Привет Мир")
# "Privet Mir"
Text normalization
tl.normalize_text(" Привет Мир ")
# "privet mir"
Identifier normalization
tl.normalize_identifier("Цена товара")
# "tsena_tovara"
Filename normalization
tl.normalize_filename("Мой файл.xlsx")
# "moy-fayl.xlsx"
Deduplication
tl.deduplicate_names(["name", "name", "name"])
# ["name", "name_2", "name_3"]
Design Goals
- Zero runtime dependencies
- Predictable behavior
- Small, intuitive API
- Reusable across projects
- Easy to extend
License
MIT License. See the LICENSE file for details.
Release files for textloom 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textloom-0.1.0.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| textloom-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:12.8 kB
Release files / textloom-0.1.0.tar.gz
| Download URL | textloom-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bac6288c3b3111863b3838c4f5b03cdf5971dedc6e2e548dab6f18f5cf7e4898
|
|
BLAKE2b-256 checksum How to use checksums |
71a8e90951feec7384e68e879cbd1c93425fdd60d6c80f4a9479624b3c0e928e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / textloom-0.1.0-py3-none-any.whl
| Download URL | textloom-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
062bff005006fe5a1e29e5076703696df770e4f57f460162995097db3a6496f7
|
|
BLAKE2b-256 checksum How to use checksums |
8a2e95d07330537d7220c642c308f4ab243929492bf8d8d79de72f7e6293a4ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|