Skip to main content

A 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.0.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for shortcodes-2.0.1.tar.gz
Algorithm Hash digest
SHA256 d8ef5a0840ef7d6f8bca8f301fec2a7ddb91ad04218dd5be42f8aff9ef44d14a
MD5 7e65b5ce29861d35f0afa7d191b0b372
BLAKE2b-256 6acc10e96f58cf8a7a8e57f759de1320cb0a9ae92c461d67f66bd51fcfe4b067

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