Skip to main content

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
├── cli.py                  # Entrée en ligne de commande
├── validators.py           # Validation (emails, URL, etc.)
├── images.py               # Traitement d’images (Pillow)
├── exceptions.py           # Exceptions métiers avec suivi
├── toolbox.py              # Fonctions utilitaires diverses
└── logging_conf.yaml       # Fichier de secours (logger minimal)

🪪 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dreamtools_dreamgeeker-2025.2.1.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

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

dreamtools_dreamgeeker-2025.2.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file dreamtools_dreamgeeker-2025.2.1.tar.gz.

File metadata

File hashes

Hashes for dreamtools_dreamgeeker-2025.2.1.tar.gz
Algorithm Hash digest
SHA256 5f24b65c53da9208455f235c97de21447c979b26ad7ab1496c91610b33a95892
MD5 42e5b691e57f3ebe5f265f37c757a50e
BLAKE2b-256 2447f97061654ccad9d4f8007cc015aae4c47794c3f30efd7bb946738399beaa

See more details on using hashes here.

File details

Details for the file dreamtools_dreamgeeker-2025.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dreamtools_dreamgeeker-2025.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d479f5e18d289be8443fcf3b139c3a82bcaeea7c2722d773246c7169af805f52
MD5 98834c61a1658bb553e6558dcdce0211
BLAKE2b-256 5c8322f35650fb6264b22d71c86d3b604055128f99d780f76e7ddfee42d96f53

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