Outils Python pour projets robustes : validation, journalisation, mailing, image, etc.
Project description
🛠️ dreamtools
Outils Python pour projets professionnels
Validation, manipulation de chaînes, traitement d’images, journalisation, gestion d’erreurs, envoi d’e-mails, etc.
Ce module propose une collection de fonctions utilitaires conçues pour accélérer le développement d'applications robustes, fiables et facilement maintenables, en particulier dans des environnements exigeants (sécurité, supervision, automatisation).
📦 Installation
pip install .
dreamtools-dreamgeeker-init
⚠️ À l'installation, des fichiers de configuration nécessaires au fonctionnement (log + mailing) seront copiés automatiquement dans le répertoire courant du projet (dans un sous-dossier .config/). Ces fichiers doivent impérativement être revus et adaptés avant toute utilisation des fonctionnalités de mail ou de journalisation avancée.
⚙️ Configuration requise
dreamtools repose sur deux fichiers principaux à adapter selon ton projet :
📝 Journalisation (.config/log.yml)
Fichier de configuration du logger Python. Nécessaire pour que TrackingManager fonctionne.
from dreamtools import file_manager
from dreamtools.controller_manager import ControllerEngine
from dreamtools.tracking_manager import TrackingManager
application_name = "mon_app"
application_directory = file_manager.execution_directory()
ControllerEngine.initialize(application_name, application_directory)
log_config_path = file_manager.path_build(ControllerEngine.APP_DIR, 'configuration/log.yml')
TrackingManager.initialisation(log_config_path, logger='development', project_name=application_name)
📬 Modèles d'e-mail (.config/mailing.yml)
Fichier YAML regroupant les templates d’e-mails transactionnels et le footer.
from dreamtools import file_manager
from dreamtools.controller_manager import ControllerEngine
from dreamtools.mailing_manager import MailController
class APPControllerEngine(ControllerEngine):
mailer:MailController
mail_template_path = file_manager.path_build(APPControllerEngine.APP_DIR, 'config/mailing.yml')
APPControllerEngine.mailer = MailController(
smtp_url='smtp.exemple.net',
smtp_port=587,
smtp_mail='bot@monapp.net',
smtp_password='motdepasse',
path_templates=mail_template_path,
SMTP_USER_NAME='Assistant numérique'
)
Les modèles peuvent être dupliqués, personnalisés ou déplacés : il suffira de renseigner le bon chemin dans path_templates.
📁 Structure
dreamtools-dreamgeeker/
├── .config/ # Fichiers de configuration par défaut (copiés dans le projet)
│ ├── mailing.yml # Templates d'e-mail personnalisables
│ └── log.yml # Configuration du logger
├── __init__.py
├── config_manager
├── controller_manager
├── crypting_manager
├── date_manager
├── exception_manager # Exceptions métiers avec suivi
├── file_manager
├── image_manager # Traitement d’images (Pillow)
├── mailing_manager
├── toolbox # Fonctions utilitaires diverses
├── tracking_manager
├── validators_manager # Validation (emails, URL, etc.)
🪪 Licence
MIT License / Licence MIT
Copyright (c) 2025 Couleur West IT
La licence MIT vous autorise à utiliser, copier, modifier, fusionner, publier, distribuer, sous-licencier et/ou vendre des copies du logiciel, sous réserve d’inclure la notice de droit d’auteur et la permission dans toutes les copies ou parties substantielles.
The MIT License permits use, copy, modification, merge, publication, distribution, sublicensing, and/or selling copies of the software, provided the copyright notice and permission are included in all copies or substantial portions.
Le logiciel est fourni "TEL QUEL", sans garantie d’aucune sorte. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
✨ Auteur
Développé par Couleur West IT.
Outils pensés pour les environnements complexes : sécurité, validation, traitement léger et fiable.
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 dreamtools_dreamgeeker-2025.2.5.10.tar.gz.
File metadata
- Download URL: dreamtools_dreamgeeker-2025.2.5.10.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a9f34426b7d6eb7f6bf6238109c1b12120a00afc8141dac34341aac406cfd1
|
|
| MD5 |
d2cf5db12f27850e9038313b1af41b27
|
|
| BLAKE2b-256 |
61c264c4cc2afc7153c40552a99b2dfe489d5be8ba80d7be473d05376d3c7e71
|
File details
Details for the file dreamtools_dreamgeeker-2025.2.5.10-py3-none-any.whl.
File metadata
- Download URL: dreamtools_dreamgeeker-2025.2.5.10-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64dd066f6a64b431313debfdf85ce6877be0648da89b776b5428ec7f17757d0a
|
|
| MD5 |
c4e99d0c31437d88b243aaba7076acb8
|
|
| BLAKE2b-256 |
3ec0f8003c01306dbb830df20e302ad2ba0e49ec0f304234232e6b2a4e070d72
|