Skip to main content
Help us improve Python packaging – donate today!

Basic metro models for Django 1.7+, plus the parser that fills models with actual data (lines numbers, lines titles, lines colors, names of the lines, station names) from various data sources (primary - Wikipedia).

Project Description


Metro models for Django (only for 1.7+), plus the parser that fills models with actual data from various data providers (primary - Wikipedia). This is renamed django-russian-metro package (!).

All russian and cis parsers (like kiev or minsk) respects locale, that’s why for en locale they returns transliterated version of names. Parsers for other cities takes only english names.

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, or use celery task load_metro.


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

    $ pip install django-metro
  2. Then add this app to INSTALLED_APPS:

  3. Apply migrations:

    ./ migrate
  4. Choose and specify data provider in

    METRO_PROVIDER = 'moscow'
  5. Finally, fill models with data:

    ./ load_metro
  6. Or:

    from metro.parser import provider
  7. Or use celery task load_metro (shared task in

Current available data providers

(list updated)

Assign METRO_PROVIDER (in one of the values below (source indicated in brackets):


  • 'moscow' – Moscow (Wiki)
  • 'spb' – Saint Petersburg (Wiki)
  • 'novgorod' – Nizhny Novgorod (Wiki)
  • 'novosib' – Novosibirsk (Wiki)
  • 'ekat' – Yekaterinburg (Wiki/self)
  • 'kazan' – Kazan (Wiki)
  • 'samara' – Samara (Wiki)
  • 'omsk' – Omsk (self) :)


  • 'kiev' – Kiev (Wiki)
  • 'minsk' – Minsk (Wiki)


  • 'tokyo' – Tokyo (Wiki)
  • 'london' – London (Wiki), very basic (without zones and branches)

Other stuff

You can rename application title with METRO_APP_TITLE in your

METRO_APP_TITLE = u'Saint Petersrburg Metro'

Adopted for django-suit (SortableStackedInline).


MIT probably.

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-metro-0.4.2.tar.gz (11.9 kB) Copy SHA256 hash SHA256 Source None Nov 24, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page