This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

django-metro

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.

Installing

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

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

    INSTALLED_APPS = (
        ...
        'metro',
        ...
    )
    
  3. Apply migrations:

    ./manage.py migrate
    
  4. Choose and specify data provider in settings.py:

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

    ./manage.py load_metro
    
  6. Or:

    from metro.parser import provider
    provider.download_all()
    
  7. Or use celery task load_metro (shared task in tasks.py)

Current available data providers

(list updated)

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

Russia

  • '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) :)

CIS

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

World

  • '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 settings.py:

METRO_APP_TITLE = u'Saint Petersrburg Metro'

Adopted for django-suit (SortableStackedInline).

License

MIT probably.

Release History

Release History

0.4.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.4.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-metro-0.4.2.tar.gz (11.9 kB) Copy SHA256 Checksum SHA256 Source Nov 24, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting