Skip to content

Commit fb7affa

Browse files
committed
New Version Release v0.1.17
RFC 7807 standard support for consistent error responses (application/problem+json) OpenAPI (Swagger) schema consistency: nullable fields are now explicitly shown for better compatibility Poetry support has been added for dependency management uv support has been added. extra logger message param has been added to APIException for more detailed logging log_traceback and log_traceback_unhandled_exception parameters have been added to register_exception_handlers() for more control over logging behavior log_exception parameter has been added to APIException for more control over logging behavior log_message parameter has been added to APIException for more control over logging behavior Logging now uses add_file_handler() to write logs to a file Logging improvements: now includes exception arguments in logs for better debugging Documentation has been updated. Readme.md has been updated.
1 parent 9966a54 commit fb7affa

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
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)
13-
1414
**APIException** is a robust, production-ready Python library for FastAPI that simplifies exception handling and ensures consistent, well-structured API responses. Designed for developers who want to eliminate boilerplate error handling and improve Swagger/OpenAPI documentation, APIException makes your FastAPI projects cleaner and easier to maintain.
1515

1616
- 🔒 Consistent JSON responses for **both** success and errors.

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "apiexception"
3-
version = "0.1.17"
3+
version = "0.1.17.post1"
44
description = "Consistent JSON response formatting and error handling for FastAPI applications"
55
authors = [{ name = "Ahmet Kutay URAL", email = "ahmetkutayural@gmail.com" }]
66
requires-python = ">=3.10"
@@ -34,6 +34,11 @@ dependencies = [
3434
"click>=8.0.0",
3535
]
3636

37+
[project.urls]
38+
Documentation = "https://akutayural.github.io/APIException/"
39+
Source = "https://github.com/akutayural/APIException"
40+
PyPI = "https://pypi.org/project/apiexception/"
41+
3742
[project.optional-dependencies]
3843
dev = [
3944
"mkdocs-awesome-pages-plugin>=2.10.1",
@@ -43,11 +48,6 @@ dev = [
4348
"setuptools>=80.9.0",
4449
]
4550

46-
[project.urls]
47-
Documentation = "https://akutayural.github.io/APIException/"
48-
Source = "https://github.com/akutayural/APIException"
49-
PyPI = "https://pypi.org/project/APIException/"
50-
5151
[project.scripts]
5252
APIException-info = "api_exception.__main__:main"
5353

0 commit comments

Comments
 (0)