FsSpecProtocolPathLoader
Base classes¶
Name | Children | Inherits |
---|---|---|
LoaderMixin jinjarope.loaders Loader mixin which allows to OR loaders into a choice loader. |
||
BaseLoader jinja2.loaders Baseclass for all loaders. Subclass this and override `get_source` to |
⋔ Inheritance diagram¶
graph TD
94173637831536["fsspecloaders.FsSpecProtocolPathLoader"]
94173637890544["loaders.LoaderMixin"]
139866058043616["builtins.object"]
94173636407456["loaders.BaseLoader"]
94173637890544 --> 94173637831536
139866058043616 --> 94173637890544
94173636407456 --> 94173637831536
139866058043616 --> 94173636407456
🛈 DocStrings¶
Bases: LoaderMixin
, BaseLoader
A jinja loader for fsspec filesystems.
This loader allows to access templates from an fsspec protocol path, like "github://phil65:mknodes@main/README.md"
Examples:
loader = FsSpecProtocolPathLoader()
env = Environment(loader=loader)
env.get_template("github://phil65:mknodes@main/docs/icons.jinja").render()
Source code in src/jinjarope/fsspecloaders.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|