THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class OrionisBytecodeCache(FileSystemBytecodeCache): (source)
Undocumented
| Method | _get |
Return the absolute path to the cache file for bucket. |
| Method | get |
Convert a template name into a human-readable cache key. |
Return the absolute path to the cache file for bucket.
| Parameters | |
bucket:Bucket | Jinja2 bucket whose key is the sanitised template name. |
| Returns | |
str | Absolute path of the form <cache_dir>/<template_name>.<digest>.cache. |
Convert a template name into a human-readable cache key.
Flattening separators and dropping the extension is a lossy transformation, so distinct templates such as mail/welcome.html and mail/welcome.j2 would share a single cache file. A short digest of the untouched name is appended to keep the mapping injective while the stem stays readable.
| Parameters | |
name:str | Template identifier (e.g. 'users/index.html'). |
filename:str or None, optional | Absolute path on disk; unused here. |
| Returns | |
str | Sanitised key used as the cache filename stem. |