|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| .github | há 3 anos atrás | |
| src | há 3 anos atrás | |
| tests | há 3 anos atrás | |
| .editorconfig | há 3 anos atrás | |
| .flake8 | há 3 anos atrás | |
| .gitignore | há 3 anos atrás | |
| CHANGELOG.md | há 3 anos atrás | |
| CONTRIBUTING.md | há 3 anos atrás | |
| LICENSE | há 3 anos atrás | |
| README.md | há 3 anos atrás | |
| requirements-dev.txt | há 3 anos atrás | |
| setup.py | há 3 anos atrás | |
| tox.ini | há 3 anos atrás | |
A very simple text truncating function.
pip install elide-text
from elidetext import elide_text
text = elide_text("A brand new tool devoted to complex neuron models", 25)
print(text) #=> A brand new tool devoted…
text = elide_text("🍺📰📚🍮🌵📴🎯🌿👂👓👌", 6)
print(text) #=> 🍺📰📚🍮🌵…
Contributions are always welcome.
See Contributing.
The MIT License (MIT)