Skip to main content

A library for parsing customizable WordPress-style shortcodes.

Project description

A library for parsing customizable WordPress-style shortcodes. Useful as a drop-in component in text-processing applications.

Supports shortcodes with space-separated positional and keyword arguments:

[% tag arg1 "arg 2" key1=arg3 key2="arg 4" %]

Shortcodes can be atomic or block-scoped and can be nested to any depth. Innermost shortcodes are processed first:

[% tag %] ... content with [% more %] shortcodes ... [% endtag %]

Shortcode syntax is customizable:

<tag arg="foo"> ... </tag>

See the project’s Github homepage for further details.

Note that this package requires Python 3.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for shortcodes, version 5.1.1
Filename, size File type Python version Upload date Hashes
Filename, size shortcodes-5.1.1-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size shortcodes-5.1.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page