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.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for israel-rail-api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dcb1ff89f211c3e4303fe1456b06315050011d5739bd6f84413f4c8dd15b63c2
MD5 a4e69a46f34f7ce2c7d5d1ce620de2e3
BLAKE2b-256 eb6dc3d10d2a6a684157e14fa42fd7c1daaaa0a8cf0603cb617dec472a9197a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for israel_rail_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0beee398a5c37c9640890cfe9ceb804bf7433a4d11a1ea6efcf02ab567b7dc9
MD5 278ae9969c52f3488d2fa861d33a25c6
BLAKE2b-256 8ff1f88269ff3277c0d2654e2d25dd5f654ed8709e04a3ebdd1c4f5485f95d11

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