Skip to main content

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.

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.

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

wuqut-0.3.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

wuqut-0.3.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

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

Hashes for wuqut-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a11c39b6dd8ecb87c2b836106aa3a86561899ee373defad676fd1c16e50b170d
MD5 063f8f7ddc5b7767f92c918e2c99ae7e
BLAKE2b-256 10c438b99d112120d4df1d6343716f51e0c44ccc4f1b613119576053cd2ea68f

See more details on using hashes here.

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

Hashes for wuqut-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d75daf3c94b0f53d655f2465284ffeb505cce2f10682a0b9f972f24f0b8ff75
MD5 9dcbca2973ff69a9a7632d68b1854acf
BLAKE2b-256 00eb9331f8fd9bb3bafffb6a04b6a6607a3f7a587a9ba4ace89146294cedc6da

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