Skip to content

Commit f476a88

Browse files
committed
api
1 parent f4bacc3 commit f476a88

File tree

4 files changed

+12
-22
lines changed

4 files changed

+12
-22
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import nest_asyncio
22
from ._version import __version__ as __version__
3+
from ._exceptions import * # noqa: F403
4+
from .api import * # noqa: F403
35

46
nest_asyncio.apply() # allow to run coroutines via asyncio.run(coro)

clients/python/src/osparc/_api.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

clients/python/src/osparc/_exceptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# pylint: disable=unused-import
2+
13
from functools import wraps
24

35
from httpx import HTTPStatusError

clients/python/src/osparc/api.py

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
import warnings
2-
from typing import Final, Tuple
1+
# pylint: disable=unused-import
32

4-
from osparc_client.api import FilesApi, MetaApi, SolversApi, UsersApi
3+
from osparc_client.api.credits_api import CreditsApi as CreditsApi
4+
from osparc_client.api.meta_api import MetaApi as MetaApi
5+
from osparc_client.api.users_api import UsersApi as UsersApi
6+
from osparc_client.api.wallets_api import WalletsApi as WalletsApi
57

6-
from ._exceptions import VisibleDeprecationWarning
7-
8-
warning_msg: Final[str] = (
9-
"osparc.api has been deprecated. Instead functionality within this module "
10-
"should be imported directly from osparc. I.e. please do 'from osparc import "
11-
"<fcn>' instead of 'from osparc.api import <fcn>'"
12-
)
13-
warnings.warn(warning_msg, VisibleDeprecationWarning)
14-
15-
16-
__all__: Tuple[str, ...] = ("FilesApi", "MetaApi", "SolversApi", "UsersApi")
8+
from ._api_solvers_api import SolversApi as SolversApi
9+
from ._api_studies_api import StudiesApi as StudiesApi
10+
from ._api_files_api import FilesApi as FilesApi

0 commit comments

Comments
 (0)