<commit_before>mist.io
=======

Mist.io helps you manage and monitor your virtual machines, across different
clouds, using any device that can access the web. It is provided under the 
GNU AGPL v3.0 License. Check out the freemium service at https://mist.io

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

Mist.io is written in Python. Currently it is tested and developed using
Python 2.7. The only system wide requirements are Python, Python header
files and some basic build tools. Git is used for revision control. Every other
dependency is build automatically via zc.buildout. Although we use zc.buildout
it is recommended to install mist.io in a virtualenv to avoid conflicts with
eggs in the system's Python.

To install the basic requirements in a Debian based distro do::

    sudo aptitude install python-dev build-essential git erlang libpcre3-dev

If you wish to install it in a virtual environment you'll also need::

    sudo aptitude install python-virtualenv

In Red Hat based systems the following packages need to be installed:
   
    sudo yum install git python-virtualenv python-dev erlang pcre python-lxml  gcc libxml2 libxml2-python libxml2-devel

In MacOSX you have to install Xcode and its command line tools. For virtualenv
you simply run::

    sudo easy_install virtualenv

Supposing you have all the above, the steps are simple. Clone the repository,
create a virtualenv and run buildout::

    git clone https://github.com/mistio/mist.io.git
    cd mist.io
    virtualenv --no-site-packages .
    ./bin/pip install ansible
    ./bin/python bootstrap.py
    ./bin/buildout -v

In case you are using an older version of setuptools, bootstrap will fail. To 
solve this you need to::

   ./bin/pip install setuptools --upgrade

Deployment
----------

Mist.io comes with supervisor in order to handle all the processes.

To get it up and running::

    ./bin/supervisord

For development you can tail the logs::

    tail -f var/log/*.log

You can also monitor that all the processes are up and running::

    ./bin/supervisorctl status

Finally, you can start, stop or restart a specific process::<commit_msg>update readme for python 2.6<commit_after>mist.io
=======

Mist.io helps you manage and monitor your virtual machines, across different
clouds, using any device that can access the web. It is provided under the 
GNU AGPL v3.0 License. Check out the freemium service at https://mist.io

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

Mist.io is written in Python. Currently it is tested and developed using
Python 2.7. The only system wide requirements are Python, Python header
files and some basic build tools. Git is used for revision control. Every other
dependency is build automatically via zc.buildout. Although we use zc.buildout
it is recommended to install mist.io in a virtualenv to avoid conflicts with
eggs in the system's Python.

To install the basic requirements in a Debian based distro do::

    sudo aptitude install python-dev build-essential git erlang libpcre3-dev

If you wish to install it in a virtual environment you'll also need::

    sudo aptitude install python-virtualenv

In Red Hat based systems the following packages need to be installed:
   
    sudo yum install git python-virtualenv python-dev erlang pcre python-lxml  gcc libxml2 libxml2-python libxml2-devel

In MacOSX you have to install Xcode and its command line tools. For virtualenv
you simply run::

    sudo easy_install virtualenv

Supposing you have all the above, the steps are simple. Clone the repository,
create a virtualenv and run buildout::

    git clone https://github.com/mistio/mist.io.git
    cd mist.io
    virtualenv --no-site-packages .
    ./bin/pip install ansible
    ./bin/python bootstrap.py
    ./bin/buildout -v

In case you are using an older version of setuptools, bootstrap will fail. To 
solve this you need to::

   ./bin/pip install setuptools --upgrade

If you are using Python 2.6 you'll have to install ipython version 1, otherwise buildout will fail
   ./bin/pip install ipython==1

Deployment
----------

Mist.io comes with supervisor in order to handle all the processes.

To get it up and running::

    ./bin/supervisord

For development you can tail the logs::

    tail -f var/log/*.log

You can also monitor that all the processes are up and running::

    ./bin/supervisorctl status

Finally, you can start, stop or restart a specific process::
{'fraction_non_alphanumeric': 0.06419922321224583, 'fraction_numerical': 0.005026273703449852, 'mean_word_length': 3.4491869918699187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2578288', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1163, 'n_words': 609}