Skip to main content

tstring

main codecov build PyPI PyPI - Downloads

Curly-brace string templates in Python.

pip install tstring

Usage

from tstring import Template

template = Template("{a}.{b}.{c}")
print(template.substitute(a="d", b="e", c="f"))
>>> "d.e.f"

Support for optional variable substitutions is also included:

template = Template("{a}.{b}[.{c}]")
print(template.substitute(a="d", b="e", c="f"))
>>> "d.e.f"
print(template.substitute(a="d", b="e"))
>>> "d.e"

Metadata

Release files for tstring 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tstring 0.1.2
File Size Uploaded Provenance Actions
tstring-0.1.2.tar.gz 6.3 kB Without provenance Details for tstring-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tstring 0.1.2
File Interpreter ABI Platform Actions
tstring-0.1.2-py3-none-any.whl Python 3 none any Details for tstring-0.1.2-py3-none-any.whl

Total release size: 11.2 kB

Release files / tstring-0.1.2.tar.gz

Download URL tstring-0.1.2.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f97eafddb37395c6643d15a5cd1efa6382726de2a7af85ca74257ba917be76b8
BLAKE2b-256 checksum
How to use checksums
fb2ad26bfeb727aebf47284a625f089b0c439abc8b033d7a6f0bbe6e491bb98d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / tstring-0.1.2-py3-none-any.whl

Download URL tstring-0.1.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dda745a2654a7b393d2c73b9fe1a96f873f65226d42b07067ffb517252a6145e
BLAKE2b-256 checksum
How to use checksums
c581ff08bc02422ea321d9a9f4dd464f1aeb5ae8c38445aae38cc6bf3e259dcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Security for tstring 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page