Skip to main content

mem_erreur

Package Python pour la gestion avancée des exceptions avec niveau de sévérité (_fatal) et enrichissement contextuel (code, target).

📦 Installation

pip install mem_erreur

🚀 Utilisation

from mem_erreur import BaseException, BaseErreur, Erreur

# Erreur critique par défaut
raise BaseException("Erreur critique", code=1001, target="service-x")

# Erreur non bloquante
raise Erreur("Erreur mineure", code=42, target={"field": "email"})

🔧 Comportement automatique

  • Toute exception non capturée ayant _fatal=False sera ignorée silencieusement.
  • Les autres propageront le comportement standard (stacktrace + arrêt).

🧪 Tests

pytest

📤 Publication PyPI

python -m build
twine upload dist/*

Release files for mem-erreur 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mem-erreur 0.1.1
File Size Uploaded
mem_erreur-0.1.1.tar.gz 1.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mem-erreur 0.1.1
File Interpreter ABI Platform
mem_erreur-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.5 kB

Release files / mem_erreur-0.1.1.tar.gz

Download URL mem_erreur-0.1.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
79fe72fef3e2207b64d1cdbdf6da7eb00629227f01303a4b9309821437c316e2
BLAKE2b-256 checksum
How to use checksums
94a7ca7dcb368810239be20e03a12e5399af10451449a8e4b305448658f7ddd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / mem_erreur-0.1.1-py3-none-any.whl

Download URL mem_erreur-0.1.1-py3-none-any.whl
Size 1.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cce6e17859c802b6a3779d1926d5cb1f0a9e146648ec736a1004a1bd6b3cc6db
BLAKE2b-256 checksum
How to use checksums
ef284e9b0c98b480d8c0c570bd4bc99eec8eacd2415627982aa2559c7cb7d6b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page