marqetive-lib 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- marqetive/__init__.py +9 -9
- marqetive/core/__init__.py +1 -1
- marqetive/core/account_factory.py +2 -2
- marqetive/core/base_manager.py +4 -4
- marqetive/core/registry.py +1 -1
- marqetive/platforms/__init__.py +3 -3
- marqetive/platforms/base.py +3 -3
- marqetive/platforms/instagram/__init__.py +3 -3
- marqetive/platforms/instagram/client.py +4 -4
- marqetive/platforms/instagram/exceptions.py +1 -1
- marqetive/platforms/instagram/factory.py +5 -5
- marqetive/platforms/instagram/manager.py +4 -4
- marqetive/platforms/instagram/media.py +2 -2
- marqetive/platforms/linkedin/__init__.py +3 -3
- marqetive/platforms/linkedin/client.py +4 -4
- marqetive/platforms/linkedin/exceptions.py +1 -1
- marqetive/platforms/linkedin/factory.py +5 -5
- marqetive/platforms/linkedin/manager.py +4 -4
- marqetive/platforms/linkedin/media.py +4 -4
- marqetive/platforms/twitter/__init__.py +3 -3
- marqetive/platforms/twitter/client.py +5 -5
- marqetive/platforms/twitter/exceptions.py +1 -1
- marqetive/platforms/twitter/factory.py +5 -5
- marqetive/platforms/twitter/manager.py +4 -4
- marqetive/platforms/twitter/media.py +4 -4
- marqetive/platforms/twitter/threads.py +2 -2
- marqetive/registry_init.py +4 -4
- marqetive/utils/__init__.py +3 -3
- marqetive/utils/file_handlers.py +1 -1
- marqetive/utils/oauth.py +2 -2
- marqetive/utils/token_validator.py +1 -1
- {marqetive_lib-0.1.0.dist-info → marqetive_lib-0.1.1.dist-info}/METADATA +1 -1
- marqetive_lib-0.1.1.dist-info/RECORD +43 -0
- marqetive_lib-0.1.0.dist-info/RECORD +0 -43
- {marqetive_lib-0.1.0.dist-info → marqetive_lib-0.1.1.dist-info}/WHEEL +0 -0
marqetive/__init__.py
CHANGED
|
@@ -28,20 +28,20 @@ Usage:
|
|
|
28
28
|
|
|
29
29
|
# Core API client
|
|
30
30
|
# Account management
|
|
31
|
-
from marqetive.core.account_factory import BaseAccountFactory
|
|
31
|
+
from src.marqetive.core.account_factory import BaseAccountFactory
|
|
32
32
|
|
|
33
33
|
# Registry and managers
|
|
34
|
-
from marqetive.core.base_manager import BasePostManager
|
|
35
|
-
from marqetive.core.client import APIClient
|
|
34
|
+
from src.marqetive.core.base_manager import BasePostManager
|
|
35
|
+
from src.marqetive.core.client import APIClient
|
|
36
36
|
|
|
37
37
|
# Progress tracking
|
|
38
|
-
from marqetive.core.progress import (
|
|
38
|
+
from src.marqetive.core.progress import (
|
|
39
39
|
ProgressCallback,
|
|
40
40
|
ProgressEvent,
|
|
41
41
|
ProgressStatus,
|
|
42
42
|
ProgressTracker,
|
|
43
43
|
)
|
|
44
|
-
from marqetive.core.registry import (
|
|
44
|
+
from src.marqetive.core.registry import (
|
|
45
45
|
PlatformRegistry,
|
|
46
46
|
get_available_platforms,
|
|
47
47
|
get_manager_for_platform,
|
|
@@ -50,7 +50,7 @@ from marqetive.core.registry import (
|
|
|
50
50
|
)
|
|
51
51
|
|
|
52
52
|
# Models
|
|
53
|
-
from marqetive.platforms.models import (
|
|
53
|
+
from src.marqetive.platforms.models import (
|
|
54
54
|
AccountStatus,
|
|
55
55
|
AuthCredentials,
|
|
56
56
|
Comment,
|
|
@@ -62,16 +62,16 @@ from marqetive.platforms.models import (
|
|
|
62
62
|
PostStatus,
|
|
63
63
|
PostUpdateRequest,
|
|
64
64
|
)
|
|
65
|
-
from marqetive.registry_init import (
|
|
65
|
+
from src.marqetive.registry_init import (
|
|
66
66
|
initialize_platform_registry,
|
|
67
67
|
is_registry_initialized,
|
|
68
68
|
)
|
|
69
69
|
|
|
70
70
|
# Utilities
|
|
71
|
-
from marqetive.utils.helpers import format_response
|
|
71
|
+
from src.marqetive.utils.helpers import format_response
|
|
72
72
|
|
|
73
73
|
# Retry utilities
|
|
74
|
-
from marqetive.utils.retry import STANDARD_BACKOFF, BackoffConfig, retry_async
|
|
74
|
+
from src.marqetive.utils.retry import STANDARD_BACKOFF, BackoffConfig, retry_async
|
|
75
75
|
|
|
76
76
|
__version__ = "0.1.0"
|
|
77
77
|
|
marqetive/core/__init__.py
CHANGED
|
@@ -9,8 +9,8 @@ from abc import ABC, abstractmethod
|
|
|
9
9
|
from collections.abc import Callable
|
|
10
10
|
from typing import Any
|
|
11
11
|
|
|
12
|
-
from marqetive.platforms.exceptions import PlatformAuthError
|
|
13
|
-
from marqetive.platforms.models import AccountStatus, AuthCredentials
|
|
12
|
+
from src.marqetive.platforms.exceptions import PlatformAuthError
|
|
13
|
+
from src.marqetive.platforms.models import AccountStatus, AuthCredentials
|
|
14
14
|
|
|
15
15
|
logger = logging.getLogger(__name__)
|
|
16
16
|
|
marqetive/core/base_manager.py
CHANGED
|
@@ -10,10 +10,10 @@ import logging
|
|
|
10
10
|
from abc import ABC, abstractmethod
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
13
|
-
from marqetive.core.account_factory import BaseAccountFactory
|
|
14
|
-
from marqetive.core.progress import ProgressCallback, ProgressTracker
|
|
15
|
-
from marqetive.platforms.exceptions import PlatformError
|
|
16
|
-
from marqetive.platforms.models import AuthCredentials, Post, PostCreateRequest
|
|
13
|
+
from src.marqetive.core.account_factory import BaseAccountFactory
|
|
14
|
+
from src.marqetive.core.progress import ProgressCallback, ProgressTracker
|
|
15
|
+
from src.marqetive.platforms.exceptions import PlatformError
|
|
16
|
+
from src.marqetive.platforms.models import AuthCredentials, Post, PostCreateRequest
|
|
17
17
|
|
|
18
18
|
logger = logging.getLogger(__name__)
|
|
19
19
|
|
marqetive/core/registry.py
CHANGED
|
@@ -7,7 +7,7 @@ platform managers across the application.
|
|
|
7
7
|
import threading
|
|
8
8
|
from typing import Any, TypeVar
|
|
9
9
|
|
|
10
|
-
from marqetive.platforms.models import AuthCredentials
|
|
10
|
+
from src.marqetive.platforms.models import AuthCredentials
|
|
11
11
|
|
|
12
12
|
# Type variable for manager classes
|
|
13
13
|
ManagerType = TypeVar("ManagerType")
|
marqetive/platforms/__init__.py
CHANGED
|
@@ -9,8 +9,8 @@ Platform clients are available via their respective subpackages:
|
|
|
9
9
|
- from marqetive_lib.platforms.instagram import InstagramClient
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
-
from marqetive.platforms.base import SocialMediaPlatform
|
|
13
|
-
from marqetive.platforms.exceptions import (
|
|
12
|
+
from src.marqetive.platforms.base import SocialMediaPlatform
|
|
13
|
+
from src.marqetive.platforms.exceptions import (
|
|
14
14
|
MediaUploadError,
|
|
15
15
|
PlatformAuthError,
|
|
16
16
|
PlatformError,
|
|
@@ -18,7 +18,7 @@ from marqetive.platforms.exceptions import (
|
|
|
18
18
|
RateLimitError,
|
|
19
19
|
ValidationError,
|
|
20
20
|
)
|
|
21
|
-
from marqetive.platforms.models import (
|
|
21
|
+
from src.marqetive.platforms.models import (
|
|
22
22
|
AuthCredentials,
|
|
23
23
|
Comment,
|
|
24
24
|
CommentStatus,
|
marqetive/platforms/base.py
CHANGED
|
@@ -10,12 +10,12 @@ from datetime import datetime
|
|
|
10
10
|
from traceback import TracebackException
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
13
|
-
from marqetive.core.client import APIClient
|
|
14
|
-
from marqetive.platforms.exceptions import (
|
|
13
|
+
from src.marqetive.core.client import APIClient
|
|
14
|
+
from src.marqetive.platforms.exceptions import (
|
|
15
15
|
PlatformAuthError,
|
|
16
16
|
RateLimitError,
|
|
17
17
|
)
|
|
18
|
-
from marqetive.platforms.models import (
|
|
18
|
+
from src.marqetive.platforms.models import (
|
|
19
19
|
AuthCredentials,
|
|
20
20
|
Comment,
|
|
21
21
|
MediaAttachment,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Instagram platform integration."""
|
|
2
2
|
|
|
3
|
-
from marqetive.platforms.instagram.client import InstagramClient
|
|
4
|
-
from marqetive.platforms.instagram.factory import InstagramAccountFactory
|
|
5
|
-
from marqetive.platforms.instagram.manager import InstagramPostManager
|
|
3
|
+
from src.marqetive.platforms.instagram.client import InstagramClient
|
|
4
|
+
from src.marqetive.platforms.instagram.factory import InstagramAccountFactory
|
|
5
|
+
from src.marqetive.platforms.instagram.manager import InstagramPostManager
|
|
6
6
|
|
|
7
7
|
__all__ = ["InstagramClient", "InstagramAccountFactory", "InstagramPostManager"]
|
|
@@ -12,19 +12,19 @@ from typing import Any, Literal, cast
|
|
|
12
12
|
import httpx
|
|
13
13
|
from pydantic import HttpUrl
|
|
14
14
|
|
|
15
|
-
from marqetive.platforms.base import SocialMediaPlatform
|
|
16
|
-
from marqetive.platforms.exceptions import (
|
|
15
|
+
from src.marqetive.platforms.base import SocialMediaPlatform
|
|
16
|
+
from src.marqetive.platforms.exceptions import (
|
|
17
17
|
MediaUploadError,
|
|
18
18
|
PlatformAuthError,
|
|
19
19
|
PlatformError,
|
|
20
20
|
PostNotFoundError,
|
|
21
21
|
ValidationError,
|
|
22
22
|
)
|
|
23
|
-
from marqetive.platforms.instagram.media import (
|
|
23
|
+
from src.marqetive.platforms.instagram.media import (
|
|
24
24
|
InstagramMediaManager,
|
|
25
25
|
MediaItem,
|
|
26
26
|
)
|
|
27
|
-
from marqetive.platforms.models import (
|
|
27
|
+
from src.marqetive.platforms.models import (
|
|
28
28
|
AuthCredentials,
|
|
29
29
|
Comment,
|
|
30
30
|
CommentStatus,
|
|
@@ -5,7 +5,7 @@ This module provides comprehensive error handling for Instagram Graph API errors
|
|
|
5
5
|
|
|
6
6
|
from typing import Any
|
|
7
7
|
|
|
8
|
-
from marqetive.platforms.exceptions import (
|
|
8
|
+
from src.marqetive.platforms.exceptions import (
|
|
9
9
|
MediaUploadError,
|
|
10
10
|
PlatformAuthError,
|
|
11
11
|
PlatformError,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import logging
|
|
4
4
|
from collections.abc import Callable
|
|
5
5
|
|
|
6
|
-
from marqetive.core.account_factory import BaseAccountFactory
|
|
7
|
-
from marqetive.platforms.exceptions import PlatformAuthError
|
|
8
|
-
from marqetive.platforms.instagram.client import InstagramClient
|
|
9
|
-
from marqetive.platforms.models import AccountStatus, AuthCredentials
|
|
10
|
-
from marqetive.utils.oauth import refresh_instagram_token
|
|
6
|
+
from src.marqetive.core.account_factory import BaseAccountFactory
|
|
7
|
+
from src.marqetive.platforms.exceptions import PlatformAuthError
|
|
8
|
+
from src.marqetive.platforms.instagram.client import InstagramClient
|
|
9
|
+
from src.marqetive.platforms.models import AccountStatus, AuthCredentials
|
|
10
|
+
from src.marqetive.utils.oauth import refresh_instagram_token
|
|
11
11
|
|
|
12
12
|
logger = logging.getLogger(__name__)
|
|
13
13
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import logging
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
-
from marqetive.core.base_manager import BasePostManager
|
|
7
|
-
from marqetive.platforms.instagram.client import InstagramClient
|
|
8
|
-
from marqetive.platforms.instagram.factory import InstagramAccountFactory
|
|
9
|
-
from marqetive.platforms.models import AuthCredentials, Post, PostCreateRequest
|
|
6
|
+
from src.marqetive.core.base_manager import BasePostManager
|
|
7
|
+
from src.marqetive.platforms.instagram.client import InstagramClient
|
|
8
|
+
from src.marqetive.platforms.instagram.factory import InstagramAccountFactory
|
|
9
|
+
from src.marqetive.platforms.models import AuthCredentials, Post, PostCreateRequest
|
|
10
10
|
|
|
11
11
|
logger = logging.getLogger(__name__)
|
|
12
12
|
|
|
@@ -19,11 +19,11 @@ from typing import Any, Literal
|
|
|
19
19
|
|
|
20
20
|
import httpx
|
|
21
21
|
|
|
22
|
-
from marqetive.platforms.exceptions import (
|
|
22
|
+
from src.marqetive.platforms.exceptions import (
|
|
23
23
|
MediaUploadError,
|
|
24
24
|
ValidationError,
|
|
25
25
|
)
|
|
26
|
-
from marqetive.utils.retry import STANDARD_BACKOFF, retry_async
|
|
26
|
+
from src.marqetive.utils.retry import STANDARD_BACKOFF, retry_async
|
|
27
27
|
|
|
28
28
|
logger = logging.getLogger(__name__)
|
|
29
29
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""LinkedIn platform integration."""
|
|
2
2
|
|
|
3
|
-
from marqetive.platforms.linkedin.client import LinkedInClient
|
|
4
|
-
from marqetive.platforms.linkedin.factory import LinkedInAccountFactory
|
|
5
|
-
from marqetive.platforms.linkedin.manager import LinkedInPostManager
|
|
3
|
+
from src.marqetive.platforms.linkedin.client import LinkedInClient
|
|
4
|
+
from src.marqetive.platforms.linkedin.factory import LinkedInAccountFactory
|
|
5
|
+
from src.marqetive.platforms.linkedin.manager import LinkedInPostManager
|
|
6
6
|
|
|
7
7
|
__all__ = ["LinkedInClient", "LinkedInAccountFactory", "LinkedInPostManager"]
|
|
@@ -12,16 +12,16 @@ from typing import Any, cast
|
|
|
12
12
|
import httpx
|
|
13
13
|
from pydantic import HttpUrl
|
|
14
14
|
|
|
15
|
-
from marqetive.platforms.base import SocialMediaPlatform
|
|
16
|
-
from marqetive.platforms.exceptions import (
|
|
15
|
+
from src.marqetive.platforms.base import SocialMediaPlatform
|
|
16
|
+
from src.marqetive.platforms.exceptions import (
|
|
17
17
|
MediaUploadError,
|
|
18
18
|
PlatformAuthError,
|
|
19
19
|
PlatformError,
|
|
20
20
|
PostNotFoundError,
|
|
21
21
|
ValidationError,
|
|
22
22
|
)
|
|
23
|
-
from marqetive.platforms.linkedin.media import LinkedInMediaManager, MediaAsset
|
|
24
|
-
from marqetive.platforms.models import (
|
|
23
|
+
from src.marqetive.platforms.linkedin.media import LinkedInMediaManager, MediaAsset
|
|
24
|
+
from src.marqetive.platforms.models import (
|
|
25
25
|
AuthCredentials,
|
|
26
26
|
Comment,
|
|
27
27
|
CommentStatus,
|
|
@@ -9,7 +9,7 @@ This module provides comprehensive error handling for LinkedIn API errors includ
|
|
|
9
9
|
|
|
10
10
|
from typing import Any
|
|
11
11
|
|
|
12
|
-
from marqetive.platforms.exceptions import (
|
|
12
|
+
from src.marqetive.platforms.exceptions import (
|
|
13
13
|
MediaUploadError,
|
|
14
14
|
PlatformAuthError,
|
|
15
15
|
PlatformError,
|
|
@@ -4,11 +4,11 @@ import logging
|
|
|
4
4
|
import os
|
|
5
5
|
from collections.abc import Callable
|
|
6
6
|
|
|
7
|
-
from marqetive.core.account_factory import BaseAccountFactory
|
|
8
|
-
from marqetive.platforms.exceptions import PlatformAuthError
|
|
9
|
-
from marqetive.platforms.linkedin.client import LinkedInClient
|
|
10
|
-
from marqetive.platforms.models import AccountStatus, AuthCredentials
|
|
11
|
-
from marqetive.utils.oauth import refresh_linkedin_token
|
|
7
|
+
from src.marqetive.core.account_factory import BaseAccountFactory
|
|
8
|
+
from src.marqetive.platforms.exceptions import PlatformAuthError
|
|
9
|
+
from src.marqetive.platforms.linkedin.client import LinkedInClient
|
|
10
|
+
from src.marqetive.platforms.models import AccountStatus, AuthCredentials
|
|
11
|
+
from src.marqetive.utils.oauth import refresh_linkedin_token
|
|
12
12
|
|
|
13
13
|
logger = logging.getLogger(__name__)
|
|
14
14
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import logging
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
-
from marqetive.core.base_manager import BasePostManager
|
|
7
|
-
from marqetive.platforms.linkedin.client import LinkedInClient
|
|
8
|
-
from marqetive.platforms.linkedin.factory import LinkedInAccountFactory
|
|
9
|
-
from marqetive.platforms.models import AuthCredentials, Post, PostCreateRequest
|
|
6
|
+
from src.marqetive.core.base_manager import BasePostManager
|
|
7
|
+
from src.marqetive.platforms.linkedin.client import LinkedInClient
|
|
8
|
+
from src.marqetive.platforms.linkedin.factory import LinkedInAccountFactory
|
|
9
|
+
from src.marqetive.platforms.models import AuthCredentials, Post, PostCreateRequest
|
|
10
10
|
|
|
11
11
|
logger = logging.getLogger(__name__)
|
|
12
12
|
|
|
@@ -20,13 +20,13 @@ from typing import Any, Literal
|
|
|
20
20
|
|
|
21
21
|
import httpx
|
|
22
22
|
|
|
23
|
-
from marqetive.platforms.exceptions import (
|
|
23
|
+
from src.marqetive.platforms.exceptions import (
|
|
24
24
|
MediaUploadError,
|
|
25
25
|
ValidationError,
|
|
26
26
|
)
|
|
27
|
-
from marqetive.utils.file_handlers import download_file, read_file_bytes
|
|
28
|
-
from marqetive.utils.media import detect_mime_type, format_file_size
|
|
29
|
-
from marqetive.utils.retry import STANDARD_BACKOFF, retry_async
|
|
27
|
+
from src.marqetive.utils.file_handlers import download_file, read_file_bytes
|
|
28
|
+
from src.marqetive.utils.media import detect_mime_type, format_file_size
|
|
29
|
+
from src.marqetive.utils.retry import STANDARD_BACKOFF, retry_async
|
|
30
30
|
|
|
31
31
|
logger = logging.getLogger(__name__)
|
|
32
32
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Twitter/X platform integration."""
|
|
2
2
|
|
|
3
|
-
from marqetive.platforms.twitter.client import TwitterClient
|
|
4
|
-
from marqetive.platforms.twitter.factory import TwitterAccountFactory
|
|
5
|
-
from marqetive.platforms.twitter.manager import TwitterPostManager
|
|
3
|
+
from src.marqetive.platforms.twitter.client import TwitterClient
|
|
4
|
+
from src.marqetive.platforms.twitter.factory import TwitterAccountFactory
|
|
5
|
+
from src.marqetive.platforms.twitter.manager import TwitterPostManager
|
|
6
6
|
|
|
7
7
|
__all__ = ["TwitterClient", "TwitterAccountFactory", "TwitterPostManager"]
|
|
@@ -13,8 +13,8 @@ import httpx
|
|
|
13
13
|
import tweepy
|
|
14
14
|
from pydantic import HttpUrl
|
|
15
15
|
|
|
16
|
-
from marqetive.platforms.base import SocialMediaPlatform
|
|
17
|
-
from marqetive.platforms.exceptions import (
|
|
16
|
+
from src.marqetive.platforms.base import SocialMediaPlatform
|
|
17
|
+
from src.marqetive.platforms.exceptions import (
|
|
18
18
|
MediaUploadError,
|
|
19
19
|
PlatformAuthError,
|
|
20
20
|
PlatformError,
|
|
@@ -22,7 +22,7 @@ from marqetive.platforms.exceptions import (
|
|
|
22
22
|
RateLimitError,
|
|
23
23
|
ValidationError,
|
|
24
24
|
)
|
|
25
|
-
from marqetive.platforms.models import (
|
|
25
|
+
from src.marqetive.platforms.models import (
|
|
26
26
|
AuthCredentials,
|
|
27
27
|
Comment,
|
|
28
28
|
CommentStatus,
|
|
@@ -33,8 +33,8 @@ from marqetive.platforms.models import (
|
|
|
33
33
|
PostStatus,
|
|
34
34
|
PostUpdateRequest,
|
|
35
35
|
)
|
|
36
|
-
from marqetive.platforms.twitter.media import TwitterMediaManager
|
|
37
|
-
from marqetive.platforms.twitter.threads import (
|
|
36
|
+
from src.marqetive.platforms.twitter.media import TwitterMediaManager
|
|
37
|
+
from src.marqetive.platforms.twitter.threads import (
|
|
38
38
|
ThreadResult,
|
|
39
39
|
TweetData,
|
|
40
40
|
TwitterThreadManager,
|
|
@@ -9,7 +9,7 @@ This module provides comprehensive error handling for Twitter API errors includi
|
|
|
9
9
|
|
|
10
10
|
from typing import Any
|
|
11
11
|
|
|
12
|
-
from marqetive.platforms.exceptions import (
|
|
12
|
+
from src.marqetive.platforms.exceptions import (
|
|
13
13
|
MediaUploadError,
|
|
14
14
|
PlatformAuthError,
|
|
15
15
|
PlatformError,
|
|
@@ -4,11 +4,11 @@ import logging
|
|
|
4
4
|
import os
|
|
5
5
|
from collections.abc import Callable
|
|
6
6
|
|
|
7
|
-
from marqetive.core.account_factory import BaseAccountFactory
|
|
8
|
-
from marqetive.platforms.exceptions import PlatformAuthError
|
|
9
|
-
from marqetive.platforms.models import AccountStatus, AuthCredentials
|
|
10
|
-
from marqetive.platforms.twitter.client import TwitterClient
|
|
11
|
-
from marqetive.utils.oauth import refresh_twitter_token
|
|
7
|
+
from src.marqetive.core.account_factory import BaseAccountFactory
|
|
8
|
+
from src.marqetive.platforms.exceptions import PlatformAuthError
|
|
9
|
+
from src.marqetive.platforms.models import AccountStatus, AuthCredentials
|
|
10
|
+
from src.marqetive.platforms.twitter.client import TwitterClient
|
|
11
|
+
from src.marqetive.utils.oauth import refresh_twitter_token
|
|
12
12
|
|
|
13
13
|
logger = logging.getLogger(__name__)
|
|
14
14
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import logging
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
-
from marqetive.core.base_manager import BasePostManager
|
|
7
|
-
from marqetive.platforms.models import AuthCredentials, Post, PostCreateRequest
|
|
8
|
-
from marqetive.platforms.twitter.client import TwitterClient
|
|
9
|
-
from marqetive.platforms.twitter.factory import TwitterAccountFactory
|
|
6
|
+
from src.marqetive.core.base_manager import BasePostManager
|
|
7
|
+
from src.marqetive.platforms.models import AuthCredentials, Post, PostCreateRequest
|
|
8
|
+
from src.marqetive.platforms.twitter.client import TwitterClient
|
|
9
|
+
from src.marqetive.platforms.twitter.factory import TwitterAccountFactory
|
|
10
10
|
|
|
11
11
|
logger = logging.getLogger(__name__)
|
|
12
12
|
|
|
@@ -18,17 +18,17 @@ from typing import Any, Literal
|
|
|
18
18
|
|
|
19
19
|
import httpx
|
|
20
20
|
|
|
21
|
-
from marqetive.platforms.exceptions import (
|
|
21
|
+
from src.marqetive.platforms.exceptions import (
|
|
22
22
|
InvalidFileTypeError,
|
|
23
23
|
MediaUploadError,
|
|
24
24
|
)
|
|
25
|
-
from marqetive.utils.file_handlers import download_file
|
|
26
|
-
from marqetive.utils.media import (
|
|
25
|
+
from src.marqetive.utils.file_handlers import download_file
|
|
26
|
+
from src.marqetive.utils.media import (
|
|
27
27
|
detect_mime_type,
|
|
28
28
|
format_file_size,
|
|
29
29
|
get_chunk_count,
|
|
30
30
|
)
|
|
31
|
-
from marqetive.utils.retry import STANDARD_BACKOFF, retry_async
|
|
31
|
+
from src.marqetive.utils.retry import STANDARD_BACKOFF, retry_async
|
|
32
32
|
|
|
33
33
|
logger = logging.getLogger(__name__)
|
|
34
34
|
|
|
@@ -9,8 +9,8 @@ from typing import Any
|
|
|
9
9
|
|
|
10
10
|
import tweepy
|
|
11
11
|
|
|
12
|
-
from marqetive.platforms.exceptions import PlatformError, ValidationError
|
|
13
|
-
from marqetive.platforms.models import Post, PostStatus
|
|
12
|
+
from src.marqetive.platforms.exceptions import PlatformError, ValidationError
|
|
13
|
+
from src.marqetive.platforms.models import Post, PostStatus
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
@dataclass
|
marqetive/registry_init.py
CHANGED
|
@@ -6,10 +6,10 @@ platform managers with the global registry.
|
|
|
6
6
|
|
|
7
7
|
import logging
|
|
8
8
|
|
|
9
|
-
from marqetive.core.registry import register_platform
|
|
10
|
-
from marqetive.platforms.instagram.manager import InstagramPostManager
|
|
11
|
-
from marqetive.platforms.linkedin.manager import LinkedInPostManager
|
|
12
|
-
from marqetive.platforms.twitter.manager import TwitterPostManager
|
|
9
|
+
from src.marqetive.core.registry import register_platform
|
|
10
|
+
from src.marqetive.platforms.instagram.manager import InstagramPostManager
|
|
11
|
+
from src.marqetive.platforms.linkedin.manager import LinkedInPostManager
|
|
12
|
+
from src.marqetive.platforms.twitter.manager import TwitterPostManager
|
|
13
13
|
|
|
14
14
|
logger = logging.getLogger(__name__)
|
|
15
15
|
|
marqetive/utils/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Utility functions for MarqetiveLib."""
|
|
2
2
|
|
|
3
|
-
from marqetive.utils.file_handlers import (
|
|
3
|
+
from src.marqetive.utils.file_handlers import (
|
|
4
4
|
TempFileManager,
|
|
5
5
|
download_file,
|
|
6
6
|
download_to_memory,
|
|
@@ -9,8 +9,8 @@ from marqetive.utils.file_handlers import (
|
|
|
9
9
|
stream_file_upload,
|
|
10
10
|
write_file_bytes,
|
|
11
11
|
)
|
|
12
|
-
from marqetive.utils.helpers import format_response, parse_query_params
|
|
13
|
-
from marqetive.utils.media import (
|
|
12
|
+
from src.marqetive.utils.helpers import format_response, parse_query_params
|
|
13
|
+
from src.marqetive.utils.media import (
|
|
14
14
|
MediaValidator,
|
|
15
15
|
chunk_file,
|
|
16
16
|
detect_mime_type,
|
marqetive/utils/file_handlers.py
CHANGED
marqetive/utils/oauth.py
CHANGED
|
@@ -10,8 +10,8 @@ from typing import Any
|
|
|
10
10
|
|
|
11
11
|
import httpx
|
|
12
12
|
|
|
13
|
-
from marqetive.platforms.exceptions import PlatformAuthError
|
|
14
|
-
from marqetive.platforms.models import AuthCredentials
|
|
13
|
+
from src.marqetive.platforms.exceptions import PlatformAuthError
|
|
14
|
+
from src.marqetive.platforms.models import AuthCredentials
|
|
15
15
|
|
|
16
16
|
logger = logging.getLogger(__name__)
|
|
17
17
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
marqetive/__init__.py,sha256=XVnYmB817AILAnJYg1WVNnmrd1MvJns3QpPbfdjmwRE,3142
|
|
2
|
+
marqetive/core/__init__.py,sha256=5Wgcby-EQkTxrPVD4so69nBmZ66Ng9JGqBov4RQMT4A,117
|
|
3
|
+
marqetive/core/account_factory.py,sha256=9fsP6fzLYp3UGU59fkxwURgzn7eBxr8-WJt3aP-Z65U,7153
|
|
4
|
+
marqetive/core/base_manager.py,sha256=z28bV4p1FC7s9g_YkXIKW_qkv8bjF4tMoF-cGGksJuA,10047
|
|
5
|
+
marqetive/core/client.py,sha256=GBgWzkgdMRMyoCy5dXdEFFzPne6Usp_9i0UxaG7Xd-Y,3226
|
|
6
|
+
marqetive/core/progress.py,sha256=5Vyksf8YfQUVRudwDEuegcxoc0js5qbHM2SFZ6VLxHM,8593
|
|
7
|
+
marqetive/core/registry.py,sha256=D6qlafpvemYfE9GouWcWZyltK0aNcFLSi_2M-WdTIdE,8084
|
|
8
|
+
marqetive/platforms/__init__.py,sha256=6QjetNWodf32pgGQsmLKs7W-v-pG2kKckb5JEPqIPNI,1351
|
|
9
|
+
marqetive/platforms/base.py,sha256=zmCda00Szq_LswRdsWPI5V88TysLH3FIZ0mKwH6b8dE,11957
|
|
10
|
+
marqetive/platforms/exceptions.py,sha256=C8H0vsICM6amtQTz1iwXjc3duFGq-M71N7QqsLElt1M,7029
|
|
11
|
+
marqetive/platforms/instagram/__init__.py,sha256=9V0GPVm9HSTtDdV0bQEfuND8r7PEF2smOL3lb5BZevg,343
|
|
12
|
+
marqetive/platforms/instagram/client.py,sha256=PxVsHUW8SSpPe2Kdd5zGezD7LUvJj5tdyNj8In_ChxI,24955
|
|
13
|
+
marqetive/platforms/instagram/exceptions.py,sha256=zFG_CkstlZWG47zsFdnObOZviTDIx3Z8yVG9-x7GMVY,8987
|
|
14
|
+
marqetive/platforms/instagram/factory.py,sha256=082cF47zs9GvrnrFFaKmftbt_GmvcHZvSNIJsOQcupY,3553
|
|
15
|
+
marqetive/platforms/instagram/manager.py,sha256=RhV2QpLp9z2p-MCP3E-UzeYFCmuB0K8PIdDfwSaxdJI,3730
|
|
16
|
+
marqetive/platforms/instagram/media.py,sha256=tbFzOf670T8UDoCD9fVeS03Uzhp6HSUFrpPgJVgpdRE,21174
|
|
17
|
+
marqetive/platforms/linkedin/__init__.py,sha256=mcHNOKW5niq0MGBMuRpCJfEg2DkE3sCt0J0AqSZUPBs,333
|
|
18
|
+
marqetive/platforms/linkedin/client.py,sha256=d7YDd23VAqUMAHw8Oi9Swpq5RwhIIpl4TjbrBI9GkfE,23574
|
|
19
|
+
marqetive/platforms/linkedin/exceptions.py,sha256=64J02_99cUcUW5i5xHE_sa0_6V4ibW8PmCEz2aROIE4,9771
|
|
20
|
+
marqetive/platforms/linkedin/factory.py,sha256=8JNxAMC-lJcU1trnd0PFge0LQWQMiIVzZORJHwcBhmM,4536
|
|
21
|
+
marqetive/platforms/linkedin/manager.py,sha256=XB6HB6-MWsDz2Arij5GuyRH_j5xWkYb8sHCTlKFWzMg,4000
|
|
22
|
+
marqetive/platforms/linkedin/media.py,sha256=busrlTA3CisY43qDy9dmiAmbFVz8De4nDsA4CV9PeWk,16917
|
|
23
|
+
marqetive/platforms/models.py,sha256=8NSIh-fT5gFHCvs6A5dnnsfhsklpSfNgD_ovDPVv1aY,10860
|
|
24
|
+
marqetive/platforms/tiktok/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
+
marqetive/platforms/twitter/__init__.py,sha256=TRVOejA-wa_tw50_YUwTYnhGyGuOK2IFpZWvVZP94HQ,325
|
|
26
|
+
marqetive/platforms/twitter/client.py,sha256=881gM9twIPo81ShTpLXbQMpOzeWad1D4Nu6H0BzCSlY,20840
|
|
27
|
+
marqetive/platforms/twitter/exceptions.py,sha256=yRLLcodSouaFV076iwbxcWZzXUuoswAOXuL_-iPvLOk,8935
|
|
28
|
+
marqetive/platforms/twitter/factory.py,sha256=nBBl5aFcNCgIwf45PWywjpx_Qp0aOdbOHthvQX-BzI4,5286
|
|
29
|
+
marqetive/platforms/twitter/manager.py,sha256=NEqFllDdQ6nlUQMV1M5koX8DMURuvNsa39gKiTpm5A0,4108
|
|
30
|
+
marqetive/platforms/twitter/media.py,sha256=szkILg8geuH5wVbGXUBeHr9B-48j08njb-NlClPDcQQ,24984
|
|
31
|
+
marqetive/platforms/twitter/threads.py,sha256=F1msBRcmpAb_NKaZvdDn0oA_cQwwzFoXGeiUIdr7rrY,14772
|
|
32
|
+
marqetive/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
+
marqetive/registry_init.py,sha256=ozvGN_lWWx_vvYcU_ONA49EzwN4ymbrB1jtkRchYvAU,2051
|
|
34
|
+
marqetive/utils/__init__.py,sha256=qBn_DN-L2YTfuB_G-n_bHJjtuVRiyH3ftl9JZ0JO93M,989
|
|
35
|
+
marqetive/utils/file_handlers.py,sha256=IUdRZxr_jxAuwxUypUkUgKqiGDcIHNr1LhCb2Ne2a98,12572
|
|
36
|
+
marqetive/utils/helpers.py,sha256=8-ljhL47SremKcQO2GF8DIHOPODEv1rSioVNuSPCbec,2634
|
|
37
|
+
marqetive/utils/media.py,sha256=Rvxw9XKU65n-z4G1bEihG3wXZBmjSDZUqClfjGFrg6k,12013
|
|
38
|
+
marqetive/utils/oauth.py,sha256=NOQidwZ6vAscUMPUm-Ho16L2G64vGHkopJHZVSNWv88,7921
|
|
39
|
+
marqetive/utils/retry.py,sha256=lAniJLMNWp9XsHrvU0XBNifpNEjfde4MGfd5hlFTPfA,7636
|
|
40
|
+
marqetive/utils/token_validator.py,sha256=asLMiEgT-BtqEpn_HDX15vJoSBcH7CGW0abervFOXxM,6707
|
|
41
|
+
marqetive_lib-0.1.1.dist-info/METADATA,sha256=o7T_GLuQ3UqFCIIGZEsg6gCDOz3sKPxWImBhlaO-XWc,7849
|
|
42
|
+
marqetive_lib-0.1.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
43
|
+
marqetive_lib-0.1.1.dist-info/RECORD,,
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
marqetive/__init__.py,sha256=o5Ntw1dibTu5LKbhtSe1XfNxmHIeOOdyvZ2lQMxt_Ok,3106
|
|
2
|
-
marqetive/core/__init__.py,sha256=qOC6JhGjWOpj9_7umtc6VGH16ZJZE6iNDhA6iDZm8kg,113
|
|
3
|
-
marqetive/core/account_factory.py,sha256=3PrkWPdeUS8K8yaMufCsc-mhNN8k_9oDUo_ltnkMSPY,7145
|
|
4
|
-
marqetive/core/base_manager.py,sha256=tbuwO2QQaSup_UXMCtmETcNutzCFV0omvroUM7yHFKA,10031
|
|
5
|
-
marqetive/core/client.py,sha256=GBgWzkgdMRMyoCy5dXdEFFzPne6Usp_9i0UxaG7Xd-Y,3226
|
|
6
|
-
marqetive/core/progress.py,sha256=5Vyksf8YfQUVRudwDEuegcxoc0js5qbHM2SFZ6VLxHM,8593
|
|
7
|
-
marqetive/core/registry.py,sha256=6BBY30qgQBUWf2av73S4E2hEx0uqM7HFn_AGPfCv3KU,8080
|
|
8
|
-
marqetive/platforms/__init__.py,sha256=2rC_xqx0Xf0LJy87GcFUpQe5DeMg-cgYEI5Uv6uoM54,1339
|
|
9
|
-
marqetive/platforms/base.py,sha256=y37RkSb3AGHtU-JmjxlUgbwlqG2MmF7w4MI3FATHoG4,11945
|
|
10
|
-
marqetive/platforms/exceptions.py,sha256=C8H0vsICM6amtQTz1iwXjc3duFGq-M71N7QqsLElt1M,7029
|
|
11
|
-
marqetive/platforms/instagram/__init__.py,sha256=dFrDIyKGdw8AsRRYb_AjW1R8PWkxqytM-nrjuAvbw0A,331
|
|
12
|
-
marqetive/platforms/instagram/client.py,sha256=XuvWl0aRHdAFScjOf4x4reQWkfZXdtGKmh1lIWcj4Lc,24939
|
|
13
|
-
marqetive/platforms/instagram/exceptions.py,sha256=zwTc90VbG8uz_6O5bKw68Pp53SoevLQUqPiXj4ZgThU,8983
|
|
14
|
-
marqetive/platforms/instagram/factory.py,sha256=qo7kLk7IoVWGjB0hJbkQqesOveN4gidw0kUh_7SzvaM,3533
|
|
15
|
-
marqetive/platforms/instagram/manager.py,sha256=ZCqdlz5DgOhKUb1n2WOviLsr4NQxfBT4KiycSRv3Q-4,3714
|
|
16
|
-
marqetive/platforms/instagram/media.py,sha256=JDRFB66UlhSjAf0PFR3raGqYxtNTSd5yIZ_2xTGmZRk,21166
|
|
17
|
-
marqetive/platforms/linkedin/__init__.py,sha256=r-1p9yaJO4n8wYWNtN32Quwar6eAWkF5EtFN-v2AdPg,321
|
|
18
|
-
marqetive/platforms/linkedin/client.py,sha256=ddcKmVN2d0ow2abfnaNSeswRsoYREdxj-J9w711zsy0,23558
|
|
19
|
-
marqetive/platforms/linkedin/exceptions.py,sha256=WHjMZ-XJnKgT6uzzi7LXqFt4lD7nSCjzMzaqtOQA3hM,9767
|
|
20
|
-
marqetive/platforms/linkedin/factory.py,sha256=N8POv4vMSg1L8PYnV9-JpHgYlaa33AfeWUhh6UPkViI,4516
|
|
21
|
-
marqetive/platforms/linkedin/manager.py,sha256=K_X74qenJyd5HIL3KtsKpHjQOz48uENFJabZdsXwE-Y,3984
|
|
22
|
-
marqetive/platforms/linkedin/media.py,sha256=360OT1sdBuJRjuL3wJ-T1irAX5gHmcf4AwAU__cvwwA,16901
|
|
23
|
-
marqetive/platforms/models.py,sha256=8NSIh-fT5gFHCvs6A5dnnsfhsklpSfNgD_ovDPVv1aY,10860
|
|
24
|
-
marqetive/platforms/tiktok/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
-
marqetive/platforms/twitter/__init__.py,sha256=zDEslH3Y6zCnFlYaoW77bkO7j75OmABjqMf1BGh8P5M,313
|
|
26
|
-
marqetive/platforms/twitter/client.py,sha256=vHaYYFNCUJJuOykmiEYBge2CM_kYqKwGdptdqGJE5Ic,20820
|
|
27
|
-
marqetive/platforms/twitter/exceptions.py,sha256=aKrjUZL07KWQ8hatj5-U7UfnSTl-n8DnTgGGigYCrIY,8931
|
|
28
|
-
marqetive/platforms/twitter/factory.py,sha256=JzcNaNfbi2s6BA7r4_vwpWbUpzIUMrtYSvvWY30R2O0,5266
|
|
29
|
-
marqetive/platforms/twitter/manager.py,sha256=QlPrVniPbJdlt39iMi_hmDGpaMkPT7pNjjIYUre2byY,4092
|
|
30
|
-
marqetive/platforms/twitter/media.py,sha256=16atvKwSukvK_YC_gIm2qsl3pmidWEBAwIfJBPG9HQo,24968
|
|
31
|
-
marqetive/platforms/twitter/threads.py,sha256=xksMvYD__Cr5ZCH70nHEp1UQe_2xtOknCOcPWjhtPsw,14764
|
|
32
|
-
marqetive/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
-
marqetive/registry_init.py,sha256=KuahtT6SZPeGReFHZznkeKCLctd_TrpwJUoCQ_igXL8,2035
|
|
34
|
-
marqetive/utils/__init__.py,sha256=bSrNajbxYBSKQayrPviLz8JeGjplnyK8y_NGDtgb7yQ,977
|
|
35
|
-
marqetive/utils/file_handlers.py,sha256=4TP5kmWofNTSZmlS683CM1UYP83WvRd_NubMbqtXv-g,12568
|
|
36
|
-
marqetive/utils/helpers.py,sha256=8-ljhL47SremKcQO2GF8DIHOPODEv1rSioVNuSPCbec,2634
|
|
37
|
-
marqetive/utils/media.py,sha256=Rvxw9XKU65n-z4G1bEihG3wXZBmjSDZUqClfjGFrg6k,12013
|
|
38
|
-
marqetive/utils/oauth.py,sha256=6X8FrF4bDVqX-Jf7dAgzdUCR7zqdbAM4FjjBEGXNoaE,7913
|
|
39
|
-
marqetive/utils/retry.py,sha256=lAniJLMNWp9XsHrvU0XBNifpNEjfde4MGfd5hlFTPfA,7636
|
|
40
|
-
marqetive/utils/token_validator.py,sha256=pNimFr_FNJLcYGV5oADhoBjflKfEbLQ3Epwnwg_nTbg,6703
|
|
41
|
-
marqetive_lib-0.1.0.dist-info/METADATA,sha256=zW6nD-GCt2z5LtWPMmhydFTvFM3ddTMSMN2gfL8ipcw,7849
|
|
42
|
-
marqetive_lib-0.1.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
43
|
-
marqetive_lib-0.1.0.dist-info/RECORD,,
|
|
File without changes
|