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

For local development only (for now).

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.0.tar.gz (8.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.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: penguinstransittoolbox-0.1.0.tar.gz
  • Upload date:
  • Size: 8.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.0.tar.gz
Algorithm Hash digest
SHA256 bb615573013b99e4451d6d81f433ccba373a7814633db171b02d63f65268b1f4
MD5 6f4a35fe3bfabc8c786423bb92db9253
BLAKE2b-256 4be39149c0f23a705928867af1e63c6a53a8ec97aaa1a75dbacdb9176b7fcd11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for penguinstransittoolbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3abf21a3d517440eb5e33913a395a8c8c0c646900c7bfa72ccd5a7ab1ab677cf
MD5 d0dc46c0693ee9f28bd1d1efea3bd747
BLAKE2b-256 4654f1591e6ce16041cc42093dd5eaefabcda831c602eea0565e11b35eaedf06

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