刘凡 9ff4d1d109 add S3,archive,truncate 2 anni fa
..
.github 9ff4d1d109 add S3,archive,truncate 2 anni fa
src 9ff4d1d109 add S3,archive,truncate 2 anni fa
tests 9ff4d1d109 add S3,archive,truncate 2 anni fa
.editorconfig 9ff4d1d109 add S3,archive,truncate 2 anni fa
.flake8 9ff4d1d109 add S3,archive,truncate 2 anni fa
.gitignore 9ff4d1d109 add S3,archive,truncate 2 anni fa
CHANGELOG.md 9ff4d1d109 add S3,archive,truncate 2 anni fa
CONTRIBUTING.md 9ff4d1d109 add S3,archive,truncate 2 anni fa
LICENSE 9ff4d1d109 add S3,archive,truncate 2 anni fa
README.md 9ff4d1d109 add S3,archive,truncate 2 anni fa
requirements-dev.txt 9ff4d1d109 add S3,archive,truncate 2 anni fa
setup.py 9ff4d1d109 add S3,archive,truncate 2 anni fa
tox.ini 9ff4d1d109 add S3,archive,truncate 2 anni fa

README.md

elide-text

Build Status Coverage Status Requirements Status PyPI version

A very simple text truncating function.

Install

pip install elide-text

Usage

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) #=> 🍺📰📚🍮🌵…

Contributing

Contributions are always welcome.

See Contributing.

Developer

License

The MIT License (MIT)