Models and custom classes to work across the Chattyverse
Project description
#PUSH
poetry version patch; poetry build; poetry publish
Chatty Analytics
Models and custom classes to work across the Chattyverse.
Lastest update: 2024-11-07
Development instrucions
- Install poetry https://python-poetry.org/docs/
- Run
poetry install - Install with pymongo: poetry install -E db to include pymongo dependencies
Architecture
Models
- Data containers with Pydantic validation
- No business logic
- Little to no functionality (for that, see Services)
- Used for:
- Request/response validation
- Database document mapping
- Cross-service data transfer
- Example:
Messagemodel
Services
- Contain all business logic
- Work with models
- Stateless
- Handle:
- Object creation (factories)
- Model specific functionality
- Example:
MessageFactory- Create a
Messagefrom webhook data - Create a
Messagefrom an agent request to send it to a chat - Instantiate a
Messagefrom data base information - Create a
Messagefrom a Chatty Response
- Create a
Implementation Status
✅ Implemented
Models
- Base message models
- DBMessage: Database message model
- MessageRequest: It models the intent of a message to be sent to a chat, still not instantiated as ChattyMessage.
- BaseMessage (abstract)
- Subtypes: AudioMessage, DocumentMessage, ImageMessage, TextMessage, VideoMessage, etc.
- MetaNotificationJson: Models any notification from WhatsApp to the webhook
- MetaMessageJson: Models the speicifc Notification with a messages object
- MetaStatusJson: Models the specific Notification with a statuses object
- MetaErrorJson: Models the specific Notification with an errors object
- ChattyResponse: Models a list of pre-set responses in Chatty, that will be instantiated as a ChattyMessage when sent to a chat.
- Auth0 company registrarion form model
- Event models
- Metrics models
Services
MessageFactory- Create a
Messagefrom webhook data - Create a
Messagefrom an agent request to send it to a chat - Instantiate a
Messagefrom data base information - Create a
Messagefrom a Chatty Response
- Create a
🚧 In Progress
- Chat and its modules and services
- Service layer completion
- Company Assets
Chatty Analytics is a proprietary tool developed by Axel Gualda and the Chatty Team. This software is for internal use only and is not licensed for distribution or use outside of authorized contexts.
Copyright (c) 2024 Axel Gualda. All Rights Reserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file letschatty-0.4.310.post33.tar.gz.
File metadata
- Download URL: letschatty-0.4.310.post33.tar.gz
- Upload date:
- Size: 389.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.12 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d764ffe988c8e25fdcda028a45ad12209ff176b53fba0015842cd130c61dadb
|
|
| MD5 |
b308878f7dc946e19b17fa7e6128e0cb
|
|
| BLAKE2b-256 |
a1d56ce6d7f5312b08fac730f067434efa8142af0215fa3d44a1d66d64ea91a2
|
File details
Details for the file letschatty-0.4.310.post33-py3-none-any.whl.
File metadata
- Download URL: letschatty-0.4.310.post33-py3-none-any.whl
- Upload date:
- Size: 526.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.12 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bdcd085826ca508f391409247b254019b1011753ca443945ae74a948e364dea
|
|
| MD5 |
7ad7d8818e80f58a67f9bed3e2fe9846
|
|
| BLAKE2b-256 |
9e74c496232f81538e47dcf0ce0f14afbdb3fbc85a1765808f2ef888d6eca354
|