Skip to main content

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

Metadata

Release files for penguinstransittoolbox 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for penguinstransittoolbox 0.1.2
File Size Uploaded Provenance Actions
penguinstransittoolbox-0.1.2.tar.gz 9.1 kB Without provenance Details for penguinstransittoolbox-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for penguinstransittoolbox 0.1.2
File Interpreter ABI Platform Actions
penguinstransittoolbox-0.1.2-py3-none-any.whl Python 3 none any Details for penguinstransittoolbox-0.1.2-py3-none-any.whl

Total release size: 17.8 kB

Release files / penguinstransittoolbox-0.1.2.tar.gz

Download URL penguinstransittoolbox-0.1.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0fb9dde6d2fe75243d878cc9d597e243290257d0af8f6838d54a5342b6664621
BLAKE2b-256 checksum
How to use checksums
19fa53927a16821b5223b59c7da9882ddf1426911ef202df44590380ad445672
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / penguinstransittoolbox-0.1.2-py3-none-any.whl

Download URL penguinstransittoolbox-0.1.2-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb9570abcc810cc1a0269571bdcde92243a7daba42d0b86f528911ce66372301
BLAKE2b-256 checksum
How to use checksums
cef8abe16bc3eaa453670477f73fb394620d5b5d658b460cf8478f8cd4b68afa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for penguinstransittoolbox 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page