Skip to content

Django app for managing data from the Bixi public bicycle sharing system.

License

Notifications You must be signed in to change notification settings

Microserf/django-bixi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django app for managing data from the Bixi public bicycle sharing system.

It supports multiple cities out of the box.

Getting started

Requirements for django-bixi:

  • django-tastypie
  • south (required if you plan on using the migrations)

These requirements are expressed in the requirements.txt file and may be installed by running the following command (from within a virtual environment):

pip install -r requirements.txt

Configuration

django-bixi ships with throttling built in. The following options have to be set in your project's settings.py, as per the documentation: http://django-tastypie.readthedocs.org/en/latest/throttling.html#throttle-options

  • BIXI_THROTTLE_AT
  • BIXI_TIMEFRAME
  • BIXI_EXPIRATION

Usage

From within your project's urls, expose the API resources of your choice as per django-tastypie's documentation at http://django-tastypie.readthedocs.org/en/latest/tutorial.html#adding-to-the-api

Management command

The updatestations management command allows you to create and update the stations for the city codes passed as arguments separated by a space. Run it through cron to keep your data synchronized.

Initial data

Upon running syncdb, cities that expose their bike stations data will be automatically inserted into the database. For the moment, only the following cities are included:

  • Boston
  • London
  • Melbourne
  • Minneapolis
  • Montreal
  • Ottawa
  • San Francisco Bay Area
  • Toronto
  • Washington

About

Django app for managing data from the Bixi public bicycle sharing system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published