Skip to main content

Moroccan Prayer Times CLI

Project description

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.

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

moroccan_prayer_times-1.0.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

moroccan_prayer_times-1.0.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file moroccan_prayer_times-1.0.0.tar.gz.

File metadata

  • Download URL: moroccan_prayer_times-1.0.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for moroccan_prayer_times-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f46afbb269a3bf9130c7bc3811e6d20cca32faaf206738adf59899780d3e9f16
MD5 758846c0116d875f77d12e5955c5ff15
BLAKE2b-256 cc1238bec6e809f13c0086a9ffa8436f2468c8848358635d9775983334f39970

See more details on using hashes here.

File details

Details for the file moroccan_prayer_times-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for moroccan_prayer_times-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd8a843b0cb4f78291c6b0654e7235a1345b7ec06160dc61a13fb05dd3477e8
MD5 d3d399a9c9b1e11b49394c416c8b7fd6
BLAKE2b-256 cf5b203dc3aa65c98c0b6363ec4ab8392ef11e866dadac6b54d1c30990299540

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page