Skip to main content

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.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

zstring-1.0.0-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page