Penguin's Transit Toolbox : a simple python toolbox for managing GTFS data. Work in progress
Project description
Penguin's Transit Toolbox
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
stopsandshapesas GIS-ready files ; - Detection of available files ;
- Geometry validation ;
- Compatibility with
pandas,geopandasandshapely.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb615573013b99e4451d6d81f433ccba373a7814633db171b02d63f65268b1f4
|
|
| MD5 |
6f4a35fe3bfabc8c786423bb92db9253
|
|
| BLAKE2b-256 |
4be39149c0f23a705928867af1e63c6a53a8ec97aaa1a75dbacdb9176b7fcd11
|
File details
Details for the file penguinstransittoolbox-0.1.0-py3-none-any.whl.
File metadata
- Download URL: penguinstransittoolbox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3abf21a3d517440eb5e33913a395a8c8c0c646900c7bfa72ccd5a7ab1ab677cf
|
|
| MD5 |
d0dc46c0693ee9f28bd1d1efea3bd747
|
|
| BLAKE2b-256 |
4654f1591e6ce16041cc42093dd5eaefabcda831c602eea0565e11b35eaedf06
|