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.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zstring-1.0.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for zstring-1.0.4.tar.gz
Algorithm Hash digest
SHA256 af51b8c09d9259c776f329ee0c2e8c62fc3c458659988e26cdb428e42cf06dd9
MD5 99ac8f207486ab49579fd294719376ff
BLAKE2b-256 0b43dc483cb860c28d49c509a810e5b2f7ab753ad8fde74ab8e0d0d92dcfffa5

See more details on using hashes here.

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

Hashes for zstring-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7b7621dd4462878d4c8e9d5a17792c55dbbfbe6f0cc58d6fcdb7b5a7b7ea0875
MD5 5281cacaadfe5aa143a6c08371a2c9e7
BLAKE2b-256 20f1fff8aee1401960bf9fd91ec1f685ee8af280f27d2f0300bb4ea42bd51c97

See more details on using hashes here.

Supported by

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