<commit_before>Storage
#######
DStore provides an abstraction layer to store the model instances.



MemoryStore
===========

Introduction
------------
The default storage in DStore is the MemoryStore.

This simply stores the model instances in an array in memory.

Keep in mind that this storage type is runtime only, meaning that the data is wiped when the application closes.

MySQLStore
==========
.. image:: https://img.shields.io/coveralls/MarkLark/dstore-mysql.svg
    :target: https://coveralls.io/github/MarkLark/dstore-mysql?branch=master

.. image:: https://img.shields.io/travis/MarkLark/dstore-mysql/master.svg
    :target: https://travis-ci.org/MarkLark/dstore-mysql

.. image:: https://img.shields.io/pypi/v/dstore-mysql.svg
    :target: https://pypi.python.org/pypi/dstore-mysql

.. image:: https://img.shields.io/pypi/pyversions/dstore-mysql.svg
    :target: https://pypi.python.org/pypi/dstore-mysql

Introduction
------------
This storage type allows model instances to be stored in a MySQL DataBase.

In order to use this storage type, you need to install the Python Package for it.

Installing
----------
You have two choices to install dstore-mysql, using pip or from source.

From PyPi
~~~~~~~~~
DStore is available from the PyPi repository at `DStore <https://pypi.python.org/pypi/DStore>`_.

This means that all you have to do to install PyMan is run the following in a console:

.. code-block:: console

    $ pip install dstore-mysql

From Source
~~~~~~~~~~~
DStore can also be installed from source by downloading from GitHub and running setup.py.

.. code-block:: console

    $ wget https://github.com/MarkLark/dstore-mysql/archive/master.tar.gz
    $ tar xvf master.tar.gz
    $ cd dstore-mysql-master
    $ python setup.py install

Requirements
============
DStore-MySQL requires the Python package `MySQL-python <https://pypi.python.org/pypi/MySQL-python/>`_.

Unfortunately this package does not support Python 3+, therefor if you use DStore-MySQL as the storage type, you can only use Python 2.7

There is a Python Package that uses pure python to implement a MySQL client, but this lacks the performance of a native client.<commit_msg>Docs: Updated Storage docs to include DStore-Mongo<commit_after>Storage
#######
DStore provides an abstraction layer to store the model instances.



MemoryStore
===========

Introduction
------------
The default storage in DStore is the MemoryStore.

This simply stores the model instances in an array in memory.

Keep in mind that this storage type is runtime only, meaning that the data is wiped when the application closes.

MySQLStore
==========
.. image:: https://img.shields.io/coveralls/MarkLark/dstore-mysql.svg
    :target: https://coveralls.io/github/MarkLark/dstore-mysql?branch=master

.. image:: https://img.shields.io/travis/MarkLark/dstore-mysql/master.svg
    :target: https://travis-ci.org/MarkLark/dstore-mysql

.. image:: https://img.shields.io/pypi/v/dstore-mysql.svg
    :target: https://pypi.python.org/pypi/dstore-mysql

.. image:: https://img.shields.io/pypi/pyversions/dstore-mysql.svg
    :target: https://pypi.python.org/pypi/dstore-mysql

Introduction
------------
This storage type allows model instances to be stored in a MySQL DataBase.

In order to use this storage type, you need to install the Python Package for it.

Installing
----------
You have two choices to install dstore-mysql, using pip or from source.

From PyPi
~~~~~~~~~
DStore is available from the PyPi repository at `DStore <https://pypi.python.org/pypi/DStore>`_.

This means that all you have to do to install PyMan is run the following in a console:

.. code-block:: console

    $ pip install dstore-mysql

From Source
~~~~~~~~~~~
DStore can also be installed from source by downloading from GitHub and running setup.py.

.. code-block:: console

    $ wget https://github.com/MarkLark/dstore-mysql/archive/master.tar.gz
    $ tar xvf master.tar.gz
    $ cd dstore-mysql-master
    $ python setup.py install

Requirements
============
DStore-MySQL requires the Python package `MySQL-python <https://pypi.python.org/pypi/MySQL-python/>`_.


MongoStore
==========
.. image:: https://img.shields.io/coveralls/MarkLark/dstore-mongo.svg
    :target: https://coveralls.io/github/MarkLark/dstore-mongo?branch=master

.. image:: https://img.shields.io/travis/MarkLark/dstore-mongo/master.svg
    :target: https://travis-ci.org/MarkLark/dstore-mongo

.. image:: https://img.shields.io/pypi/v/dstore-mongo.svg
    :target: https://pypi.python.org/pypi/dstore-mongo

.. image:: https://img.shields.io/pypi/pyversions/dstore-mongo.svg
    :target: https://pypi.python.org/pypi/dstore-mongo

Introduction
------------
This storage type allows model instances to be stored in a Mongo DataBase.

In order to use this storage type, you need to install the Python Package for it.

Installing
----------
You have two choices to install dstore-mongo, using pip or from source.

From PyPi
~~~~~~~~~
DStore-Mongo package is available from the `PyPi repository <https://pypi.python.org/pypi/DStore-Mongo>`_.

This means that all you have to do to install PyMan is run the following in a console:

.. code-block:: console

    $ pip install dstore-mongo

From Source
~~~~~~~~~~~
DStore-Mongo can also be installed from source by downloading from GitHub and running setup.py.

.. code-block:: console

    $ wget https://github.com/MarkLark/dstore-mongo/archive/master.tar.gz
    $ tar xvf master.tar.gz
    $ cd dstore-mongo-master
    $ python setup.py install

Requirements
============
DStore-Mongo requires the Python package `PyMongo <https://pypi.python.org/pypi/pymongo>`_.
{'fraction_non_alphanumeric': 0.138671875, 'fraction_numerical': 0.0005326704545454545, 'mean_word_length': 3.5759545085296507, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 33, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3358748', 'n_tokens_mistral': 1779, 'n_tokens_neox': 1700, 'n_words': 547}