MyPrayer
MyPrayer is a command line application for getting Islamic prayer times for a given location and date.
Features
- Get prayer times for a specific date and location
- Show next upcoming prayer time
- Support from multiple calculation methods
- Output prayer times in different formats
- Save default location and settings
Dependencies
- Python 3.8+
- Typer - CLI app framework
- Inquirer.py - user prompts
- Rich - output formatting
- adhanpy - Prayer times calculation
- geopy - Geocoding library
- tzlocal - Local timezone
- pydantic - Data validation
- tzdata - Timezone data
Install
pip install myprayer
Usage
myprayer
Usage: myprayer [OPTIONS] COMMAND [ARGS]...
MyPrayer CLI.
Options
--install-completion [bash|zsh|fish|powershell|pwsh] Install completion for the specified shell.
[default: None]
--show-completion [bash|zsh|fish|powershell|pwsh] Show completion for the specified shell, to copy it or customize the installation.
[default: None]
--help Show this message and exit.
Commands
config Configure myprayer.
list List prayer times.
next Show next prayer.
myparyer list
Usage: myprayer list [OPTIONS]
List prayer times.
Options
--city -c TEXT City name.
--country -C TEXT Country name.
--address -a TEXT Address.
--latitude -lat FLOAT Latitude.
--longitude -lon FLOAT Longitude.
--date -d [%Y-%m-%d|%Y-%m-%dT%H:%M:%S Date (YYYY-MM-DD) ISO 8601
--method -M INTEGER Calculation method. [default: (Egyptian General Authority of Survey)]
--time-format -t [12|24] Time format. [default: 12]
--custom-time-format -T TEXT Custom time format.
--output -o [pretty|machine|table|json] Output type. [default: table]
--next -n Show next prayer, has no effect if day, month, or year are given. [default: True]
--help Show this message and exit.
myparyer next
Usage: myprayer next [OPTIONS]
Show next prayer.
Options
--city -c TEXT City name.
--country -C TEXT Country name.
--address -a TEXT Address.
--latitude -lat FLOAT Latitude.
--longitude -lon FLOAT Longitude.
--day -d INTEGER RANGE [1<=x<=31] Day (1-31) [default: (Current day)]
--method -M INTEGER Calculation method. [default: (Egyptian General Authority of Survey)]
--time-format -t [12|24] Time format. [default: 12]
--output -o [pretty|machine|table|json] Output type. [default: table]
--help Configure default settings
Configuration
Default settings like location, calculation method, and output format can be configured in $XDG_CONFIG_HOME/myprayer/config.json or $HOME/.config/myprayer/config.json using myprayer config.
Example configuration
{
"time_format": "12", // 12 or 24
"custom_time_format": "%I:%M", // Custom time format
"print_type": "table", // pretty, machine, table, json
"method": 5, // Calculation method
"show_next": true, // Highlight next prayer in list
"prayers": [ // Prayer to show
"Fajr",
"Dhuhr",
"Asr",
"Maghrib",
"Isha"
],
"location": { // Default location used if no location is provided in command
"latitude": 30,
"longitude": 31,
}
}
Credits
- adhanpy - Prayer times calculation
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for myprayer 3.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| myprayer-3.2.1.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| myprayer-3.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.4 kB
Release files / myprayer-3.2.1.tar.gz
| Download URL | myprayer-3.2.1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c874ef3b253723622d6ef6d70cb3e145291bb0aa4a62fe1df13e41370bbd1a86
|
|
BLAKE2b-256 checksum How to use checksums |
5b2be6b73e69f5735ff9e2600d8ab959405d38d5225719817ed6058fe98dc9ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.14.3 Linux/6.18.13-arch1-1
|
Release files / myprayer-3.2.1-py3-none-any.whl
| Download URL | myprayer-3.2.1-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b9188a9a1e933ceea80fc2d92101a77ac18bcd5e45ff49bc555ed8abc4ad5d7
|
|
BLAKE2b-256 checksum How to use checksums |
2536bb3497b89407c80d17b4a199fc8fddab51cf32195180e0cab0c1847acbf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.14.3 Linux/6.18.13-arch1-1
|