<commit_before>aiohttp_admin
=============
.. image:: https://travis-ci.org/jettify/aiohttp_admin.svg?branch=master
    :target: https://travis-ci.org/jettify/aiohttp_admin
.. image:: https://coveralls.io/repos/github/jettify/aiohttp_admin/badge.svg?branch=master
    :target: https://coveralls.io/github/jettify/aiohttp_admin?branch=master

**aiohttp_admin** will help you on building an admin interface
on top of an existing data model.


.. image:: https://raw.githubusercontent.com/jettify/aiohttp_admin/master/docs/admin_polls.png
    :align: center



Supported backends
------------------

* PostgreSQL with, aiopg_ and sqlalchemy.core_
* MySQL with aiomysql_ and sqlalchemy.core_
* Mongodb with motor



Requirements
------------

* Python_ 3.5+
* aiopg_ or aiomysql_ or motor_


.. _Python: https://www.python.org
.. _asyncio: http://docs.python.org/3.4/library/asyncio.html
.. _aiopg: https://github.com/aio-libs/aiopg
.. _aiomysql: https://github.com/aio-libs/aiomysql
.. _motor: https://github.com/mongodb/motor
.. _sqlalchemy.core: http://www.sqlalchemy.org/
.. _PEP492: https://www.python.org/dev/peps/pep-0492/<commit_msg>Add information to README.rst how to run tests<commit_after>aiohttp_admin
=============
.. image:: https://travis-ci.org/jettify/aiohttp_admin.svg?branch=master
    :target: https://travis-ci.org/jettify/aiohttp_admin
.. image:: https://coveralls.io/repos/github/jettify/aiohttp_admin/badge.svg?branch=master
    :target: https://coveralls.io/github/jettify/aiohttp_admin?branch=master

**aiohttp_admin** will help you on building an admin interface
on top of an existing data model.


.. image:: https://raw.githubusercontent.com/jettify/aiohttp_admin/master/docs/admin_polls.png
    :align: center

Run Tests
---------
Fist of all just clone repository::

    $ git clone <EMAIL>@github.<EMAIL>:jettify/aiohttp_admin.git

Install docker_ using instruction_ from the official site, for OSX we
use docker-machine_.

Create virtualenv with python3.5 (older version are not supported). For example
using *virtualenvwrapper* commands could look like::

   $ cd aiohttp_admin
   $ mkvirtualenv --python=`which python3.5` aiohttp_admin


After that please install libraries required for development::

   $ pip install -r requirements-dev.txt

Congratulations, you are ready to run the test suite::

    $ py.test --dp -s -v ./tests

Under the hood python docker client pulls images for PostgreSQL, MySQL
and Mongodb. Fixtures start databases and insert testing data. You do not
have to install any database at all.

For OSX users one extra step is required, before running tests, please
init environment variable::

    $ export DOCKER_MACHINE_IP=$(docker-machine ip)


Supported backends
------------------

* PostgreSQL with, aiopg_ and sqlalchemy.core_
* MySQL with aiomysql_ and sqlalchemy.core_
* Mongodb with motor



Requirements
------------

* Python_ 3.5+
* aiopg_ or aiomysql_ or motor_


.. _Python: https://www.python.org
.. _asyncio: http://docs.python.org/3.4/library/asyncio.html
.. _aiopg: https://github.com/aio-libs/aiopg
.. _aiomysql: https://github.com/aio-libs/aiomysql
.. _motor: https://github.com/mongodb/motor
.. _sqlalchemy.core: http://www.sqlalchemy.org/
.. _PEP492: https://www.python.org/dev/peps/pep-0492/
.. _docker: https://www.docker.com/
.. _instruction: https://docs.docker.com/engine/installation/linux/ubuntulinux/ 
.. _docker-machine: https://docs.docker.com/machine/
{'fraction_non_alphanumeric': 0.14738372093023255, 'fraction_numerical': 0.007558139534883721, 'mean_word_length': 3.713698630136986, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 23, 'lorem ipsum': 0, 'www.': 7, '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': '4498914', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1151, 'n_words': 265}