A lightweight library for easy-to-use text truncation with a friendly interface.
Project description
snipstr
A lightweight library for easy-to-use text truncation with a friendly interface.
⚠️ Attention ⚠️
- In development.
- May not work as you expect and may cause errors.
Example
>>> from snipstr import SnipStr
>>> text = 'Python source code and installers are available for download for all versions!'
>>> s = SnipStr(text)
>>> s.snip_to(16).by_side('right').with_replacement_symbol()
>>> str(s)
'Python source...'
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
snipstr-0.1.0.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snipstr-0.1.0.tar.gz.
File metadata
- Download URL: snipstr-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfdeab1bb7cbd714e8c747317f158ab135244297eac5ab0c711d6c51b68b5d18
|
|
| MD5 |
b46e72ad247a50a817e1ae65af702be7
|
|
| BLAKE2b-256 |
b1fca21c1df3fb833db6d1e0d041c13a9d5630286e41b63bf1a4bf16b42c78dc
|
File details
Details for the file snipstr-0.1.0-py3-none-any.whl.
File metadata
- Download URL: snipstr-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3534d4ae924baf6b5e0b79c24286de2da06de467bb464b67740b2a49740304ec
|
|
| MD5 |
e5bd0a79a0a4ba84877da85149edf530
|
|
| BLAKE2b-256 |
8bb1bcc2a803c86ee3447a2582298cf51ebd01a5809d65bb7414ce452828089e
|