PyeRail is a Python wrapper for the eRail web API.
It allows quick and easy comsumption of eRail API from your Python applicatuon.
PyeRail reqires Python 3.
You can install pyerail using:
$ pip3 install pyerail
Build from source
$ git clone https://github.com/aksbuzz/PyeRail.git $ cd PyeRail $ make
For access to the eRail API you would need a API Key.
You can get the API Key from here http://api.erail.in/
Creating an instance object of class
>>> from pyerail import Erail
>>> eRail = Erail(api_key)Getting details of given PNR number
>>> eRail.pnr(your_pnr_number)In any case the object returns
"status" and "result"
You can find example usage in the examples folder.
Contributions are welcome!.
Documentation at http://api.erail.in/
- Add Python 2 support
- Add detailed documentation
