Skip to main content

A very simple text truncating function

Project description


Build Status Coverage Status Requirements Status

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)

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for elide-text, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size elide_text-0.0.1-py2-none-any.whl (3.2 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size elide-text-0.0.1.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page