Skip to main content

Middleware FastAPI para webhooks de Kommo

Project description

middleware-sendmessage-holos

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

Instalacion rapida

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

Si trabajas dentro del repo:

pip install -e .

Uso

El paquete expone el comando:

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:

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:

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:

pip install middleware-sendmessage-holos

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

middleware_sendmessage_holos-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

middleware_sendmessage_holos-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file middleware_sendmessage_holos-0.1.0.tar.gz.

File metadata

File hashes

Hashes for middleware_sendmessage_holos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fc1ec9301883eb60b1ea16f368e1ad74fdf426700209a44087d5d76298879983
MD5 6d8c2fd73af7ce0b5999a8c9de754e91
BLAKE2b-256 4eeb6f3fd58f36f98b20c7fcebe0784d993328e42ffa69c4400e70098aff61d9

See more details on using hashes here.

File details

Details for the file middleware_sendmessage_holos-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for middleware_sendmessage_holos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f20508d341d1912c871c057de48ef45ef181b87fe4c5ab4cd03e02fe8e215dda
MD5 38170dceef7cad9aaffe7778ae1db843
BLAKE2b-256 4e30cf128fe6eb768a74e280caca8f0d6a1d2547ed05bae0e876d0db92553598

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page