Skip to main content

Command-line utility to check Indian Railways PNR status using ConfirmTKT API

Project description

ctpnr

A lightweight command-line tool to fetch Indian Railways PNR Status using the ConfirmTKT API.


📦 Installation

Install locally from the project folder:

pip install ctpnr

🚀 Usage

Basic Usage

ctpnr 6261386648

Raw JSON Output

ctpnr 6261386648 --json

⭐ Example Output

Command:

ctpnr 6261386648

Result:

===== PNR STATUS =====
PNR: 6261386648
Train: 12792 - SECUNDERABAD EX
From: DNR → To: NGP
Date of Journey: 24-11-2025
Class: SL
Chart Prepared: False

--- Passenger Status ---
Passenger 1:
  Booking Status : PQWL 65
  Current Status : PQWL 44
  Prediction     : 60% Chance

Passenger 2:
  Booking Status : PQWL 66
  Current Status : PQWL 45
  Prediction     : 59% Chance

Departure Time     : 12:15
Arrival Time       : 11:00
Expected Platform  : 4
=======================

📚 Features

  • ✔ Fast CLI tool
  • ✔ JSON output mode
  • ✔ Accurate prediction (from ConfirmTKT API)
  • ✔ Cross-platform (Windows, macOS, Linux)

🔮 Upcoming Improvements (Optional)

I can add more features if you want:

  • 🎨 Colored Terminal Output
  • 💾 Caching (faster next runs)
  • 🔁 Auto retry on failed API
  • 🖥 GUI Version
  • 📦 Publish to PyPI

Just say: “add colors” or “publish to PyPI” or “make GUI version”


📄 License

MIT License © 2025


---

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

ctpnr-1.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ctpnr-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ctpnr-1.0.1.tar.gz.

File metadata

  • Download URL: ctpnr-1.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ctpnr-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8cdcccd9d8aac3eadd9b208d2455a301b3dce5064af881278a5173e775117819
MD5 866baa3741505b2e782042a9dc623e7d
BLAKE2b-256 2d7a1b5e65b485b473e0e535b7c7e8689173149c3833796fc4da2f68e785acc5

See more details on using hashes here.

File details

Details for the file ctpnr-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ctpnr-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ctpnr-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bacc277b359f6398ab3f09a5b6f53982823c95a78839216e77e59146970831b0
MD5 cd50006ff5a02f50920b384a4078b20a
BLAKE2b-256 276205a933f367edc68c91689b31c9e75cc00d88b99ee7972d1c3e42e348fb98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page