Skip to main content

🕌 Salah

A sleek terminal user interface (TUI) for Islamic prayer times mapping the sun path across the horizon built with Textual and styled in the Dracula theme.

Salah TUI Screenshot

✨ Features

  • 24-Hour Solar Arc & Symmetries: Unicode Braille curve mapping the sun/moon path across the horizon with interactive prayer markers, interval spans, ratios, and percentage shares.
  • Synthesized Reminders: Configurable audio/desktop notifications supporting on-time chimes and 23-minute advance alerts (n).
  • Live Countdown & Status: Real-time countdown with color-coded prayer status indicators (✓ Passed, ⏳ Next, • Upcoming).
  • Qibla Direction: Single-line compass bearing, directional arrow, and exact angle to the Kaaba.
  • Hijri Date & Method Indicator: Displays active Hijri dates and calculation methods via the AlAdhan API.
  • Settings & Persistence: Interactive modal to switch locations/methods (c) and save preferences locally to ~/.salah_tui.json (s).

☀️ Solar Arc & Daylight Symmetries

Salah renders a live 24-hour astronomical arc below the prayer table using Unicode Braille sub-pixels, featuring daylight curves from Sunrise to Maghrib, night arcs spanning Isha and Fajr, and interactive markers (◆ for fixed prayers, ◈ for the selected row). It also includes symmetry columns (Span, Ratio, Share) comparing twilight intervals and daylight proportions.

📦 Installation

Install globally in an isolated environment using pipx:

pipx install git+https://github.com/postsonde/salah-tui.git

🚀 Usage

Launch the application from anywhere in your terminal:

salah

Keyboard Shortcuts

Key Action
↑ / ↓ Scroll through prayers and highlight their position on the solar arc
c Change city, country, and calculation method
n Cycle reminder mode (Off → At Prayer Time → 23m Before + At Time)
s Save location, calculation method, and reminder mode to ~/.salah_tui.json
r Refresh prayer times
q Quit the application

🕋 Qibla Direction

The Qibla is the direction from your location to the Kaaba in Makkah, displayed between the calculation method and reminder status with a directional arrow and bearing in degrees.

How It Is Calculated

  • Coordinates: Geocoded via Open-Meteo Geocoding API and cached per session.
  • Bearing: Initial great-circle bearing to the Kaaba (21.4225° N, 39.8262° E) computed locally via spherical trigonometry.
  • Independence: Calculated independently of the chosen prayer time calculation method.

⚠️ Notes and Limitations

  • City-level accuracy: Computed from city centers; minor deviations may occur for larger or distant areas.
  • True north: Based on geographic (true) north rather than magnetic north.
  • Ambiguous names: Double-check matched locations if common city names overlap; verify coordinates via AlAdhan Qibla endpoint.
  • Internet required: Initial lookups require connectivity; subsequent lookups rely on session caching.
  • Field verification: Theoretical calculations should be cross-referenced with local authorities for formal prayer times.

⚙️ Supported Calculation Methods

  • 3 – Muslim World League (default)
  • 13 – Diyanet İşleri Başkanlığı, Turkey
  • 2 – Islamic Society of North America (ISNA)
  • 4 – Umm Al-Qura University, Makkah
  • 5 – Egyptian General Authority of Survey
  • 1 – University of Islamic Sciences, Karachi
  • 12 – Union Organization Islamic de France
  • 15 – Moonsighting Committee Worldwide

📄 License

GNU General Public License (GPLv3)


☪ Islamic Terminal Suite (Dracula Theme)

Part of a collection of minimalist Islamic terminal apps styled in the Dracula dark theme:

Islamic Terminal Suite Demo

App Command Description
salah-tui salah Islamic prayer times mapping the sun path on the horizon, Hijri date & calculation methods
hijri-tui hijri Native Hijri calendar with lunar phases, Sunnah fasting & holy days
quran-tui quran Study the Holy Quran with 100+ translations, side-by-side view & bookmarks
asma-tui asma Learn the 99 Names of Allah with flashcards, streak quiz & directory

Metadata

Release files for salah-tui 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for salah-tui 0.1.0
File Size Uploaded Provenance Actions
salah_tui-0.1.0.tar.gz 25.1 kB With provenance Details for salah_tui-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for salah-tui 0.1.0
File Interpreter ABI Platform Actions
salah_tui-0.1.0-py3-none-any.whl Python 3 none any Details for salah_tui-0.1.0-py3-none-any.whl

Total release size: 50.6 kB

Release files / salah_tui-0.1.0.tar.gz

Download URL salah_tui-0.1.0.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4a6de721d55a9015a2b9c5eef19f78bf26f41cb0c83fd107e07c91189bb40fbe
BLAKE2b-256 checksum
How to use checksums
cef030a42aa395a54d4371b1cefbe676d74d50217935f4fb14aae75c3b839b4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / salah_tui-0.1.0-py3-none-any.whl

Download URL salah_tui-0.1.0-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0b8753cbcce7367b7649352e2ae441de559c27ac4c4d11918e6134c7930f734
BLAKE2b-256 checksum
How to use checksums
53432cec094fe9e81e5ccb04de1d8b7c52a72f6b72499b82c24f7f030d8ddb32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for salah-tui 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for salah_tui-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page