semvec/pypi-packages huggingface dataset:
flask-template-master 0.1.0
A flask plugin to create a template render service

flask-template-master
=====================

.. image:: https://img.shields.io/pypi/v/flask-template-master.svg
    :target: https://pypi.python.org/pypi/flask-template-master
    :alt: Latest PyPI version

.. image:: https://travis-ci.org/AKuederle/flask-template-master.png
   :target: https://travis-ci.org/AKuederle/flask-template-master
   :alt: Latest Travis CI build status

This is a little Python package, that allows you to run a small templating webserver in a handfull lines of code.
This webserver can handle all your default email responses, create customized letter heads or even create dynamically generated PDFs.
The idea is, you set up the server with access to all your template files and send it a set of variables.
In return you will get you template text with all your variables included or even directly a beautifully rendered PDF file.
The webserver is based on flask and flask-restfull and uses the jinja templating language.

Features:

- Support for multiple Template Loader and multiple endpoints
- Integrate it seamlessly in bigger flask applications (this means you can handle your login and permission system)
- Support for global variables, that can be accessed by all templates
- Easy to extend by subclassing the provided models

Todo
----
- pypi publishing

Notes
-----
- github/gitlab?

Usage
-----

Installation
------------

Requirements
^^^^^^^^^^^^
See requirements.txt for dev requirements and setup.py for prod requirements

Compatibility
-------------

Licence
-------

Authors
-------

`flask-template-master` was written by `Arne Küderle <a.kuederle@gmail.com>`_.
canonicalwebteam.views-from-yaml 0.2.3
A helper function for creating Django views from a YAML file of URL paths

A helper function for creating views from a YAML file of URL paths
==================================================================

Installation
------------

.. code:: bash

    pip install canonicalwebteam.views-from-yaml

Usage
-----

E.g. create a YAML file:

.. code:: yaml
    # url-settings.yaml
    some/url/path: {"content": "Hello world!"}
    another/path: {"content": "Different content"}

And edit your Django app's ``urls.py``\:

.. code:: python

    # django_app/urls.py

    from canonicalwebteam.views_from_yaml import load_views_from_file

    def url_view(request, url_settings):
        return HttpResponse(url_settings['content'])

    urlpatterns = load_views_from_file(
        yaml_filepath="url-settings.yaml",
        view_callback=url_view
    )

Now if you visit `http://your-django-site/some/url/path` you should see
"Hello world!".