Skip to main content

jinja2_fnmatch_extension

Status (master branch)

GitHub CI Maintenance

What is it ?

This is a jinja2 extension to expose fnmatch function.

Syntax

The syntax is |fnmatch(pattern).

Example

from jinja2 import Template, Environment

# We load the extension in a jinja2 Environment
env = Environment(extensions=["jinja2_fnmatch_extension.FnMatchExtension"])

# For the example, we use a template from a simple string
template = env.from_string("{{ 'foo-bar'|fnmatch('foo-*') }}")
result = template.render()

assert result == "True"
# [...]

Contributing guide

See CONTRIBUTING.md file.

Code of Conduct

See CODE_OF_CONDUCT.md file.

Sponsors

(If you are officially paid to work on MetWork Framework, please contact us to add your company logo here!)

logo

Metadata

Release files for jinja2-fnmatch-extension 1.0.3

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

Source distribution (sdist)

Source distribution for jinja2-fnmatch-extension 1.0.3
File Size Uploaded
jinja2_fnmatch_extension-1.0.3.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jinja2-fnmatch-extension 1.0.3
File Interpreter ABI Platform
jinja2_fnmatch_extension-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / jinja2_fnmatch_extension-1.0.3.tar.gz

Download URL jinja2_fnmatch_extension-1.0.3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
95943afb38afd7d948ce636f9776fa975d6e6f2e4e010158f95103c7aea1df20
BLAKE2b-256 checksum
How to use checksums
a80517d6f4c2a5ae1e2e33ccf6393bc72ab3d5e8665c1c3e4574cceca98a9da1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / jinja2_fnmatch_extension-1.0.3-py3-none-any.whl

Download URL jinja2_fnmatch_extension-1.0.3-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0993e5115482c80163670c1c37dde4b5797a51d18532be32c4cfcdb8d4c0ebf5
BLAKE2b-256 checksum
How to use checksums
ff12febe05c4f436a36ac6b16ba6a36517397c4cfd6fb9d27d6ab7c9ff031566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

0.0.4

2 release files

0.0.2

2 release files

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