Skip to main content

Penguin's Transit Toolbox : a simple python toolbox for managing GTFS data. Work in progress

Project description

Penguin's Transit Toolbox

Python Version License: Unlicense Status Documentation


Penguin's Transit Toolbox : a simple python toolbox for managing GTFS data. Work in progress


Summary


Features

  • Loading of GTFS files, either individually or in a dictionnary ;
  • Support of both standard and spatial tables ;
  • Export of stops and shapes as GIS-ready files ;
  • Detection of available files ;
  • Geometry validation ;
  • Compatibility with pandas, geopandas and shapely.

Installation

From PyPI

pip install penguinstransittoolbox

For local development from the latest build on Github.

git clone https://github.com/mxncmrchnd/penguinstransittoolbox.git
pip install -e .

Usage examples

Importing the package :

import penguinstransittoolbox as ptt

Loading a feed and exporting its geographical features to GIS-ready files :

feed = ptt.zip.load_feed('example/feed.zip')
# export the stops as GeoPackage (the default output format)
ptt.gis.export_stops(feed['stops'], output='stops.gpkg')
# export the shapes as ESRI Shapefile
ptt.gis.export_shapes(feed['shapes'], output='shapes.shp', format='Shapefile')

Documentation

The documentation is available here.

Requirements

  • Python >= 3.9
  • pandas >= 1.5
  • geopandas >= 0.13
  • shapely >= 2.0
  • requests >= 2.30

License

This project is released under The Unlicense, dedicated to the public domain.


Project Status

This project is in early development and subject to change. Contributions, feedback and issue reports are welcome.

References

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

penguinstransittoolbox-0.1.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

penguinstransittoolbox-0.1.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file penguinstransittoolbox-0.1.1.tar.gz.

File metadata

  • Download URL: penguinstransittoolbox-0.1.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for penguinstransittoolbox-0.1.1.tar.gz
Algorithm Hash digest
SHA256 88e145aa1e379c777a29b4c0de805df24b08deab7ababbf7aed71727c0aa05ab
MD5 c55d7c39c17565f66123c4b665fb2de0
BLAKE2b-256 c07556f99a3ab3057575f982f51ed2b757bb2acee6c8cabc13df44110907cb8c

See more details on using hashes here.

File details

Details for the file penguinstransittoolbox-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for penguinstransittoolbox-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2497346b7cf7cff8330265369712027a0b33099c190f31e83744a50d5fa151f
MD5 36c8e4db3bcbdb5395e2fca2473fd06a
BLAKE2b-256 468f768848ca15e3f62b7ee8bbb6907c8e42d785125fbfb813e3472eb80cf156

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page