Metadata-Version: 2.1
Name: vsot
Version: 0.1.4
Summary: VSOT - Django/jinja template formatter
Home-page: https://github.com/benhowes/vsot
License: MIT
Keywords: vsot
Author: Ben Howes
Author-email: ben@ben-howes.co.uk
Requires-Python: >=3.6.1
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: antlr4-python3-runtime (==4.8)
Requires-Dist: click (>=7.0)
Requires-Dist: dataclasses (>=0.6); python_version < "3.7"
Requires-Dist: pathspec (>=0.8.0,<0.9.0)
Description-Content-Type: text/x-rst

===================================================
VSOT - Like black_, but for Django/Jinja2 templates
===================================================


.. image:: https://img.shields.io/pypi/v/vsot.svg
        :target: https://pypi.python.org/pypi/vsot

.. image:: https://img.shields.io/travis/benhowes/vsot.svg
        :target: https://travis-ci.com/benhowes/vsot

.. image:: https://img.shields.io/github/license/benhowes/vsot
        :alt: License - MIT

HTML Template formatter

Use VSOT to automatically format your django templates. No need to manually reflow text or tags when you add/remove content.

Free software: MIT license


Features
--------

* Mimics black in terms of options and configuration.
* Automatically supports all built in django/jinja2 tags
* Safe - VSOT ensures that it does not change the meaning of the templates


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

.. code-block:: console

    pip install vsot

Dev Setup
---------

Requirements:
- Python 3.6 or later
- Docker
- Python poetry (see `poetry docs`_)

1. Clone repo

2. Installation

.. code-block:: console

    poetry install


Credits
-------

- A lot of the code for this was repurposed from black_
- Antlr4_ is used for the parser, along with using the `HTML parser from the antlr library`_ as a starting point
- This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
.. _black: https://github.com/psf/black
.. _`poetry docs`: https://python-poetry.org/docs/#installation
.. _Antlr4: https://github.com/antlr/antlr4
.. _`HTML parser from the antlr library`: https://github.com/antlr/grammars-v4

