utils
load_plugin_template(template_name)
¶
Loads a jinja template for a plugin (currently only airflow) from the jinja_templates folder.
Source code in lineapy/plugins/utils.py
16 17 18 19 20 21 22 23 24 25 26 |
|
slugify(value, allow_unicode=False)
¶
Taken from https://github.com/django/django/blob/master/django/utils/text.py
Convert to ASCII if 'allow_unicode' is False. Convert spaces or repeated dashes to single dashes. Remove characters that aren't alphanumerics, underscores, or hyphens. Convert to lowercase. Also strip leading and trailing whitespace, dashes, and underscores. Lastly, replace all dashes with underscores.
Copyright (c) Django Software Foundation and individual contributors. All rights reserved.
Source code in lineapy/plugins/utils.py
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 |
|