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

Uploaded Source

Built Distribution

gtfsutils-0.0.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gtfsutils-0.0.2.tar.gz
  • Upload date:
  • Size: 6.9 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.2.tar.gz
Algorithm Hash digest
SHA256 b6f74baf700264747524b8089c843e3b02618a29dfcc57b1efb751ff38baf44a
MD5 ea71d526036dc112f6f1a56e116c38f4
BLAKE2b-256 da122484795ad903c5d8d9984f2fd5889f9389e06ec0aaa8aec3463bf2c2e577

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gtfsutils-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b24b391926d9dc101e4a23497e0d9d92f74f0ba83d0386c70909b2fe3cd4982
MD5 8b31b25a83b23ebad3e18f55b6c68f52
BLAKE2b-256 4c13425748e0af3266e580484d99f8d8eea84acbaaff44a0141df2bc82812710

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