--- title: Template Formatter keywords: fastai sidebar: home_sidebar nb_path: "nbs/template.formatter.ipynb" ---
{% raw %}
{% endraw %}

Template Formatter

{% raw %}

class TemplateFormatter[source]

TemplateFormatter(template_dict:Dict[str, str], replace_dict:Dict[str, str], tgt_path:Union[str, Path], verbose:bool=False)

{% endraw %} {% raw %}
{% endraw %}

Template CLI

With the plugin_from_template CLI, you can easily create a plugin where all CI pipelines, docker files, and test setups are configured for you. Multiple templates are available, to see the complete list use:

plugin_from_template --list_templates

{% raw %}

plugin_from_template[source]

plugin_from_template(list_templates:"List available plugin templates"=False, user:"Your Gitlab username"=None, repo_url:"The url of your empty Gitlab plugin repository"=None, plugin_name:"Display name of your plugin"=None, template_name:"Name of the template, use list_templates to see all available options"='basic', package_name:"Name of your plugin python package"=None, description:"Description of your plugin"=None, target_dir:"Directory to output the formatted template"='.')

{% endraw %} {% raw %}
{% endraw %} {% raw %}
!plugin_from_template --list_templates
Available templates:
basic
classifier_plugin
{% endraw %}