Skip to main content

Israeli Rail unofficial API

Project description

Israel Rail API

image image Build Status

This is a unofficial wrapping of the API of Israeli Rail network in Python.

Use this script for checking your own train schedule, integrating with Alexa, and so on!

Installing

Tested with Python 3.6, should probably work fine with other versions too.

    pip install israel-rail-api

Usage

    import israelrailapi
    s = israelrailapi.TrainSchedule()
    print(s.query('Tel Aviv University', 'Jerusalem Yitzhak Navon'))

A simple test, to make sure the script is working is included in schedule.py:

    python schedule.py "tel aviv hahagana" "ben gurion airport" 2018-12-24 0900 

Contributing

We'd love your contributions! Fire up a (tested!) Pull request and we'll be happy to approve it.

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

israel-rail-api-0.0.4.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

israel_rail_api-0.0.4-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file israel-rail-api-0.0.4.tar.gz.

File metadata

  • Download URL: israel-rail-api-0.0.4.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.12.5 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.0

File hashes

Hashes for israel-rail-api-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8352a492490709e13ef478b201795789fad10af87d2d4a909528efedb1e3f1d0
MD5 588f1a6be1032e1ca061c13b1f03b237
BLAKE2b-256 528ee436921814d9a54bd68bb2e1817c31a5a57896e8c51669122cc34a00d48d

See more details on using hashes here.

File details

Details for the file israel_rail_api-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for israel_rail_api-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e2598a88b3ab874526c689659d67c79fc3ff452639da029e59dd6ef0865d1c88
MD5 6ea2744c5c3b2ef67bebab72d1548bea
BLAKE2b-256 7997abf65c53779d4feb48bc343a2784a37469c1948044967352b6142783bfae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page