<commit_before>Overview
========

.. currentmodule:: fiole

``fiole.py`` is a WSGI micro-framework with the following development
constraints:

* Single file, **no external dependency**
* Provide enough features to build a web application with minimal effort
* Embed **a compact template engine**
* Keep the module reasonably small


Main features:

* :doc:`Routing <routing>`
* :doc:`Methods GET/HEAD/POST/PUT/DELETE <routing>`
* :ref:`Error handlers <helpers>`
* File uploads (:data:`Request.POST`)
* :ref:`Static files <helpers>`
* :doc:`Fast template engine <template>`
* Secure cookies (:func:`Request.get_cookie`, :func:`Response.set_cookie`, ...)


**Disclaimer:** this framework is intentionally limited.  If you need a robust
and scalable solution, look elsewhere.


Link to the PyPI page: https://pypi.python.org/pypi/fiole


Quickstart
----------

Either download the single file :download:`fiole.py<../fiole.py>` and save it in your
project directory, or ``pip install fiole``, preferably in a ``virtualenv``.

Create an application and save it with name ``hello.py``:

::

  from fiole import get, run_fiole<commit_msg>Advertize the supported Python implementations<commit_after>Overview
========

.. currentmodule:: fiole

``fiole.py`` is a WSGI micro-framework with the following development
constraints:

* Single file, **no external dependency**
* Provide enough features to build a web application with minimal effort
* Embed **a compact template engine**
* Keep the module reasonably small


Main features:

* :doc:`Routing <routing>`
* :doc:`Methods GET/HEAD/POST/PUT/DELETE <routing>`
* :ref:`Error handlers <helpers>`
* File uploads (:data:`Request.POST`)
* :ref:`Static files <helpers>`
* :doc:`Fast template engine <template>`
* Secure cookies (:func:`Request.get_cookie`, :func:`Response.set_cookie`, ...)


**Disclaimer:** this framework is intentionally limited.  If you need a robust
and scalable solution, look elsewhere.


Link to the PyPI page: https://pypi.python.org/pypi/fiole

Tested against: Python 2.7, PyPy 2.0 and Python >= 3.2


Quickstart
----------

Either download the single file :download:`fiole.py<../fiole.py>` and save it in your
project directory, or ``pip install fiole``, preferably in a ``virtualenv``.

Create an application and save it with name ``hello.py``:

::

  from fiole import get, run_fiole
{'fraction_non_alphanumeric': 0.13727156821079473, 'fraction_numerical': 0.0025499362515937103, 'mean_word_length': 4.783783783783784, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3984819', 'n_tokens_mistral': 729, 'n_tokens_neox': 682, 'n_words': 254}