<commit_before>django-russian-metro
==============

Russian metro models for django (only for 1.7+), plus the parser that fills models with actual data from various data providers (primary - Wikipedia).

Parser downloads the following data:
- MetroLine: number, color and title
- Metro: line binding, title

Also you can run django command sometimes to get always actual data.


Installing
==============

1. For install django-russian-metro, run on terminal:
      ::
        $ pip install django-russian-metro

1. Then add this app to ``INSTALLED_APPS``:
      ::
        INSTALLED_APPS = (
            ...
            'russian_metro',
            ...
        )

1. Apply migrations:
      ::
        ./manage.py migrate

1. Choose and specify data provider in `settings.py`:
        
        RUMETRO_PROVIDER = 'moscow'

1. Finally, fill models with data:
      ::
        ./manage.py load_metro
   
   Or:

      ::
        from russian_metro.parser import provider
        provider.download_all()


Current available data providers
==============
##### (list updated)
Assign `RUMETRO_PROVIDER` (in settings.py) one of the values below:
- `'moscow'` -- Moscow (Wiki)
- `'spb'` -- Saint Petersburg (Wiki)
- `'novgorod'` -- <NAME> (Wiki)
- `'novosib'` -- Novosibirsk (Wiki)
- `'ekat'` -- Yekaterinburg (Wiki/self)
- `'kazan'` -- Kazan (Wiki)
- `'samara'` -- Samara (Wiki)
- `'kiev'` -- Kiev (Wiki)
- `'minsk'` -- Minsk (Wiki)
- `'omsk'` -- Omsk (self) :)


Other stuff
==============
You can rename application title with `RUMETRO_APP_TITLE` in your `settings.py`:
  ::
    RUMETRO_APP_TITLE = u'Saint Petersrburg Metro'

I reccomend use it with `django-suit`.
This admin.py adopted for work with SortableStackedInline.


License
==============
MIT probably.
<commit_msg>rst fixed?<commit_after>============
django-russian-metro
============

Russian metro models for django (only for 1.7+), plus the parser that fills models with actual data from various data providers (primary - Wikipedia).

Parser downloads the following data:
- MetroLine: number, color and title
- Metro: line binding, title

Also you can run django command sometimes to get always actual data.


============
Installing
============

#) For install django-russian-metro, run on terminal:

.. code-block:: bash
        $ pip install django-russian-metro

#) Then add this app to ``INSTALLED_APPS``:

.. code-block:: python
        INSTALLED_APPS = (
            ...
            'russian_metro',
            ...
        )

#) Apply migrations:
  
.. code-block:: bash
        ./manage.py migrate

#) Choose and specify data provider in ``settings.py``:

.. code-block:: python        
        RUMETRO_PROVIDER = 'moscow'

#) Finally, fill models with data:

.. code-block:: python
        ./manage.py load_metro
   
   Or:

.. code-block:: python
        from russian_metro.parser import provider
        provider.download_all()


============
Current available data providers
============
(list updated)
-----------------
Assign ``RUMETRO_PROVIDER`` (in settings.py) one of the values below:
- ``'moscow'`` -- Moscow (Wiki)
- ``'spb'`` -- Saint Petersburg (Wiki)
- ``'novgorod'`` -- <NAME> (Wiki)
- ``'novosib'`` -- Novosibirsk (Wiki)
- ``'ekat'`` -- Yekaterinburg (Wiki/self)
- ``'kazan'`` -- Kazan (Wiki)
- ``'samara'`` -- Samara (Wiki)
- ``'kiev'`` -- Kiev (Wiki)
- ``'minsk'`` -- Minsk (Wiki)
- ``'omsk'`` -- Omsk (self) :)


============
Other stuff
============
You can rename application title with `RUMETRO_APP_TITLE` in your ``settings.py``:

.. code-block:: python
    RUMETRO_APP_TITLE = u'Saint Petersrburg Metro'

I reccomend use it with ``django-suit``.
This admin.py adopted for SortableStackedInline.


============
License
============
MIT probably.

{'fraction_non_alphanumeric': 0.1803848209513629, 'fraction_numerical': 0.002405130946018172, 'mean_word_length': 2.94, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2032647', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1216, 'n_words': 363}