Skip to main content

Overview

Wuqut is a CLI tool for extracting prayer times from the Moroccan Ministry of Habous website.

wuqut demo

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 pipx for 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 error
  • 2: usage error
  • 3: data unavailable
  • 4: data out-of-date
  • 5: server error
  • 6: network error
  • 9: unexpected error

LICENSE

This project is licensed under the GNU General Public License v3.0 or later.
See the COPYING file for details.

Metadata

Release files for wuqut 0.3.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 wuqut 0.3.0
File Size Uploaded
wuqut-0.3.0.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wuqut 0.3.0
File Interpreter ABI Platform
wuqut-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.4 kB

Release files / wuqut-0.3.0.tar.gz

Download URL wuqut-0.3.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a11c39b6dd8ecb87c2b836106aa3a86561899ee373defad676fd1c16e50b170d
BLAKE2b-256 checksum
How to use checksums
10c438b99d112120d4df1d6343716f51e0c44ccc4f1b613119576053cd2ea68f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / wuqut-0.3.0-py3-none-any.whl

Download URL wuqut-0.3.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d75daf3c94b0f53d655f2465284ffeb505cce2f10682a0b9f972f24f0b8ff75
BLAKE2b-256 checksum
How to use checksums
00eb9331f8fd9bb3bafffb6a04b6a6607a3f7a587a9ba4ace89146294cedc6da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

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