Python scripts for polling different data from CRTM.
- CRTM intercity buses:
- Get the stop times for all the bus lines in a given stop.
- Get the stop times for all the bus lines for every given stop code in a file.
- Get the parsed stop times for all the bus lines for every given stop code in a file in CSV format.
- Run a periodic daemon that executes one of the possible functions and stores the output a given file.
- Perform a test to find out the optimal number of parallel connections when polling the server.
pip3 install git+git://github.com/cgupm/crtm_poll
You can use the Dockerfile to build a minimal image containing this tool and its dependencies or directly use the public image:
docker run -it --rm -v "${PWD}:/home/user" -v /etc/localtime:/etc/localtime:ro --user $(id -u):$(id -g) cgupm/crtm_poll
Once installed, this package provides a command line script that can be run as follows:
crtm_poll --help
crtm_poll gst 8_17491
Tests can be run executing pytest
or make test
within the project's
directory.
GPLv3
cgupm: c.garcia-maurino (at) alumnos.upm.es