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.
Metadata
Release files for gtfs-railways 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gtfs_railways-0.1.6.tar.gz | 61.0 kB | Without provenance | Details for gtfs_railways-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gtfs_railways-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for gtfs_railways-0.1.6-py3-none-any.whl |
Total release size: 138.4 kB
Release files / gtfs_railways-0.1.6.tar.gz
| Download URL | gtfs_railways-0.1.6.tar.gz |
|---|---|
| Size | 61.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
797f7142705f60cb564dfbcafa8c2bbaba9cc4560dd0159fa88466bf99aa35e4
|
|
BLAKE2b-256 checksum How to use checksums |
c96bc98ffbb0f337edbd21fce6923de86afefa37e09aa8b6e46b7d611297182e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / gtfs_railways-0.1.6-py3-none-any.whl
| Download URL | gtfs_railways-0.1.6-py3-none-any.whl |
|---|---|
| Size | 77.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0b1aabaa4deb60075dff24d43f73895b48051c1ce1767bd99c6f875af6a22f7
|
|
BLAKE2b-256 checksum How to use checksums |
0b89c112aa81747b555c79c63d83d0c36d708d176115a2ea3a60f56bb0465c2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Security for gtfs-railways 0.1.6
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.