Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
railway-api
Advanced tools
An API with various functionalities for indian railways
npm install railway
##Usage
var railway = require('railway-api')
railway.setApikey('<API key>')
You may register for a key at http://www.railwayapi.com/pricing/
Get PNR status using 10 digit PNR No.
railway.checkPnr('<10 digit pnr>', function (err, res) {})
Get station details of given station and nearby stations using station name with automatic name completion.
railway.stationCode('<station name>', function (err, res) {})
Get passed railway station and nearby stations details using station code.
railway.stationName('<station code>', function (err, res) {})
Get live train status.
railway.liveTrainStatus('<train number>', function (err, res) {})
Get train’s route information like the list of stoppages,their locations etc.
railway.trainRoute('<train number>', function (err, res) {})
Get all trains(numbers) running between a source station and destination.
railway.trainBetweenStations('<source>', '<destination>', function (err, res) {})
Get train name using number and vice versa.
railway.name_number('<train name or number>', function (err, res) {})
Get Train Seat Availability.
railway.seatAvailability = ('<trainNo>', '<source>', '<destination>', '<date>', '<class>', '<quota>', function (err, res) {})
class: valid class code can be fetched from http://www.indianrail.gov.in/class_Code.html
quota(optional: defaults to GN): valid quota code can be fetched from http://www.indianrail.gov.in/quota_Code.html
FAQs
An API with various functionalities for indian railways
The npm package railway-api receives a total of 6 weekly downloads. As such, railway-api popularity was classified as not popular.
We found that railway-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.