Moroccan Prayer Times CLI
Project description
Moroccan Prayer Times CLI
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:
prayer-times help
This will display the list of available commands and their descriptions.
Commands
prayer-times today
: Display today's prayer times for the configured city.prayer-times next
: Show the time remaining until the next prayer.prayer-times config
: Display the current configuration (city and language).prayer-times setup
: Configure the preferred city and language.prayer-times 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.
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:
- Typer for building the CLI
- Requests for making HTTP requests
- Beautiful Soup for parsing HTML
- PyInquirer for interactive command-line user prompts
- Rich for styled console output
- BeautifulTable for rendering tables in the console
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file moroccan_prayer_times-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: moroccan_prayer_times-0.0.10-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9db05e4afc8d90643ce822b1abb50e6feec007fcfa411d63eed43a0fba923c1c |
|
MD5 | 6a4b538f053143ff955af733507ff9cd |
|
BLAKE2b-256 | 463a8bb818e8080964208b05ce96b0a931f312a12c61e5283a9fc61e51ef61b2 |