semvec/pypi-packages huggingface dataset:
athantime 1.0.0
Calculate and Generate Athan and Salah Times
Requires Python: >=3.10

# Zero external dependency Athan calculator
A simple Athan calculator with no external dependencies. Calculates prayer times using latitude, longitude, and elevation.

### Installation
```
pip install athantime
```

### Usage
Run it as a CLI tool, `see, getathan --help `, example:

```
getathan -e 100 -l 30 -L -100
```



Use it in a script:
```python
from athantimes import Athan, print_prayer_times

# create Athan object based on user params
prayer = Athan(
    elev=100,  # Elevation
    lat=30,  # Latitude
    lon=-100  # Longitude
    # asr_method=1,  # jumhoor = 1. hanafi = 2
    # fajr_angle=15,
    # isha_angle=15,
)

# calculate athan times
m_times = prayer.calc_times()

# print prayer table
print_prayer_times(m_times)

# figure out next salah time
athan_time, next_salah = prayer.get_next_salah(m_times)
print(f"Next Athan ({next_salah}) will be called @ {athan_time}")
```

Output:
```
Fajr: 4:22:55.791533
Shuruq: 5:27:00.491693
Dhur: 11:31:53.542215
Asr: 14:58:52.500350
Maghrib: 17:36:46.592737
Isha: 18:40:51.292898

Next Athan (fajr) will be called @ 2024-09-24 04:23:30
```

- See `examples` directory for additional usage. 
- `sched_athan.py` is an example running the library as a background process which execute a command 
every time an Athan is called. This is useful if you want to play an audio file.

#### Example Athan Schedule
Assuming there is a shell script which plays audios, a user can play all 5 Athans using this command
```
python3 examples/sched_athan.py -e 100 -l 30 -L -100

where -e is elevation, -l is longitude, and -L is longitude
```
This will execute a shell script @ `/home/pi/sounds/many.sh` whenever it is time for athan.
image-processing-nai 0.0.1
Image Processing Package using Skimage
Requires Python: >=3.5

# image-processing

## DescriÃ§Ã£o

O pacote `image-processing` fornece funcionalidades para processamento bÃ¡sico de imagens, incluindo comparaÃ§Ã£o de
similaridade, redimensionamento de imagens, ajuste de histogramas e plotagem de imagens e histogramas.

## Funcionalidades

### MÃ³dulo `processing`

- **`combination.py`**:
    - `find_difference(image1, image2)`: Encontra a diferenÃ§a estrutural entre duas imagens.
    - `transfer_histogram(image1, image2)`: Transfere o histograma de uma imagem para outra.

- **`transformation.py`**:
    - `resize_image(image, proportion)`: Redimensiona uma imagem para uma determinada proporÃ§Ã£o.

### MÃ³dulo `utils`

- **`io.py`**:
    - `read_image(path, is_gray)`: LÃª uma imagem a partir de um caminho.
    - `save_image(image, path)`: Salva uma imagem para um caminho especÃ­fico.

- **`plot.py`**:
    - `plot_image(image)`: Plota uma Ãºnica imagem.
    - `plot_result(*args)`: Plota vÃ¡rias imagens lado a lado.
    - `plot_histogram(image)`: Plota o histograma de uma imagem RGB.

## InstalaÃ§Ã£o

1. Clone o repositÃ³rio para a sua mÃ¡quina local:
    ```bash
    git clone https://github.com/Nai-nailinha/package-template.git
    ```

2. Navegue para o diretÃ³rio do pacote:
    ```bash
    cd image-processing
    ```

3. Instale o pacote:
    ```bash
    pip install .
    ```

## Autor

Enaile Lopes