refactor: reorganize imports across multiple files for consistency and clarity

This commit is contained in:
bohd4nx
2026-03-05 06:36:27 +02:00
parent 7f3c3ea1c3
commit 2cdc102a74
7 changed files with 29 additions and 15 deletions
+9 -1
View File
@@ -1,5 +1,12 @@
from app.core.config import config from app.core.config import config
from app.core.constants import ADS_PAGE, BASE_HEADERS, DEVICE, PREMIUM_PAGE, STARS_PAGE from app.core.constants import (
ADS_PAGE,
BASE_HEADERS,
DEVICE,
PREMIUM_PAGE,
STARS_PAGE,
WALLET_CLASSES,
)
from app.core.cookies import load_cookies from app.core.cookies import load_cookies
from app.core.exceptions import ( from app.core.exceptions import (
ConfigError, ConfigError,
@@ -19,6 +26,7 @@ __all__ = [
"DEVICE", "DEVICE",
"PREMIUM_PAGE", "PREMIUM_PAGE",
"STARS_PAGE", "STARS_PAGE",
"WALLET_CLASSES",
"ConfigError", "ConfigError",
"CookiesError", "CookiesError",
"FragmentError", "FragmentError",
+8 -3
View File
@@ -4,9 +4,14 @@ import time
import httpx import httpx
from app.core import load_cookies from app.core import (
from app.core.constants import BASE_HEADERS, DEVICE, PREMIUM_PAGE BASE_HEADERS,
from app.core.exceptions import FragmentError, UserNotFoundError DEVICE,
PREMIUM_PAGE,
FragmentError,
UserNotFoundError,
load_cookies,
)
from app.utils import ( from app.utils import (
execute_transaction_request, execute_transaction_request,
get_account_info, get_account_info,
+8 -3
View File
@@ -4,9 +4,14 @@ import time
import httpx import httpx
from app.core import load_cookies from app.core import (
from app.core.constants import BASE_HEADERS, DEVICE, STARS_PAGE BASE_HEADERS,
from app.core.exceptions import FragmentError, UserNotFoundError DEVICE,
STARS_PAGE,
FragmentError,
UserNotFoundError,
load_cookies,
)
from app.utils import ( from app.utils import (
execute_transaction_request, execute_transaction_request,
get_account_info, get_account_info,
+1 -3
View File
@@ -4,9 +4,7 @@ import time
import httpx import httpx
from app.core import load_cookies from app.core import ADS_PAGE, BASE_HEADERS, DEVICE, FragmentError, UserNotFoundError, load_cookies
from app.core.constants import ADS_PAGE, BASE_HEADERS, DEVICE
from app.core.exceptions import FragmentError, UserNotFoundError
from app.utils import ( from app.utils import (
execute_transaction_request, execute_transaction_request,
get_account_info, get_account_info,
+1 -1
View File
@@ -3,7 +3,7 @@ from typing import Any
import httpx import httpx
from app.core.exceptions import RequestError, WalletError from app.core import RequestError, WalletError
from app.utils.wallet import link_wallet from app.utils.wallet import link_wallet
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
+1 -1
View File
@@ -4,7 +4,7 @@ from typing import Any
import httpx import httpx
from app.core.exceptions import HashFetchError from app.core import HashFetchError
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
+1 -3
View File
@@ -7,9 +7,7 @@ import httpx
from tonutils.clients import TonapiClient from tonutils.clients import TonapiClient
from tonutils.types import NetworkGlobalID from tonutils.types import NetworkGlobalID
from app.core import config from app.core import DEVICE, WALLET_CLASSES, TransactionError, WalletError, config
from app.core.constants import DEVICE, WALLET_CLASSES
from app.core.exceptions import TransactionError, WalletError
from app.utils.decoder import clean_decode from app.utils.decoder import clean_decode
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)