Skip to main content

Python API wrapper for the galician public transport

Project description

# bus.gal-api 🚍

[![GitHub license](https://img.shields.io/github/license/peprolinbot/bus.gal-api)](https://github.com/peprolinbot/bus.gal-api) [![PyPI version](https://img.shields.io/pypi/v/busGal-api?label=pypi%20package)](https://pypi.org/project/busGal-api) [![Upload Python Package](https://github.com/peprolinbot/bus.gal-api/actions/workflows/python-publish.yml/badge.svg)](https://github.com/peprolinbot/bus.gal-api/actions/workflows/python-publish.yml)

Python API wrapper for [the galician public transport](https://www.bus.gal/) which uses the associated [app](https://play.google.com/store/apps/details?id=gal.xunta.transportepublico)’s http API to get the inforamtion about buses, your card and your user account. I got the endpoints using [mitmproxy](https://mitmproxy.org/).

## 📜 Documentation

Documentation can be found [here](https://peprolinbot.github.io/bus.gal-api). There are two main submodules: busGal_api.transport and busGal_api.accounts, the first one has all the functions related to transportation and the second one allows you to manage cards and accounts, as the name implies.

## 🔧 Installation

Just run:

` bash pip install busGal_api `

## ✅ Quick examples

There are quick examples for both the submodules mentioned above in their __main__.py and their docs.

## ⚠️ 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, the bus operators or any of the companies involved in the [bus.gal](https://www.bus.gal/) website and the [app](https://play.google.com/store/apps/details?id=gal.xunta.transportepublico).

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

busgal_api-0.2.0.1.tar.gz (35.0 kB view details)

Uploaded Source

Built Distribution

busGal_api-0.2.0.1-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file busgal_api-0.2.0.1.tar.gz.

File metadata

  • Download URL: busgal_api-0.2.0.1.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for busgal_api-0.2.0.1.tar.gz
Algorithm Hash digest
SHA256 d277ddce038348589950f5bae7b70fd135f4aa728199217e9ea6cbd4e4071412
MD5 46b1512a34ad195f15e43fe28a17986c
BLAKE2b-256 8d6ab44cd97073f7c7adde745a38043c481838fc2c0a6874476fbe891a8e43aa

See more details on using hashes here.

File details

Details for the file busGal_api-0.2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for busGal_api-0.2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bce2407a3da96bd80cf0eaa1cb19d5b9f37f576590085088f909d7efc80854e4
MD5 87d0eb2d4422fbc7572bda5c0e2747e6
BLAKE2b-256 fefe89ee40233301570aaf5b993088badf19b78e02411addf1101ef950196817

See more details on using hashes here.

Supported by

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