-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d444c4
commit 696e618
Showing
23 changed files
with
127 additions
and
130 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
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
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,8 +1,16 @@ | ||
# this is a placeholder and will be overwritten at build time | ||
try: | ||
from setuptools_scm import get_version | ||
__version__ = get_version(root="..", relative_to=__file__) | ||
except (ImportError, OSError): | ||
# ImportError: setuptools_scm isn't installed | ||
# OSError: git isn't installed | ||
__version__ = "0.0.0.dev0+placeholder" | ||
# file generated by setuptools_scm | ||
# don't change, don't track in version control | ||
TYPE_CHECKING = False | ||
if TYPE_CHECKING: | ||
from typing import Tuple, Union | ||
VERSION_TUPLE = Tuple[Union[int, str], ...] | ||
else: | ||
VERSION_TUPLE = object | ||
|
||
version: str | ||
__version__: str | ||
__version_tuple__: VERSION_TUPLE | ||
version_tuple: VERSION_TUPLE | ||
|
||
__version__ = version = '0.3.6.dev28+g0d444c4.d20240911' | ||
__version_tuple__ = version_tuple = (0, 3, 6, 'dev28', 'g0d444c4.d20240911') |
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
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
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,18 +1,18 @@ | ||
class AardvarkException(Exception): | ||
class AardvarkError(Exception): | ||
pass | ||
|
||
|
||
class AccessAdvisorException(AardvarkException): | ||
class AccessAdvisorError(AardvarkError): | ||
pass | ||
|
||
|
||
class CombineException(AardvarkException): | ||
class CombineError(AardvarkError): | ||
pass | ||
|
||
|
||
class DatabaseException(AardvarkException): | ||
class DatabaseError(AardvarkError): | ||
pass | ||
|
||
|
||
class RetrieverException(AardvarkException): | ||
class RetrieverError(AardvarkError): | ||
pass |
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
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,33 +1,37 @@ | ||
from typing import Any, Dict, List, Optional | ||
from __future__ import annotations | ||
|
||
from dynaconf import Dynaconf | ||
from typing import TYPE_CHECKING | ||
|
||
from aardvark.plugins import AardvarkPlugin | ||
|
||
if TYPE_CHECKING: | ||
from dynaconf import Dynaconf | ||
|
||
|
||
class PersistencePlugin(AardvarkPlugin): | ||
def __init__(self, alternative_config: Dynaconf = None): | ||
super().__init__(alternative_config=alternative_config) | ||
|
||
def init_db(self): | ||
raise NotImplementedError() | ||
raise NotImplementedError | ||
|
||
def teardown_db(self): | ||
raise NotImplementedError() | ||
raise NotImplementedError | ||
|
||
def get_role_data( | ||
self, | ||
*, | ||
page: int = 0, | ||
count: int = 0, | ||
combine: bool = False, | ||
phrase: str = "", | ||
arns: Optional[List[str]] = None, | ||
arns: list[str] | None = None, | ||
regex: str = "", | ||
) -> Dict[str, Any]: | ||
raise NotImplementedError() | ||
) -> dict[str, any]: | ||
raise NotImplementedError | ||
|
||
def store_role_data(self, access_advisor_data: Dict[str, Any]) -> None: | ||
raise NotImplementedError() | ||
def store_role_data(self, access_advisor_data: dict[str, any]) -> None: | ||
raise NotImplementedError | ||
|
||
def _combine_results(self, access_advisor_data: Dict[str, Any]) -> Dict[str, Any]: | ||
raise NotImplementedError() | ||
def _combine_results(self, access_advisor_data: dict[str, any]) -> dict[str, any]: | ||
raise NotImplementedError |
Oops, something went wrong.