-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add http client - update example - add aenter, aexit for auto close client
- Loading branch information
Showing
25 changed files
with
475 additions
and
232 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 |
---|---|---|
|
@@ -4,4 +4,5 @@ build | |
enkanetwork.py.egg-info | ||
dist | ||
test/*.test.py | ||
.pytest_cache | ||
.pytest_cache | ||
.idea |
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 .client import * # noqa: F403 | ||
from .exception import * # noqa: F403 | ||
from .model import * # noqa: F403 | ||
from .utils import * # noqa: F403 | ||
from .info import * # noqa: F403 | ||
from .cache import * # noqa: F403 | ||
from .client import * | ||
from .exception import * | ||
from .model import * | ||
from .utils import * | ||
from .info import * | ||
from .cache import * | ||
from .enum import * | ||
|
||
__VERSION__ = VERSION # noqa: F405 | ||
__AUTHOR__ = AUTHOR # noqa: F405 | ||
__VERSION__ = VERSION | ||
__AUTHOR__ = AUTHOR |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
from cachetools import TTLCache | ||
|
||
__all__ = ('Cache',) | ||
|
||
class Cache: | ||
def __init__(self, maxsize, ttl): | ||
|
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,6 +1,19 @@ | ||
class VaildateUIDError(Exception): | ||
""" Raised when the UID is not valid. """ | ||
pass | ||
|
||
|
||
class UIDNotFounded(Exception): | ||
""" Raised when the UID is not found. """ | ||
pass | ||
|
||
class HTTPException(Exception): | ||
""" Exception that's raised when an HTTP request operation fails. """ | ||
pass | ||
|
||
class Forbidden(HTTPException): | ||
""" Exception that's raised for when status code 403 occurs.""" | ||
pass | ||
|
||
class EnkaServerError(HTTPException): | ||
""" Exception that's raised for when status code 500 occurs.""" | ||
pass |
Oops, something went wrong.