More things to do with strings
Project description
More things to do with strings!
Example:
from bestring import *
truncate("This is a very long text.") # Output: This is a very long ...
toDomain("Hello world!") # Output: https://www.hello-world.com
wordsCount("i love python") # Output: 3
removeDigits("33p3y3t3h3o3n33") # Output: python
lower("some text", False) # Output: SOME TEXT
upper("SOME TEXT", False) # Output: some text
lower("SOME TEXT", True) # Output: some text
upper("some text", True) # Output: SOME TEXT
replaces("some text", ["s", "t", "x", "m"], "h") # Output: hohe hehh
Installation:
pip install bestring
If wont work:
pip3 install bestring
Enjoy!
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
bestring-1.0.4.tar.gz
(1.9 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 bestring-1.0.4.tar.gz.
File metadata
- Download URL: bestring-1.0.4.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fb39d7dbdd55a2f9fe44c73e16d3de9c61fcf122c3678eca50b3cbb2091d26c
|
|
| MD5 |
f7ba4717eead197e5d89fd43152282cf
|
|
| BLAKE2b-256 |
fdba6eed59786cbd5df65dcb72e9d728df531b76ddd11a3b0625793e6159600a
|
File details
Details for the file bestring-1.0.4-py3-none-any.whl.
File metadata
- Download URL: bestring-1.0.4-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7711667c8807447aa7ba9bea861489afea36e1f110e555965d919a6c42d0ce7c
|
|
| MD5 |
3479069cb6c598fbd8455fd4924b5b9d
|
|
| BLAKE2b-256 |
78c898cc9ecccb22426236fb275e262252b7f84c2054b9acf221f0e9c951d41a
|