Public Transit Viewer
Viewer to interact with the Public Transit Service.
The streamlit based Python app allows users to query connections between two stops or generate isolines from a specific stop. The application supports the query parameters of the service to search specific connections or isoline.
Installation
Get the current release from pypi and start the viewer:
pip install public-transit-viewer
export NAVIQORE_SERVICE_URL=<SERVER:PORT>
ptv-deploy
Or run the viewer inside a Docker container:
docker run -p 8501:8501 -e NAVIQORE_SERVICE_URL=<SERVER:PORT> ghcr.io/naviqore/public-transit-client:latest
Access the viewer on http://localhost:8501.
Development
Configuration
Create a .env file in the root directory. And add a line telling the application to which service host it should
connect. In Local Development this is typically a Java Spring service running on http://localhost:8080.
The required line in the .env file will then be: NAVIQORE_SERVICE_URL=http://localhost:8080
Note: you can also specify the NAVIQORE_SERVICE_URL in your operating system environment.
Starting the App
To start the app in development mode run following command from the root directory:
poetry run streamlit run public_transit_viewer/connections.py
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for public-transit-viewer 1.0.0
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 |
|---|---|---|---|---|
| public_transit_viewer-1.0.0.tar.gz | 224.7 kB | Without provenance | Details for public_transit_viewer-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| public_transit_viewer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for public_transit_viewer-1.0.0-py3-none-any.whl |
Total release size: 452.3 kB
Release files / public_transit_viewer-1.0.0.tar.gz
| Download URL | public_transit_viewer-1.0.0.tar.gz |
|---|---|
| Size | 224.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
beab77f72385350c2903c5335fd3c23cc4066bc05f20b6cc72533b8bb2dfa9f7
|
|
BLAKE2b-256 checksum How to use checksums |
68e0825d6be3a1dc8586205bbb9902f77e1a2aee877d41bde9b42be4fb814c80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-1014-azure
|
Release files / public_transit_viewer-1.0.0-py3-none-any.whl
| Download URL | public_transit_viewer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 227.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b00572cbc165189ee35e735a1ce8eed8fb75f6c74b63337d3b2648a0c01af104
|
|
BLAKE2b-256 checksum How to use checksums |
cb1d00b242ac13cd3b6c1caaf436e977f440e383617b54ea727ec18ed648333f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-1014-azure
|
Security for public-transit-viewer 1.0.0
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.