jinja2_fnmatch_extension
Status (master branch)
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!)
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)
| File | Size | Uploaded | |
|---|---|---|---|
| jinja2_fnmatch_extension-1.0.3.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|