Python-Bindings for online train connection APIs.
Project description
pyefa3
Python-Library for accessing online train connection APIs (Elektronische Fahrplanauskunft).
A list of supported regions can be found here.
Installation
Just install it from the Python Package Index:
pip install pyefa3
Usage
from pyefa.classes import Station
from pyefa.networks import DING
origin_station = Station()
origin_station.name = "Theater"
origin_station.place = "Ulm"
destination_station = Station()
destination_station.name = "Universität Süd"
destination_station.place = "Ulm"
efa_api = DING()
result = efa_api.tripRequest(origin_station, destination_station, apitype="xml")
print(result)
machine_readable = result.asdict()
Install from source
The Python-Modules beautifulsoup4 and colorama are required.
Just clone the repository and run:
python setup.py install
Documentation
Documentation is available via docstrings.
pydoc clifa
pydoc clifa.classes
# and so on
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyefa3-0.2.3.tar.gz.
File metadata
- Download URL: pyefa3-0.2.3.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56faae45a9edd0293d1f8a2c9cec5925d2e0f9faad5fa654db8e1645889e689c
|
|
| MD5 |
7c8decf8876308268a97f24a38c6febe
|
|
| BLAKE2b-256 |
edf322ed1a64f719d9c2b4474e22ed0d458bfedb3623c21dc4dc9dc1296ed310
|
File details
Details for the file pyefa3-0.2.3-py3-none-any.whl.
File metadata
- Download URL: pyefa3-0.2.3-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11d9e776437be46aa723f5251d8a26d7316d61b84acf0a70c5b58397feb21325
|
|
| MD5 |
d358216387a7448c491b7f06990339bb
|
|
| BLAKE2b-256 |
14cf18ef3980f76f8bce7943fc96c819a110f85fd33c987874510f38fc16ce20
|