CLI tool for Moroccan prayer times
Project description
Overview
Wuqut is a CLI tool for extracting prayer times from the Moroccan Ministry of Habous website.
Features
- By default, it displays time left until the next prayer or elapsed time since the last prayer depending on which is closest
- Optionally displays raw current day values (including Hijri date)
- Requires internet connection only once a month to update local data
- Optionally converts to UTC time for users opting out of Daylight Saving Time
Usage
usage: wuqut [-h] [-r | -u | -t] [-c ID]
Extract Moroccan prayer times from the official source
options:
-h, --help show this help message and exit
-r, --raw print raw values for the current day
-u, --update update local files
-t, --force-utc assume system time is set to UTC when Daylight Saving Time
is in effect
-c, --city-id ID Only useful with '--update'. Ignored otherwise
Requirements
Python 3.10+
Installation
pip install git+https://github.com/helanabi/wuqut.git@v0.3.0
Use
pipxfor user-level installation (doesn't require root access)
Configuration
- GNU/Linux users using systemd as their init system can use the example service/timer configuration files to auto-update data. For example:
cp wuqut.service wuqut.timer ~/.config/systemd/user/systemctl --user enable wuqut.timer
If you don't know what your init system is, you most likely are using systemd
To confirm, run:ps c -ocmd= 1
- Set the '--city-id' option to match your city ID. If you don't know what your city ID is, visit upstream URL, use the dropdown box to select your city, the URL will change to reflect your city's ID.
Exit Codes
1: operating system error2: usage error3: data unavailable4: data out-of-date5: server error6: network error9: unexpected error
LICENSE
This project is licensed under the GNU General Public License v3.0 or later.
See the COPYING file for details.
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
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 wuqut-0.3.0.tar.gz.
File metadata
- Download URL: wuqut-0.3.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a11c39b6dd8ecb87c2b836106aa3a86561899ee373defad676fd1c16e50b170d
|
|
| MD5 |
063f8f7ddc5b7767f92c918e2c99ae7e
|
|
| BLAKE2b-256 |
10c438b99d112120d4df1d6343716f51e0c44ccc4f1b613119576053cd2ea68f
|
File details
Details for the file wuqut-0.3.0-py3-none-any.whl.
File metadata
- Download URL: wuqut-0.3.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d75daf3c94b0f53d655f2465284ffeb505cce2f10682a0b9f972f24f0b8ff75
|
|
| MD5 |
9dcbca2973ff69a9a7632d68b1854acf
|
|
| BLAKE2b-256 |
00eb9331f8fd9bb3bafffb6a04b6a6607a3f7a587a9ba4ace89146294cedc6da
|