#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.
Metadata
Release files for letschatty 0.4.508
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| letschatty-0.4.508.tar.gz | 478.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| letschatty-0.4.508-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / letschatty-0.4.508.tar.gz
| Download URL | letschatty-0.4.508.tar.gz |
|---|---|
| Size | 478.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12e926b1b69d9f40dfa57cc404de73738558eba38ce8c5a907f84c794e0d355d
|
|
BLAKE2b-256 checksum How to use checksums |
57ced740c1f96f5f98e75bf7a54595ece48d7d4eaea72427147789cf0e261b2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Darwin/23.5.0
|
Release files / letschatty-0.4.508-py3-none-any.whl
| Download URL | letschatty-0.4.508-py3-none-any.whl |
|---|---|
| Size | 650.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd217b95942a224c1149640f481c227113abb56f0cd23f9ac405828267741ff4
|
|
BLAKE2b-256 checksum How to use checksums |
a023d2559e38fc203c89468f839067f7561afa2360292b200c5426d79c1c4aa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Darwin/23.5.0
|