The successor for the string module. Part of the zen standard library.
Project description
Donations
It takes me a long time to make these libraries. If you would like to support my work, Then you can follow my patreon :)
https://www.patreon.com/Schkimansky
Library
Made as a part of the zen standard library python project, This library is the successor / replacer of the standard module string. This replacement is easier to use, And has more features. Here's a example with a TextTemplate (Called "Template" in string)
import zstring
template = zstring.TextTemplate("Hello, $name! I heard that you're feeling $mood")
values = {"name": "alice", "mood": "sad"}
print(template.fill(values))
Installation
pip install zstring
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
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 zstring-1.0.4.tar.gz.
File metadata
- Download URL: zstring-1.0.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af51b8c09d9259c776f329ee0c2e8c62fc3c458659988e26cdb428e42cf06dd9
|
|
| MD5 |
99ac8f207486ab49579fd294719376ff
|
|
| BLAKE2b-256 |
0b43dc483cb860c28d49c509a810e5b2f7ab753ad8fde74ab8e0d0d92dcfffa5
|
File details
Details for the file zstring-1.0.4-py3-none-any.whl.
File metadata
- Download URL: zstring-1.0.4-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b7621dd4462878d4c8e9d5a17792c55dbbfbe6f0cc58d6fcdb7b5a7b7ea0875
|
|
| MD5 |
5281cacaadfe5aa143a6c08371a2c9e7
|
|
| BLAKE2b-256 |
20f1fff8aee1401960bf9fd91ec1f685ee8af280f27d2f0300bb4ea42bd51c97
|