elide-text ========== [![Build Status][github-actions-image]][github-actions-url] [![Coverage Status][codecov-image]][codecov-url] [![Requirements Status][requires-image]][requires-url] [![PyPI version][pypi-image]][pypi-url] A very simple text truncating function. Install ------- ```bash pip install elide-text ``` Usage ----- ```python 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](CONTRIBUTING.md). Developer --------- * [William Belle](https://github.com/williambelle) License ------- The MIT License (MIT) [github-actions-image]: https://github.com/williambelle/elide-text/workflows/Build/badge.svg?branch=master [github-actions-url]: https://github.com/williambelle/elide-text/actions [codecov-image]:https://codecov.io/gh/williambelle/elide-text/branch/master/graph/badge.svg [codecov-url]:https://codecov.io/gh/williambelle/elide-text [requires-image]:https://requires.io/github/williambelle/elide-text/requirements.svg?branch=master [requires-url]:https://requires.io/github/williambelle/elide-text/requirements/?branch=master [pypi-image]: https://img.shields.io/pypi/v/elide-text [pypi-url]: https://pypi.org/project/elide-text/