[](https://travis-ci.org/jarondl/pygtfs) [](https://pypi.python.org/pypi/pygtfs)
Overview
pygtfs is a library that models information stored in Google’s [General Transit Feed Specification (GTFS)](https://developers.google.com/transit/) format. GTFS is a format designed to specify information about a transit system, such as a city’s subways or a private company’s bus services. pygtfs stores information in an SQLite database using SQLAlchemy to facilitate the storage of Python objects in a relational database.
pygtfs is a fork of @eoghanmurray’s fork of a @andrewblim’s gtfs-sql which is a fork of @bmander’s gtfs. See the git logs for more fun history.
License: MIT, included in license.txt.
Dependencies
[SQLAlchemy](http://www.sqlalchemy.org/) 0.7.8. Used for all mapping of GTFS objects to the relational DB. You’ll need to be familiar with it to read the code; the [documentation](http://docs.sqlalchemy.org/) is pretty solid.
[pytz](http://pytz.sourceforge.net/) 2012d. A few GTFS fields are expected to be in a [tz time zone format](http://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
[docopt](http://docopt.org/). Pythonic command line arguments parser, that will make you smile
Installation
Get [setuptools](http://pypi.python.org/pypi/setuptools) if you don’t have it, clone the repo, and use python setup.py install.
Documentation
Hosted on https://pygtfs.readthedocs.org/
TODO
Improve testing; add some unit testing framework and test with a variety of GTFS data feeds.
Add more docs
Why fork?
natively support several gtfs feeds per database
less SLOC, more DRY
add python3 support
renamed to a more generic name
will continue to maintain
Metadata
Release files for pygtfs 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygtfs-0.1.11.tar.gz | 28.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygtfs-0.1.11-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 43.9 kB
Release files / pygtfs-0.1.11.tar.gz
| Download URL | pygtfs-0.1.11.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35a4868f304114ade6a8789b70a576810210a169fea996b2eca25ab23730c56e
|
|
BLAKE2b-256 checksum How to use checksums |
c874146aefbfcdacda43bcb3d89ba936d58249a0d0df8f7b1c546a74fcb4b58e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logRelease files / pygtfs-0.1.11-py2.py3-none-any.whl
| Download URL | pygtfs-0.1.11-py2.py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6081cf0575336e2f9819e17164ccec16d6fb3ee4fe7abc86d67487df32de3168
|
|
BLAKE2b-256 checksum How to use checksums |
0b24ed3280bfedb15181b1b16b7a09c2cbf26170e64ed7e6828ab1dfc0a00f00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency log