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
zstring-1.0.4.tar.gz
(6.6 kB
view hashes)