Skip to main content

General Transit Feed Specification (GTFS) as a Django app

Project description

The PyPI package TravisCI Build Status Coveralls Test Coverage

multigtfs is an Apache 2.0-licensed Django app that supports importing and exporting of GTFS feeds. All features of the June 20, 2012 reference are supported, including all changes up to February 17, 2014. It allows multiple feeds to be stored in the database at once.

It requires a spatial databases compatible with GeoDjango. PostgreSQL 9.x and PostGIS 2.x are recommended for development and production, since these support all the GeoDjango features.

Status

multigtfs is ready for your GTFS project.

Point releases (such as 1.0.0 to 1.0.1) should be safe, only adding features or fixing bugs. Minor updates (1.0.1 to 1.1.0) may include significant changes that will break relying code. In the worst case scenario, you may need to export your GTFS feeds in the original version, update multigtfs and your code, and re-import.

multigtfs works with Django 1.8 (the long-term support, or LTS, release) through 1.11. Support will follow the Django supported releases, as well as the Python versions supported by those releases.

All valid GTFS feeds are supported for import and export. This includes feeds with extra columns not yet included in the GTFS spec, and feeds that omit calendar.txt in favor of calendar_dates.txt (such as the TriMet archive feeds). If you find a feed that doesn’t work, file a bug!

See the issues list for more details on bugs and feature requests.

Example project

Check out the example project.

If you have Docker installed and working, you can run the example project without installing a database.

  1. Add one or more feeds to import to the folder feeds/import. You can find a feed for download at https://transitfeeds.com, such as Tulsa Transit’s Feed.

  2. Initialize the containers with docker-compose up. After a few minutes, it will display:

    web_1  | Django version 1.8.18, using settings 'exploreproj.settings'
    web_1  | Development server is running at http://0.0.0.0:8000/
    web_1  | Using the Werkzeug debugger (http://werkzeug.pocoo.org/)
    web_1  | Quit the server with CONTROL-C.
    web_1  |  * Debugger is active!
    web_1  |  * Debugger PIN: XXX-XXX-XXX
  3. Visit http://localhost:8000 to view the example project.

See the example project for more details.

Development

Code:

https://github.com/tulsawebdevs/django-multi-gtfs

Issues:

https://github.com/tulsawebdevs/django-multi-gtfs/issues

Dev Docs:

http://multigtfs.readthedocs.io/

IRC:

irc://irc.freenode.net/tulsawebdevs

Project details


Download files

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

Source Distribution

multigtfs-1.1.0.tar.gz (96.4 kB view details)

Uploaded Source

Built Distribution

multigtfs-1.1.0-py2.py3-none-any.whl (88.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file multigtfs-1.1.0.tar.gz.

File metadata

  • Download URL: multigtfs-1.1.0.tar.gz
  • Upload date:
  • Size: 96.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for multigtfs-1.1.0.tar.gz
Algorithm Hash digest
SHA256 cb11a3d9f0d5792571eedf59fe591800d2cfcaf7f763d887a8534dbcf04a6198
MD5 a5259da5de8416c48bde1f73bc37fc36
BLAKE2b-256 57ba2e686e2a1d1e1b54cbf91bd75e206e46a413de6b30c95fa11e906824fafd

See more details on using hashes here.

File details

Details for the file multigtfs-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for multigtfs-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 814e7d596681bcf58f44da3f3fa861e1c9b7aa84e71a9c30593143514b1e0831
MD5 f51efe1d7adbee36d97ec01fbab07456
BLAKE2b-256 4b27e9e39ffe9e76058201a84e42021c09019ce23bed8c519b331ba67953d04a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page