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)

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

pyefa3-0.2.2.tar.gz (17.5 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.2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyefa3-0.2.2.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

Hashes for pyefa3-0.2.2.tar.gz
Algorithm Hash digest
SHA256 50d953bb618de235e16ee4607c7b70edce95028d32f6d50d31b77272292021f5
MD5 f4fcc594f410cba5b57677b02778c15a
BLAKE2b-256 dafdf4ad2c1faff938f9969cc7aa68dbf39c9dab9738cc9ca9c0c727b1458263

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyefa3-0.2.2-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

Hashes for pyefa3-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4574cdf08d0675e5d1b0eb4ebeed8996c78dcab6a74ef9244dc164c1f77ada4c
MD5 ec71606f4fcfe20f0ec9c630e78226ca
BLAKE2b-256 000bf022de76565176af18fd7a3f8ffb1afebdf5564e3560e75c26a430228fdc

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