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
flip("nohtyp") # Output: python
generateId(length = 5) # Returns random id, example: abc12
allowedOnly("123 some 777", "1234567890s") # Output: 123s777
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.1.0.tar.gz
(2.1 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.1.0.tar.gz.
File metadata
- Download URL: bestring-1.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76a2b6c63dadc8e30717dbe6cfa9ff6989ea15e95884121bcb702e664597e2a7
|
|
| MD5 |
c0b73fe194d21f021a7c6dae295f7602
|
|
| BLAKE2b-256 |
b6b842c7c4f6e29c95dcf8bc33d6aee9f9b6289433fd270ce8843863441baf09
|
File details
Details for the file bestring-1.1.0-py3-none-any.whl.
File metadata
- Download URL: bestring-1.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 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 |
e3967f799ed13cc6af031e054c27a66f963c881af4df0f2f723580e9f0156fac
|
|
| MD5 |
8864aa3952d3a2a5528ae87aeb36686b
|
|
| BLAKE2b-256 |
746fee26f55352a251995c1b3d1f483ca3b93b976b0d8039f47571bea00f4c7e
|