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-5.3.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shortcodes-5.3.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shortcodes-5.3.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7

File hashes

Hashes for shortcodes-5.3.0.tar.gz
Algorithm Hash digest
SHA256 9ea1a3cfb649193750d82a250670eef4a969512c02f7cbbb32d040ee3e853093
MD5 14eddf18c9f5c76728004bd4189bca11
BLAKE2b-256 2e45124034e2c620576acc99e88813b53dfdf6bd5de29316059b10446e966266

See more details on using hashes here.

File details

Details for the file shortcodes-5.3.0-py3-none-any.whl.

File metadata

  • Download URL: shortcodes-5.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7

File hashes

Hashes for shortcodes-5.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50e95dfbbae3526eeaa1ce69fc67c437d8145e63a86338216883bb7396fb204e
MD5 971c4b16659b4a0c5626451aad2d0e33
BLAKE2b-256 02155c9fd68a7070586a75f3e9c059b8e037ebb578eb63093b25062a70415fef

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