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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file busgal_api-0.2.1.1.tar.gz
.
File metadata
- Download URL: busgal_api-0.2.1.1.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4796976a43efeea224d0ae64939fcc4e6aed95cfd0971521de9ea6a14f0af2b0 |
|
MD5 | e5c890de51025308dfa25741161e510d |
|
BLAKE2b-256 | 60e0a6ec7744d5814cab76def5147abba6f0dd89ec7d9337615662b5735741d1 |
File details
Details for the file busGal_api-0.2.1.1-py3-none-any.whl
.
File metadata
- Download URL: busGal_api-0.2.1.1-py3-none-any.whl
- Upload date:
- Size: 41.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e2b33dac4201fa268960858e0404801ca82a8357be6cbf4f941205fe60276c1 |
|
MD5 | 047d5f7aed336ac636be1cd0ab556a50 |
|
BLAKE2b-256 | f34817a7f935ea4d65c3985eef765539147ef5ac0f76d907f3c6777f908fbee4 |