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
Release history Release notifications | RSS feed
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.4.0.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file shortcodes-5.4.0.tar.gz
.
File metadata
- Download URL: shortcodes-5.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3fe78edc71db62c0155c0cde593172dcd5b18bdb1b0c980ae79283a44bf5d29 |
|
MD5 | 49c8760dd8ad0db5ee6e27d47c1e023c |
|
BLAKE2b-256 | 00918331b970558348d9d346df4cdb0ab058e159cd0b1ba5245464df02a5502b |
File details
Details for the file shortcodes-5.4.0-py3-none-any.whl
.
File metadata
- Download URL: shortcodes-5.4.0-py3-none-any.whl
- Upload date:
- Size: 4.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 775903803f179fcf6a04530e4f8dba108cc9507956656c05527a84df2b545d1a |
|
MD5 | 413ec23964fe6290425efadda27cd49e |
|
BLAKE2b-256 | 7c349e8722e1d74ad62b48c32334e7669b9baa78b664a8702ef467cb283800b3 |