Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A Python 3.5+ tool kit for processing General Transit Feed Specification Realtime (GTFSR) data

Project description

Copyright (c) 2016 Alexander Raichev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Description: GTFSRTK
********
.. image:: https://travis-ci.org/mrcagney/gtfrstk.svg?branch=master
:target: https://travis-ci.org/mrcagney/gtfsrtk

GTFSRTK is a tiny Python 3.5+ toolkit to process `General Transit Feed Specification Realtime (GTFSR) data <https://developers.google.com/transit/gtfs-realtime/reference>`_.
It does some simple things like read and write Protocol Buffer or JSON feed files.
It also does some complex things like extract and combine delays into Pandas DataFrames.


Installation
============
Do ``pipenv install gtfsrtk``.


Examples
========
See the Jupyter notebook at ``ipynb/examples.ipynb``.


Documentation
==============
Documentation is in docs/ and also on RawGit `here <https://rawgit.com/araichev/gtfsrtk/master/docs/_build/singlehtml/index.html>`_.


Notes
======
- Development status is Alpha
- This project uses `semantic versioning <http://semver.org/>`_
- Thanks to `MRCagney <http://www.mrcagney.com/>`_ for funding this project


Authors
========
- Alex Raichev (2016-06)


Changelog
==========

6.0.2, 2018-04-18
------------------
- Handled edge case in ``build_augmented_stop_times`` for real this time!


6.0.1, 2018-04-18
------------------
- Handled edge case in ``build_augmented_stop_times``


6.0.0, 2018-04-18
------------------
- Renamed function ``dictify`` to ``feed_to_dict`` and added the inverse function ``dict_to_feed``


5.0.1, 2018-04-17
------------------
- Fixed setup.py


5.0.0, 2018-04-17
------------------
- Finally handled Protocol Buffer feed files, thanks to version 0.0.5 of `the Python gtfs-realtime-bindings <https://github.com/google/gtfs-realtime-bindings/tree/master/python>`_
- Switched to using Google FeedMessage objects natively
- Simplified code


4.0.0, 2016-07-13
------------------
- Changed the signature of ``main.collect_feeds``


3.0.1, 2016-07-12
------------------
- Bugfixed ``ipynb/examples.ipynb``


3.0.0, 2016-07-12
------------------
- Changed to a small data set for tests
- Upgraded to gtfstk==5.0.0
- Removed ``time_it`` decorators from functions
- Changed signature of ``main.build_augmented_stop_times`` to be more versatile


2.0.0, 2016-07-08
------------------
- Refactored heaps
- Added automated tests
- Added Sphinx docs
- Uploaded to pip


1.0.0, 2016-06-12
------------------
- First release
Platform: UNKNOWN

Project details


Release history Release notifications

This version
History Node

6.0.2

History Node

6.0.1

History Node

6.0.0

History Node

5.0.1

History Node

5.0.0

History Node

4.0.0

History Node

3.0.1

History Node

3.0.0

History Node

2.0.0

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
gtfsrtk-6.0.2-py3-none-any.whl (6.7 kB) Copy SHA256 hash SHA256 Wheel py3 Apr 18, 2018
gtfsrtk-6.0.2.tar.gz (6.4 kB) Copy SHA256 hash SHA256 Source None Apr 18, 2018

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