Skip to content

williambelle/elide-text

Repository files navigation

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)