Skip to main content

Israeli Rail unofficial API

Project description

# Israel Rail API [![image](https://img.shields.io/pypi/v/israel-rail-api.svg)](https://pypi.org/project/israel-rail-api/) [![image](https://img.shields.io/pypi/l/israel-rail-api.svg)](https://pypi.org/project/israel-rail-api/) [![Build Status](https://travis-ci.org/sh0oki/israel-rail-api.svg?branch=master)](https://travis-ci.org/sh0oki/israel-rail-api)

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.3.tar.gz (12.7 kB view hashes)

Uploaded Source

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