Skip to main content

Shortcodes

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.

Metadata

Release files for shortcodes 5.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shortcodes 5.4.0
File Size Uploaded Provenance
shortcodes-5.4.0.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for shortcodes 5.4.0
File Interpreter ABI Platform
shortcodes-5.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / shortcodes-5.4.0.tar.gz

Download URL shortcodes-5.4.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f3fe78edc71db62c0155c0cde593172dcd5b18bdb1b0c980ae79283a44bf5d29
BLAKE2b-256 checksum
How to use checksums
00918331b970558348d9d346df4cdb0ab058e159cd0b1ba5245464df02a5502b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / shortcodes-5.4.0-py3-none-any.whl

Download URL shortcodes-5.4.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
775903803f179fcf6a04530e4f8dba108cc9507956656c05527a84df2b545d1a
BLAKE2b-256 checksum
How to use checksums
7c349e8722e1d74ad62b48c32334e7669b9baa78b664a8702ef467cb283800b3
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for shortcodes 5.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page