🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

itranvias-api

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itranvias-api

Python API wrapper for the city of A Coruña public transport

0.1.1
Maintainers
1

itranvias_api 🚍

GitHub license PyPI version

Python API wrapper for the city of A Coruña public transport ran by Cia. Tranvías de La Coruña, S.A..

📜 Documentation

Documentation can be found here.

For the time being there is only one submodule: itranvias_api.queryitr which implements all (that I know of) functionality in the official iTranvías client, using the "queryitr" API used by it, found at https://itranvias.com/queryitr_v3.php.

🔧 Installation

Just run:

pip install itranvias_api

🖥️ CLI client

I have written a very simple, very basic POC, CLI client using this library, it is avaliable as itranvias-cli once the package is installed.

Usage:

usage: itranvias-cli [-h] {stop,line} ...

Get real-time bus information for the city of A Coruña.

positional arguments:
  {stop,line}
    stop       Get next buses for a specific stop.
    line       Get buses and stops 'diagram' for a specific line and route.

options:
  -h, --help   show this help message and exit

⚠️ Disclaimer

This project is not endorsed by, directly affiliated with, maintained by, sponsored by or in any way officially related with la Xunta de Galicia, Concello da Coruña, Cia. Tranvías de La Coruña, S.A., SISTEMAS OLTON, S.L. or any of the companies and entities involved in the official iTranvías app.

This software is provided 'as is' without any warranty of any kind. The user of this software assumes all responsibility and risk for its use. I shall not be liable for any damages or misuse of this software. Please use the code and information in this repo responsibly.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts