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.11, 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:

python3 schedule.py "tel aviv hahagana" "ben gurion airport" 2023-06-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.1.2.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

israel_rail_api-0.1.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: israel-rail-api-0.1.2.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for israel-rail-api-0.1.2.tar.gz
Algorithm Hash digest
SHA256 73fdf7aa767099fc365a9d4c79117af90319a63861618d9fbdb303287d7e1aaf
MD5 79747bdccd6104ca02f6cf1ffbaf82c9
BLAKE2b-256 51c9127a80ce8ef6d9aae2e78d04e8e0cb67eca40e0659bef81672bc46173092

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for israel_rail_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc5d8f2409a8818e578ea6841c70778238919e7e528111e3bed2815ea266844b
MD5 dd5f7a225c493e002e056a06fb755ecf
BLAKE2b-256 f15ffc329e26b63823719e658a283eea41a25ba963a4c7c4180e7737157a6934

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