Skip to main content

A generic, customizable shortcode parser.

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.

Source Distribution

shortcodes-2.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file shortcodes-2.1.0.tar.gz.

File metadata

  • Download URL: shortcodes-2.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shortcodes-2.1.0.tar.gz
Algorithm Hash digest
SHA256 469d7343600e74b9b9d96a48e71c39962180d0c8d8887887e8ceea806939cf5c
MD5 01f0a1818f4d03a341fabb2b40c36840
BLAKE2b-256 8dae161eb1cef2b9179ed066325b04c071ea25450c031dc2ec68012926e1e628

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