Metadata-Version: 2.4
Name: middleware-sendmessage-holos
Version: 0.1.0
Summary: Middleware FastAPI para webhooks de Kommo
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: aiofiles==24.1.0
Requires-Dist: aiohappyeyeballs==2.6.1
Requires-Dist: aiohttp==3.12.13
Requires-Dist: aiosignal==1.4.0
Requires-Dist: annotated-types==0.7.0
Requires-Dist: anyio==4.9.0
Requires-Dist: attrs==25.3.0
Requires-Dist: certifi==2025.7.9
Requires-Dist: charset-normalizer==3.4.2
Requires-Dist: click==8.2.1
Requires-Dist: colorama==0.4.6
Requires-Dist: distro==1.9.0
Requires-Dist: et_xmlfile==2.0.0
Requires-Dist: fastapi==0.116.0
Requires-Dist: frozenlist==1.7.0
Requires-Dist: h11==0.16.0
Requires-Dist: httpcore==1.0.9
Requires-Dist: httpx==0.28.1
Requires-Dist: idna==3.10
Requires-Dist: jiter==0.10.0
Requires-Dist: multidict==6.6.3
Requires-Dist: numpy==2.2.6
Requires-Dist: openai==1.93.3
Requires-Dist: opencv-python==4.12.0.88
Requires-Dist: opencv-python-headless==4.12.0.88
Requires-Dist: openpyxl==3.1.5
Requires-Dist: packaging==25.0
Requires-Dist: pandas==2.3.1
Requires-Dist: pillow==11.3.0
Requires-Dist: propcache==0.3.2
Requires-Dist: pydantic==2.11.7
Requires-Dist: pydantic_core==2.33.2
Requires-Dist: pytesseract==0.3.13
Requires-Dist: python-dateutil==2.9.0.post0
Requires-Dist: python-dotenv==1.1.1
Requires-Dist: pytz==2025.2
Requires-Dist: requests==2.32.4
Requires-Dist: six==1.17.0
Requires-Dist: sniffio==1.3.1
Requires-Dist: starlette==0.46.2
Requires-Dist: tqdm==4.67.1
Requires-Dist: typing-inspection==0.4.1
Requires-Dist: typing_extensions==4.14.1
Requires-Dist: tzdata==2025.2
Requires-Dist: urllib3==2.5.0
Requires-Dist: uvicorn==0.35.0
Requires-Dist: xlrd==2.0.2
Requires-Dist: yarl==1.20.1
Requires-Dist: python-multipart==0.0.6

# middleware-sendmessage-holos

Middleware FastAPI para recibir webhooks de Kommo, procesar mensajes y actualizar leads.

## Instalacion rapida

```bash
pip install git+https://github.com/<tu-org>/middleware_panama.git
```

Si trabajas dentro del repo:

```bash
pip install -e .
```

## Uso

El paquete expone el comando:

```bash
middleware-sendmessage-holos
```

Eso levanta el servidor en `0.0.0.0` y usa `PORT` si esta definida, o `8080` por defecto.

Tambien puedes ejecutar el modulo directamente:

```bash
python -m app
```

## Variables de entorno

- `TOKEN_KOMMO`
- `SUBDOMAIN_KOMMO`
- `OPENAI_API_KEY`
- `PORT` opcional

## Nota

`requirements.txt` sigue siendo la fuente de dependencias del proyecto. El paquete pip las instala automaticamente al usar `pip install .` o `pip install -e .`.

## Publicacion en PyPI (publico)

El paquete esta preparado para publicarse cuando hagas push de un tag que empiece con `v`, por ejemplo:

```bash
git tag v0.1.1
git push origin v0.1.1
```

El workflow de GitHub Actions construye el paquete y lo publica en PyPI publico.

Antes de ejecutar el workflow, crea este secret en el repositorio:

- `PYPI_API_TOKEN`: token de PyPI (formato `pypi-...`) con permiso para publicar

Puedes generarlo en PyPI desde Account settings > API tokens.

## Instalacion desde PyPI

Cuando una version este publicada, el equipo instala asi:

```bash
pip install middleware-sendmessage-holos
```
