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 Documentation Status PyPI version


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')

Reading stops and shapes from GIS files :

stops_gdf = ptt.gis.stops_from_gis('stops.gpkg')
shapes_gdf = ptt.gis.shapes_from_gis('shapes.shp')

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.2.tar.gz (9.1 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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: penguinstransittoolbox-0.1.2.tar.gz
  • Upload date:
  • Size: 9.1 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.2.tar.gz
Algorithm Hash digest
SHA256 0fb9dde6d2fe75243d878cc9d597e243290257d0af8f6838d54a5342b6664621
MD5 3aa51437fd4e95279c3d96b09f9f8240
BLAKE2b-256 19fa53927a16821b5223b59c7da9882ddf1426911ef202df44590380ad445672

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for penguinstransittoolbox-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb9570abcc810cc1a0269571bdcde92243a7daba42d0b86f528911ce66372301
MD5 716b9cc686a8ab17cd36069729769089
BLAKE2b-256 cef8abe16bc3eaa453670477f73fb394620d5b5d658b460cf8478f8cd4b68afa

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