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.

Source Distribution

shortcodes-3.0.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: shortcodes-3.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for shortcodes-3.0.0.tar.gz
Algorithm Hash digest
SHA256 49f4f252bac10a73459f2607e1dc91bcdf41832b115e20b609fffcfa284f7fea
MD5 8e6503368433dbaa6bd6bf45479dbb71
BLAKE2b-256 2360a2a4241b6ad7f4fffe6a05af7e01f0abe3ae3adedc38fc69072b2f4ea74f

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