Skip to main content

GTFS command-line tool and Python GTFS utility library

Project description

gtfsutils

GTFS command-line tool and Python GTFS utility library

Installation

To install the package, type:

pip install gtfsutils

Usage

The usage is illustrated in quickstart.ipynb.

The package can be also used as a command-line tool. Here is how to filter a GTFS file using a bounding box:

gtfsutils filter \
  --verbose \
  --bounds "[16.197, 47.999, 16.549, 48.301]" \
  -i data/vienna.gtfs.zip \
  -o data/vienna-filtered.gtfs.zip

Here is how to compute the bounding box of a GTFS file:

gtfsutils bounds -i data/vienna.gtfs.zip

For more information on the command-line interface, type:

gtfsutils --help
usage: gtfsutils [-h] [-i SRC] [-o DST] [--bounds BOUNDS] [-f OPERATION] [--overwrite] [-v] method

GTFS Utilities

positional arguments:
  method                GTFS method: filter, bounds, merge

optional arguments:
  -h, --help            show this help message and exit
  -i SRC, --input SRC   Input filepath
  -o DST, --output DST  Output filepath
  --bounds BOUNDS       Filter boundary
  -f OPERATION, --filter-operation OPERATION
                        Filter operation (within, intersects)
  --overwrite           Overwrite if exists
  -v, --verbose         Verbose output

License

This project is licensed under the MIT license. See the LICENSE for details.

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

gtfsutils-0.0.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

gtfsutils-0.0.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file gtfsutils-0.0.3.tar.gz.

File metadata

  • Download URL: gtfsutils-0.0.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for gtfsutils-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9d097e72b1daaf3299b08e40b5a4b2fe1e1667a0bb510feb54b180ec78bfd311
MD5 758fc22eff8abf67b5f8ddb8cda6a658
BLAKE2b-256 b29f15ea11893515111aef67f9a7efea8f6582cffcba721e9557834ffe9bd7a9

See more details on using hashes here.

File details

Details for the file gtfsutils-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gtfsutils-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for gtfsutils-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 055060d7aab22ce012eaaf5d79bf46e19175790a1333f09fc3368af406c31da2
MD5 e88f83a3e760e3c455156050bed6488a
BLAKE2b-256 7f8612823ae5ea83c5793f0db902c353bf387672958a685551a195e0480fec58

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