mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +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.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",
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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__)
|
||||||
|
|||||||
Reference in New Issue
Block a user