Skip to content
/ pyefa3 Public

Python 3-Library for accessing online train connection APIs (Elektronische Fahrplanauskunft)

License

Notifications You must be signed in to change notification settings

Tanikai/pyefa3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python 3-Library for accessing online train connection APIs (Elektronische Fahrplanauskunft)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages