Functions to work on GTFS railway data
Project description
GTFS Railways
gtfs-railways is a Python package designed to analyze and simulate railway networks based on GTFS (General Transit Feed Specification) data stored in SQLite databases. It provides tools for network efficiency simulations, node removal strategies, and visualization of results.
Features
- Load GTFS data from SQLite databases
- Compute network efficiency metrics
- Simulate the impact of node removals (random, targeted, betweenness-based)
- Visualize efficiency results with customizable plots
- Utilities for working with railway transit data
Installation
Install the package from PyPI using pip:
pip install gtfs-railways
In its current state, the package requires some external packages to be installed manually. You can install them using pip as follows:
pip gtfs_railways/external_packages/osmread
pip gtfs_railways/external_packages/gtfspy
Examples
-
example_01.py
- Minimal working example of the P-space function. The P-space is the ensemble of all possible paths in the railway network.
-
example_02.py
-
Minimal working example of the GTC function. GTC is the computational cost to the calculation of all connections between two nodes in the P-space.
The travel cost is the calculation of all possible paths between any two nodes in the P-space.
-
-
example_03.py
- Minimal working example of the efficiency_graph function. The efficiency_graph function has been optimized (version 0 to 5).
-
example_04.py
- Minimal working example of the nodes removal simulation on a single graph.
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
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 gtfs_railways-0.1.6.tar.gz.
File metadata
- Download URL: gtfs_railways-0.1.6.tar.gz
- Upload date:
- Size: 61.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
797f7142705f60cb564dfbcafa8c2bbaba9cc4560dd0159fa88466bf99aa35e4
|
|
| MD5 |
a93d5188e22a7002ede6be21fbcd9454
|
|
| BLAKE2b-256 |
c96bc98ffbb0f337edbd21fce6923de86afefa37e09aa8b6e46b7d611297182e
|
File details
Details for the file gtfs_railways-0.1.6-py3-none-any.whl.
File metadata
- Download URL: gtfs_railways-0.1.6-py3-none-any.whl
- Upload date:
- Size: 77.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0b1aabaa4deb60075dff24d43f73895b48051c1ce1767bd99c6f875af6a22f7
|
|
| MD5 |
d86127fb71dd0c1ce3ac487db46c7b80
|
|
| BLAKE2b-256 |
0b89c112aa81747b555c79c63d83d0c36d708d176115a2ea3a60f56bb0465c2f
|