Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itranvias_api-0.1.1.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

itranvias_api-0.1.1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file itranvias_api-0.1.1.tar.gz.

File metadata

  • Download URL: itranvias_api-0.1.1.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for itranvias_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 754e7a7f6c9a1d9d6d111397020d266c0e562ae00b3c257369bb99910f649202
MD5 5d2108241dd634c4a88eafa103cb6d4d
BLAKE2b-256 222ac09177f7f82e92855db0b615370a472606eb499d822b9b3f96532646b213

See more details on using hashes here.

Provenance

The following attestation bundles were made for itranvias_api-0.1.1.tar.gz:

Publisher: publish-to-test-pypi.yml on peprolinbot/itranvias_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file itranvias_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: itranvias_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for itranvias_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3568e315872377248403f4913a0a5141092277962f9d924acea9960eea5eed0
MD5 4b9a08007a6858eea8c32dfcc36dedcf
BLAKE2b-256 2d2219138afdc452ce3c808e9f6cdd53164b25c61ed22c5c7a001668386adf22

See more details on using hashes here.

Provenance

The following attestation bundles were made for itranvias_api-0.1.1-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on peprolinbot/itranvias_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page