Skip to main content

A CLI tool to get prayer times

Project description

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

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. 
 --day          -d        INTEGER RANGE [1<=x<=31]     Day (1-31) [default: (Current day)]            
 --month        -m        INTEGER RANGE [1<=x<=12]     Month [default: (Current month)]                       
 --year         -y        INTEGER                      Year [default: (Current year)]                          
 --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]            
 --next         -n                                     Show next prayer, has no effect if day, month, or year are given. [default: True]         
 --force        -f                                     Force update cache.       
 --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]            
 --force        -f                                     Force update cache.       
 --help                                                Configure default settings

Configuration

Default settings like location, calculation method, and output format can be configured in ~/.myprayer/config.json using myprayer config.

Credits

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

myprayer-2.0.3.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

myprayer-2.0.3-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file myprayer-2.0.3.tar.gz.

File metadata

  • Download URL: myprayer-2.0.3.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.10-arch1-1

File hashes

Hashes for myprayer-2.0.3.tar.gz
Algorithm Hash digest
SHA256 06f5f5369ce04af651c202a98ae1d39adaeb6862e003b8a2ea5460cea0eb7431
MD5 407613760d8c14bcfeaf41b5dd423a4a
BLAKE2b-256 b68a073c7c1ed2502c16c708fa95bf09f83ef2ff9b59b87f537f4464cf9ff1c9

See more details on using hashes here.

File details

Details for the file myprayer-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: myprayer-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.6.10-arch1-1

File hashes

Hashes for myprayer-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2cee1cea0b7f25a0f3a5d3ac39abf871c11fd863a381917117e6a3cd1ea9cbdc
MD5 41ac0baefd004918f89bfd62740e6bc6
BLAKE2b-256 85e6e31403cebe95ce1e6616f2328fbcae8625610679cc5849259a2036fe940a

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