44<p align =" center " ><b ><i >Standardising FastAPI responses with clarity, consistency, and control.</i ></b ></p >
55
66# APIException: Standardised Exception Handling for FastAPI
7- [ ![ PyPI version] ( https://img.shields.io/pypi/v/APIException?cacheSeconds=60 )] ( https://pypi.org/project/APIException/ )
7+
8+ [ ![ PyPI version] ( https://img.shields.io/pypi/v/apiexception?cacheSeconds=300 )] ( https://pypi.org/project/apiexception/ )
89[ ![ Documentation] ( https://img.shields.io/badge/docs-latest-brightgreen.svg )] ( https://akutayural.github.io/APIException/ )
9- [ ![ Downloads] ( https://pepy.tech/badge/APIException )] ( https://pepy.tech/project/APIException )
10- [ ![ Python Versions] ( https://img.shields.io/pypi/pyversions/APIException .svg )] ( https://pypi.org/project/APIException / )
10+ [ ![ Downloads] ( https://pepy.tech/badge/apiexception )] ( https://pepy.tech/project/apiexception )
11+ [ ![ Python Versions] ( https://img.shields.io/pypi/pyversions/apiexception .svg )] ( https://pypi.org/project/apiexception / )
1112[ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://opensource.org/licenses/MIT )
1213[ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
1314
@@ -253,7 +254,7 @@ Always extend BaseExceptionCode — don’t subclass ExceptionCode directly!
253254from api_exception import BaseExceptionCode
254255
255256class CustomExceptionCode (BaseExceptionCode ):
256- USER_NOT_FOUND = (" USR -404" , " User not found." , " User does not exist." )
257+ USER_NOT_FOUND = (" -404" , " User not found." , " User does not exist." )
257258 INVALID_API_KEY = (" API-401" , " Invalid API key." , " Key missing or invalid." )
258259```
259260
@@ -319,8 +320,6 @@ logger.setLevel("DEBUG") # Set logging level
319320
320321---
321322
322-
323-
324323## Examples
325324
326325### All in One Example Application
@@ -341,8 +340,6 @@ This example serves as a **one-stop reference** to see how `api_exception` can b
341340[ ** Click to see the example** ] ( https://github.com/akutayural/APIException/blob/main/examples/production_level.py )
342341
343342
344-
345-
346343---
347344## ✅ Testing Example
348345
@@ -409,6 +406,7 @@ This can be used as a foundation. Can be extended to include more detailed tests
409406Benchmark scripts and raw Locust reports are available in the [ benchmark] ( https://github.com/akutayural/APIException/tree/main/benchmark ) directory.
410407
411408
409+ ---
412410
413411## 📜 Changelog
414412
0 commit comments