-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): restructure authentication and user management for imp…
…roved modularity and maintainability - Move authentication logic to separate modules for better separation of concerns - Introduce new classes for handling different authentication types - Update exception handling to use a base exception class for consistency - Enhance class filtering logic with detailed docstrings and improved validation - Remove redundant code and streamline session management in API client These changes aim to improve the codebase's modularity, maintainability, and readability by organizing authentication and user management into distinct components. This refactor also enhances error handling and documentation, making the code easier to understand and extend.
- Loading branch information
1 parent
0baa797
commit f0a1fd5
Showing
11 changed files
with
742 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from otf_api import logging # noqa # type: ignore | ||
|
||
from .api import Otf | ||
from .auth import OtfUser | ||
from otf_api.api import Otf | ||
from otf_api import models | ||
from otf_api.auth import OtfUser, OtfAuth, OtfAuthConfig | ||
|
||
__version__ = "0.9.0" | ||
|
||
|
||
__all__ = ["Otf", "OtfUser"] | ||
__all__ = ["Otf", "OtfAuth", "OtfAuthConfig", "OtfUser", "models"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.