amarillo-gtfs-exporter
This plugin for Amarillo adds endpoints /region/{region_id}/gtfs and /region/{region_id}/gtfs-rt for serving the GTFS data on your Amarillo instance. Serves the gtfs zip files from the data/gtfs folder. If the files don't exist or are out of date (from yesterday in the case of GTFS and older than a minute for GTFS-RT) the plugin will retrieve them from the configured generator_url.
Installation
pip install amarillo-gtfs-exporter
This package will install inside the amarillo/plugins folder in your python environment. Next time you launch Amarillo, it should be discovered automatically and you should see messages like this:
INFO - Discovered plugins: ['amarillo.plugins.gtfs_export', ...]
...
INFO - Running setup function for amarillo.plugins.gtfs_export
The setup() function will be called automatically and it will add the necessary endpoints to your Amarillo FastAPI application.
Configuration
You can configure the generator_url through an environment variable, or by adding it to the config file in the amarillo root folder:
generator_url = 'http://localhost:8002'
The default value is http://localhost:8002.
The generator_url should point to a running instance of amarillo-gtfs-generator.
Usage
Make GET requests to the /region/{region_id}/gtfs and /region/{region_id}/gtfs-rt. The GTFS data will be returned as a zip file, while realtime data can be requested in .pbf or .json using the format query parameter.
Metadata
Release files for amarillo-gtfs-exporter 2.0.5
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 |
|---|---|---|---|---|
| amarillo_gtfs_exporter-2.0.5.tar.gz | 39.5 kB | Without provenance | Details for amarillo_gtfs_exporter-2.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amarillo_gtfs_exporter-2.0.5-py3-none-any.whl | Python 3 | none | any | Details for amarillo_gtfs_exporter-2.0.5-py3-none-any.whl |
Total release size: 68.1 kB
Release files / amarillo_gtfs_exporter-2.0.5.tar.gz
| Download URL | amarillo_gtfs_exporter-2.0.5.tar.gz |
|---|---|
| Size | 39.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea0df3716e5001618e780a4ccba82bf0ec4e893e8998ff87e7ff613b0a562d4e
|
|
BLAKE2b-256 checksum How to use checksums |
92f19cbc67ccbb66f08abf7db5110cb5e32ee7260d8968f0b90bf18f6960f40c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.2
|
Release files / amarillo_gtfs_exporter-2.0.5-py3-none-any.whl
| Download URL | amarillo_gtfs_exporter-2.0.5-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
305e7e0ef6bdca0e1941d51d2f5d753756264c632292d951147f8b89b3dad690
|
|
BLAKE2b-256 checksum How to use checksums |
9fbcdf16e29fce1e5859466dd0743c6654537047bec039643a6cda22527db14e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.2
|
Security for amarillo-gtfs-exporter 2.0.5
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.