jimbaker / tagstr

This repo contains an issue tracker, examples, and early work related to PEP 999: Tag Strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tag strings

This PEP introduces tag strings for custom, repeatable string processing. Tag strings are an extension to f-strings, with a custom function -- the "tag" -- in place of the f prefix. This function can then provide rich features such as safety checks, lazy evaluation, domain specific languages (DSLs) for web templating, and more.

Tag strings are similar to JavaScript tagged templates <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates>_ and similar ideas in other languages.

Examples repo

To keep the conversation here focused on the PEP, we moved supporting material to a companion repo. There you can find resources such as:

  • JupyterLite playground for tag strings
  • Docker builds
  • Long-form tutorials
  • Example code

Related Work

About

This repo contains an issue tracker, examples, and early work related to PEP 999: Tag Strings