Skip to main content

A very simple text truncating function

Project description

elide-text

Build Status Coverage Status Requirements Status

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)

Project details


Download files

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

Source Distribution

elide-text-0.0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

elide_text-0.0.1-py2-none-any.whl (3.2 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page