semvec/pypi-packages huggingface dataset:
enviparse 2.0.1
enviparse help you manage your application properties using environment variabl
Requires Python: >=3.9

# Enviparse

![CI](https://github.com/illuin-tech/enviparse/workflows/CI/badge.svg)
[![codecov](https://codecov.io/gh/illuin-tech/enviparse/branch/main/graph/badge.svg)](https://codecov.io/gh/illuin-tech/enviparse)


## Description

Enviparse let you simply create dataclasses from environment variable.

Supported types are : 
* int
* float
* str
* bool
* optional
* list
* enum (with int or string values only)
* `@attr` annotated class
* `@dataclasses.dataclass` annotated class

# Example

With following environment variables :
```bash
DATABASE_CONFIG_USERNAME=postgres
DATABASE_CONFIG_PASSWORD=password
DATABASE_CONFIG_HOST=127.0.0.1
DATABASE_CONFIG_PORT=5432
DATABASE_CONFIG_DATABASE_NAME=appdb
```

You can parse environment variable with :

```python
import dataclasses
from enviparse import Enviparse


@dataclasses.dataclass
class DatabaseConfig:
    username: str
    password: str
    host: str
    port: int
    database_name: str


db_config = Enviparse().parse("DATABASE_CONFIG", DatabaseConfig)
print(db_config)
```

You should get the following result :
```
DatabaseConfig(username='postgres', password='password', host='127.0.0.1', port=5432, database_name='appdb')
```

For more example see the [test folder](./tests).
kwhmeter-utils 0.1.5
Simulador de facturas PVPC
Requires Python: >=3.6

# kwhmeter_utils

IMPORTANTE: Este software no etá vinculado con ninguna compañia electrica. Es un proyecto personal que se pone a disposición de todo el que quiera utilizarlo bajo su propia responsanbilidad.

Varias utilidades:

* Simula la factura PVPC partiendo de los datos de consumo descargados de las web de las correspondiente distribuidaoras usando el paquete kwhmeter

## Uso

ver el directorio jupyter con ejemplos de uso

Tambien se incluye un comando:

> kwhmeter_pvpc --help
> Usage: kwhmeter_pvpc [OPTIONS] SUMINISTRO> 

> Options:
>   --lista-facturas                Muestra los periodos de facturación
>                                   disponibles  [default: False]> 

>   --n INTEGER                     Consumos para las facturas especificadas por
>                                   indice. Se puede usar tantas veces como
>                                   facturas se quieran recuperar  [default:
>                                   False]> 

>   --m INTEGER                     Consumos para las ultimas m facturas
>                                   [default: False]> 

>   --factura TEXT                  Consumos para las facturas especificadas. Se
>                                   puede usar tantas veces como facturas se
>                                   quieran recuperar  [default: False]> 

>   --fecha-ini [%Y-%m-%d]          Fecha inicio consumos por fecha
>   --fecha-fin [%Y-%m-%d]          Fecha fin consumos por fecha
>   --format [screen|json|pdf|html]
>                                   Formato de salida  [default: screen]
>   --help                          Show this message and exit.
python-opencv-toasty-animation 0.0.1
Toasty animation to play in top of OpenCV VideoCapture
Requires Python: >=3.10

# python_opencv_toasty_animation

## Requirements

opencv-contrib-python 4.10.0.82
playsound 1.3.0

## Usage

Add these lines before the main loop to instantiate animation

    animation = Animation(image_path='toasty.png', sound_path='toasty.mp3')

Then before the `cv2.imshow('Video', frame)` execution add these

    animation.update_animation_state()
    frame = animation.apply_animation(frame)

The animation now is ready to be played, now you need to choice an event to fire the start.
Anywhere in the main loop add this line

    animation.start()

Optionally you can pass the `prevent_repetition=True` argument if the animation play too many times in the loop to control the repetition. By default it doesn't play until 300 seconds passed. You can change it passing `repetition_delay=300` in the arguments during the instantiation of the animation.