SalahNow command-line prayer times
Project description
SalahNow CLI
Command-line prayer times using the same source logic as SalahNow Web:
- Türkiye: Diyanet (
ezanvakti.emushaf.net) - Worldwide: Muslim World League via AlAdhan (
method=3,school=1)
Install
Option 1: pipx from PyPI (recommended)
pipx install salahnow-cli
Option 2: pip from PyPI
python3 -m pip install --user salahnow-cli
Option 3: local dev install
pipx install .
Option 4: install script
./scripts/install.sh
Commands
Show today's prayer times
salahnow
Check version:
salahnow --version
Next prayer + live countdown
salahnow next
Configure location/method/time format
salahnow config
Print current config:
salahnow config --show
Non-interactive example:
salahnow config \
--city "New York" \
--country "United States" \
--country-code US \
--lat 40.7128 \
--lon -74.0060 \
--method mwl \
--time-format 12h
Config file path:
~/.config/salahnow/config.json
Notifications daemon
salahnow notify
- macOS: uses
osascript - Linux: uses
notify-send(if available)
Zsh completion
Typer/click completion is built in:
salahnow --install-completion zsh
or print script:
salahnow --show-completion zsh
Notes
- Non-Türkiye locations are forced to
mwlsource (same as web behavior). - Türkiye locations can use Diyanet, and CLI resolves
diyanetIlceIdfrom nearest TR city if missing. - The CLI stores runtime cache in
~/.cache/salahnow/prayer_cache.jsonand uses cached data when APIs are temporarily unavailable.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
salahnow_cli-0.2.0.tar.gz
(15.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file salahnow_cli-0.2.0.tar.gz.
File metadata
- Download URL: salahnow_cli-0.2.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dacc134c240f65d804a28e00a095dec57cb66cd219d83d754011e493669fa23
|
|
| MD5 |
8e8d6c1679ea73f64de451459f92e01e
|
|
| BLAKE2b-256 |
cbc920a6f5d5c3c05bb1e9c62fbdd139a440310cfa653802069c9bfd1f18b48e
|
File details
Details for the file salahnow_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: salahnow_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cd234bb6b09b68ad50e3d3be806cfa4a1596b952c120d5ab52269a15ad95a95
|
|
| MD5 |
ffc473a7b86ca70067eaf98622f90d6d
|
|
| BLAKE2b-256 |
2d1c834c7611416933530d2fe8d41d44bd0188f49ad64aa11a20501d445e348d
|