Skip to main content

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)

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

pyefa3-0.2.1.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

pyefa3-0.2.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file pyefa3-0.2.1.tar.gz.

File metadata

  • Download URL: pyefa3-0.2.1.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for pyefa3-0.2.1.tar.gz
Algorithm Hash digest
SHA256 623e748230ab5e701e47f2b1199cb6def4f150357c59ee14a593a80e94a015e3
MD5 aab7b84a9eda1aa28ad57ad3f1e6616a
BLAKE2b-256 02d978f5f42745b22b87808b45cbaa3c07957e9ba5e669958de6c694567fa944

See more details on using hashes here.

File details

Details for the file pyefa3-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pyefa3-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for pyefa3-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b02454c731ebf2bede16f432798e98ac26ac240385715fe04feacc538356cd5
MD5 3b115a5f725922a94a6ceab01dbb3429
BLAKE2b-256 4a2bbd496b8eefc4dcebac1f2414327bdcd8812f78ff670d7b99720accf9d94d

See more details on using hashes here.

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