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.4.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

gtfsutils-0.0.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gtfsutils-0.0.4.tar.gz
  • Upload date:
  • Size: 7.8 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.8 tqdm/4.63.0 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for gtfsutils-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0cda2e00f6ca6a4d8422a9c3a517fa2ccee44f59fddb2597acf36d4e63f87e8f
MD5 1dcf30111c2783a78408b2436c406bc1
BLAKE2b-256 acfa4b406d1a6880b8d40a8fb4f5096326445b5d2400a58de4cb4b28d187312d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gtfsutils-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.8 tqdm/4.63.0 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for gtfsutils-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2fc8265774f4439badfe135cb91e412e937f70f01ab951654a6f10e078677923
MD5 de4b0c36b7c4025371bb9d81af27294c
BLAKE2b-256 0b76b34e21c4b081da6b6fca545d8bb334e30b93249d4350bab54c45f3dfab10

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