Skip to main content

Moroccan Prayer Times CLI

PyPI - Version PyPI - Python Version GitHub License

A command-line interface (CLI) application to fetch and display Moroccan prayer times for the current day or the next prayer time remaining, using data provided by the official Moroccan Ministry of Habous and Islamic Affairs website.

Features

  • Display today's prayer times for a selected Moroccan city
  • Show the time remaining until the next prayer
  • Configure the preferred city and language
  • Caching the fetched prayer times for better performance
  • Localization support for Arabic, English, and French languages

Installation

You can install the package using either pipx or pip.

Note: It is highly recommended to install this package using pipx. It provides an isolated environment for installing and managing command-line tools. It also simplifies running CLIs without activating a virtual environment.
Check out this page to compare pip and pipx.

Using pipx

pipx install moroccan-prayer-times

Using pip

pip install moroccan-prayer-times

Usage

After the installation, you can run the CLI application with the following command:

prayertime help

This will display the list of available commands and their descriptions.

Commands

  • prayertime next: Show the remaining time until the next prayer.
  • prayertime today: Display today's prayer times for the configured city.
  • prayertime config: Display the current configuration (city and language).
  • prayertime setup: Configure the preferred city and language.
  • prayertime help: Show the help message.

Note: the default command is next.

Configuration

The first time you run the application, it will prompt you to select a city (english is the default language). These settings will be saved for future use.

You can change the city or the language anytime using the setup command.

NOTE: If you choose to use the Arabic language option with this package, make sure to check the following:

  1. Terminal Encoding: Ensure that your terminal is configured to use UTF-8 or another encoding that supports Arabic characters. In some terminals or IDEs (like PyCharm), you may need to set the encoding explicitly.

  2. Font Support: Verify that your system has fonts installed that support the display of Arabic characters. Without proper font support, Arabic text may not render correctly.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License.

Contact

If you have any questions or suggestions, feel free to contact me at ismailben44@gmail.com.

Metadata

Release files for moroccan-prayer-times 1.2.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 moroccan-prayer-times 1.2.0
File Size Uploaded
moroccan_prayer_times-1.2.0.tar.gz 15.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moroccan-prayer-times 1.2.0
File Interpreter ABI Platform
moroccan_prayer_times-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.1 kB

Release files / moroccan_prayer_times-1.2.0.tar.gz

Download URL moroccan_prayer_times-1.2.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b62e67d0cb1a75f0683d9dc86e8ccfefa070461faeea00d47b90dfb292f0685d
BLAKE2b-256 checksum
How to use checksums
e070c8f88d58f0402e9765d0819df23cd27dcf5fa715178e6880c00883ca9b26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Release files / moroccan_prayer_times-1.2.0-py3-none-any.whl

Download URL moroccan_prayer_times-1.2.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd0f81b08efcf012ee306e2887f353a4ed68b4c837e858c49cd461d7aa59cced
BLAKE2b-256 checksum
How to use checksums
11ee8277aca51efcf77ab41d28428491619da114f544ca87988a4098e755b056
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

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