<commit_before>=============
anytemplate
=============

About
======

.. image:: https://api.travis-ci.org/ssato/python-anytemplate.png?branch=master
   :target: https://travis-ci.org/ssato/python-anytemplate
   :alt: Test status

.. image:: https://coveralls.io/repos/ssato/python-anytemplate/badge.png
   :target: https://coveralls.io/r/ssato/python-anytemplate
   :alt: Coverage Status

.. image:: https://landscape.io/github/ssato/python-anytemplate/master/landscape.png
   :target: https://landscape.io/github/ssato/python-anytemplate/master
   :alt: Code Health

This is a python library works as an abstraction layer for various python
template engines and rendering libraries, and provide a few very simple and
easily understandable APIs to render templates.

It also provide a CLI tool called anytemplate_cli to render templates written
in these various template languages.

- Author: <NAME> <<EMAIL>>
- License: MIT (changed from BSD-3, BSD w/o advertisement clause)

It supports the following template engines currently:

.. csv-table::
   :header: "Name", "Notes"
   :widths: 15, 65

   `string.Template <https://www.python.org>`_ , Always available as it's included in python standard lib.
   `jinja2 <http://jinja.pocoo.org>`_ , Highest priory will be given and becomes default if found
   `mako <http://www.makotemplates.org>`_ ,
   `tenjin <http://www.kuwata-lab.com/tenjin/>`_ , renders() API is not supported
   `Cheetah <http://www.cheetahtemplate.org>`_ , Only available for python 2.x as it does not look supporting python 3.x
   `Pystache <https://github.com/defunkt/pystache>`_ ,

Features
==========

- Provides very simple and unified APIs for various template engines:

  - anytemplate.renders() to render given template string
  - anytemplate.render() to render given template file

- Can process template engine specific options:

  - anytemplate.render{s,} allow passing option parameters specific to each template rendering functions behind this library
  - anytemplate.find_engine() returns an 'engine' object to allow some more fine tunes of template engine specific customization by passing option parameters to them

- Provide a CLI tool called anytemplate_cli to process templates in command line

API Usage<commit_msg>remove the license change note; it's in git's log still<commit_after>=============
anytemplate
=============

About
======

.. image:: https://api.travis-ci.org/ssato/python-anytemplate.png?branch=master
   :target: https://travis-ci.org/ssato/python-anytemplate
   :alt: Test status

.. image:: https://coveralls.io/repos/ssato/python-anytemplate/badge.png
   :target: https://coveralls.io/r/ssato/python-anytemplate
   :alt: Coverage Status

.. image:: https://landscape.io/github/ssato/python-anytemplate/master/landscape.png
   :target: https://landscape.io/github/ssato/python-anytemplate/master
   :alt: Code Health

This is a python library works as an abstraction layer for various python
template engines and rendering libraries, and provide a few very simple and
easily understandable APIs to render templates.

It also provide a CLI tool called anytemplate_cli to render templates written
in these various template languages.

- Author: <NAME> <<EMAIL>>
- License: MIT

It supports the following template engines currently:

.. csv-table::
   :header: "Name", "Notes"
   :widths: 15, 65

   `string.Template <https://www.python.org>`_ , Always available as it's included in python standard lib.
   `jinja2 <http://jinja.pocoo.org>`_ , Highest priory will be given and becomes default if found
   `mako <http://www.makotemplates.org>`_ ,
   `tenjin <http://www.kuwata-lab.com/tenjin/>`_ , renders() API is not supported
   `Cheetah <http://www.cheetahtemplate.org>`_ , Only available for python 2.x as it does not look supporting python 3.x
   `Pystache <https://github.com/defunkt/pystache>`_ ,

Features
==========

- Provides very simple and unified APIs for various template engines:

  - anytemplate.renders() to render given template string
  - anytemplate.render() to render given template file

- Can process template engine specific options:

  - anytemplate.render{s,} allow passing option parameters specific to each template rendering functions behind this library
  - anytemplate.find_engine() returns an 'engine' object to allow some more fine tunes of template engine specific customization by passing option parameters to them

- Provide a CLI tool called anytemplate_cli to process templates in command line

API Usage
{'fraction_non_alphanumeric': 0.11335852411647032, 'fraction_numerical': 0.0033340742387197157, 'mean_word_length': 4.325443786982248, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 16, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '40031', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1254, 'n_words': 453}