|
|
před 3 roky | |
|---|---|---|
| .. | ||
| .github | před 3 roky | |
| src | před 3 roky | |
| tests | před 3 roky | |
| .editorconfig | před 3 roky | |
| .flake8 | před 3 roky | |
| .gitignore | před 3 roky | |
| CHANGELOG.md | před 3 roky | |
| CONTRIBUTING.md | před 3 roky | |
| LICENSE | před 3 roky | |
| README.md | před 3 roky | |
| requirements-dev.txt | před 3 roky | |
| setup.py | před 3 roky | |
| tox.ini | před 3 roky | |
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)