mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 14:24:31 +00:00
refactor: reorganize imports across multiple files for consistency and clarity
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
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.exceptions import (
|
||||
ConfigError,
|
||||
@@ -19,6 +26,7 @@ __all__ = [
|
||||
"DEVICE",
|
||||
"PREMIUM_PAGE",
|
||||
"STARS_PAGE",
|
||||
"WALLET_CLASSES",
|
||||
"ConfigError",
|
||||
"CookiesError",
|
||||
"FragmentError",
|
||||
|
||||
@@ -4,9 +4,14 @@ import time
|
||||
|
||||
import httpx
|
||||
|
||||
from app.core import load_cookies
|
||||
from app.core.constants import BASE_HEADERS, DEVICE, PREMIUM_PAGE
|
||||
from app.core.exceptions import FragmentError, UserNotFoundError
|
||||
from app.core import (
|
||||
BASE_HEADERS,
|
||||
DEVICE,
|
||||
PREMIUM_PAGE,
|
||||
FragmentError,
|
||||
UserNotFoundError,
|
||||
load_cookies,
|
||||
)
|
||||
from app.utils import (
|
||||
execute_transaction_request,
|
||||
get_account_info,
|
||||
|
||||
@@ -4,9 +4,14 @@ import time
|
||||
|
||||
import httpx
|
||||
|
||||
from app.core import load_cookies
|
||||
from app.core.constants import BASE_HEADERS, DEVICE, STARS_PAGE
|
||||
from app.core.exceptions import FragmentError, UserNotFoundError
|
||||
from app.core import (
|
||||
BASE_HEADERS,
|
||||
DEVICE,
|
||||
STARS_PAGE,
|
||||
FragmentError,
|
||||
UserNotFoundError,
|
||||
load_cookies,
|
||||
)
|
||||
from app.utils import (
|
||||
execute_transaction_request,
|
||||
get_account_info,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import time
|
||||
|
||||
import httpx
|
||||
|
||||
from app.core import load_cookies
|
||||
from app.core.constants import ADS_PAGE, BASE_HEADERS, DEVICE
|
||||
from app.core.exceptions import FragmentError, UserNotFoundError
|
||||
from app.core import ADS_PAGE, BASE_HEADERS, DEVICE, FragmentError, UserNotFoundError, load_cookies
|
||||
from app.utils import (
|
||||
execute_transaction_request,
|
||||
get_account_info,
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ from typing import Any
|
||||
|
||||
import httpx
|
||||
|
||||
from app.core.exceptions import RequestError, WalletError
|
||||
from app.core import RequestError, WalletError
|
||||
from app.utils.wallet import link_wallet
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ from typing import Any
|
||||
|
||||
import httpx
|
||||
|
||||
from app.core.exceptions import HashFetchError
|
||||
from app.core import HashFetchError
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
+1
-3
@@ -7,9 +7,7 @@ import httpx
|
||||
from tonutils.clients import TonapiClient
|
||||
from tonutils.types import NetworkGlobalID
|
||||
|
||||
from app.core import config
|
||||
from app.core.constants import DEVICE, WALLET_CLASSES
|
||||
from app.core.exceptions import TransactionError, WalletError
|
||||
from app.core import DEVICE, WALLET_CLASSES, TransactionError, WalletError, config
|
||||
from app.utils.decoder import clean_decode
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Reference in New Issue
Block a user