Skip to main content

Moroccan Prayer Times CLI

Project description

Moroccan Prayer Times CLI

PyPI - Python Version PyPI - 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 (https://habous.gov.ma/).

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 of fetched prayer times for better performance
  • Localization support for Arabic, English, and French languages

Installation

You can install the package from PyPI using pip:

pip install moroccan-prayer-times

Usage

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

prayertime help

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

Commands

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

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.

Acknowledgments

This application utilizes the following third-party libraries:

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-0.0.15.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

moroccan_prayer_times-0.0.15-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for moroccan_prayer_times-0.0.15.tar.gz
Algorithm Hash digest
SHA256 364a216a5bc573ee1693f2f468fc85d866e54c9674577800d5640d974b751f69
MD5 d8432261f0a97cc3b0e0bdeba135b463
BLAKE2b-256 e00115f4cea8f7f23e359e308fcaed181898def1f885c6af552a2a734e220d5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moroccan_prayer_times-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 5466c983683f958e9ce03ccbd18a316e0cef8321258dc42dd6ee7d38afc5f494
MD5 019d70f8261b8c3710a2db499e313456
BLAKE2b-256 627f087dc719eaaf541071f5a4be5881fd6ae9ead572095cd794674463e372b5

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