![]() |
hace 2 años | |
---|---|---|
.. | ||
.github | hace 2 años | |
src | hace 2 años | |
tests | hace 2 años | |
.editorconfig | hace 2 años | |
.flake8 | hace 2 años | |
.gitignore | hace 2 años | |
CHANGELOG.md | hace 2 años | |
CONTRIBUTING.md | hace 2 años | |
LICENSE | hace 2 años | |
README.md | hace 2 años | |
requirements-dev.txt | hace 2 años | |
setup.py | hace 2 años | |
tox.ini | hace 2 años |
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)