marqetive-lib 0.1.3__py3-none-any.whl → 0.1.5__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 +54 -56
- marqetive/core/__init__.py +50 -1
- marqetive/{platforms → core}/base.py +35 -2
- marqetive/factory.py +380 -0
- marqetive/platforms/__init__.py +3 -3
- marqetive/platforms/instagram/__init__.py +1 -3
- marqetive/platforms/instagram/client.py +11 -7
- marqetive/platforms/instagram/exceptions.py +1 -1
- marqetive/platforms/instagram/media.py +1 -1
- marqetive/platforms/linkedin/__init__.py +1 -3
- marqetive/platforms/linkedin/client.py +8 -4
- marqetive/platforms/linkedin/exceptions.py +1 -1
- marqetive/platforms/linkedin/media.py +1 -1
- marqetive/platforms/tiktok/__init__.py +1 -3
- marqetive/platforms/tiktok/client.py +18 -9
- marqetive/platforms/tiktok/exceptions.py +1 -1
- marqetive/platforms/tiktok/media.py +2 -4
- marqetive/platforms/twitter/__init__.py +1 -3
- marqetive/platforms/twitter/client.py +7 -3
- marqetive/platforms/twitter/exceptions.py +1 -1
- marqetive/platforms/twitter/media.py +1 -1
- marqetive/utils/oauth.py +2 -2
- marqetive/utils/token_validator.py +1 -1
- {marqetive_lib-0.1.3.dist-info → marqetive_lib-0.1.5.dist-info}/METADATA +1 -1
- marqetive_lib-0.1.5.dist-info/RECORD +35 -0
- marqetive/core/account_factory.py +0 -212
- marqetive/core/base_manager.py +0 -303
- marqetive/core/progress.py +0 -291
- marqetive/core/registry.py +0 -257
- marqetive/platforms/instagram/factory.py +0 -106
- marqetive/platforms/instagram/manager.py +0 -112
- marqetive/platforms/linkedin/factory.py +0 -130
- marqetive/platforms/linkedin/manager.py +0 -119
- marqetive/platforms/tiktok/factory.py +0 -188
- marqetive/platforms/tiktok/manager.py +0 -115
- marqetive/platforms/twitter/factory.py +0 -150
- marqetive/platforms/twitter/manager.py +0 -121
- marqetive/registry_init.py +0 -68
- marqetive_lib-0.1.3.dist-info/RECORD +0 -47
- /marqetive/{platforms → core}/exceptions.py +0 -0
- /marqetive/{platforms → core}/models.py +0 -0
- {marqetive_lib-0.1.3.dist-info → marqetive_lib-0.1.5.dist-info}/WHEEL +0 -0
marqetive/registry_init.py
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"""Registry initialization for platform managers.
|
|
2
|
-
|
|
3
|
-
This module provides the initialization function that registers all available
|
|
4
|
-
platform managers with the global registry.
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
import logging
|
|
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.tiktok.manager import TikTokPostManager
|
|
13
|
-
from marqetive.platforms.twitter.manager import TwitterPostManager
|
|
14
|
-
|
|
15
|
-
logger = logging.getLogger(__name__)
|
|
16
|
-
|
|
17
|
-
_initialized = False
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
def initialize_platform_registry() -> None:
|
|
21
|
-
"""Initialize the platform registry with all available platforms.
|
|
22
|
-
|
|
23
|
-
This function registers all platform managers (Twitter, LinkedIn, Instagram, TikTok)
|
|
24
|
-
with the global registry. It should be called once at application startup.
|
|
25
|
-
|
|
26
|
-
This function is idempotent - calling it multiple times is safe.
|
|
27
|
-
|
|
28
|
-
Example:
|
|
29
|
-
>>> from marqetive import initialize_platform_registry
|
|
30
|
-
>>> initialize_platform_registry()
|
|
31
|
-
>>> # Now you can use get_manager_for_platform()
|
|
32
|
-
>>> from marqetive import get_manager_for_platform
|
|
33
|
-
>>> manager = get_manager_for_platform("twitter")
|
|
34
|
-
"""
|
|
35
|
-
global _initialized
|
|
36
|
-
|
|
37
|
-
if _initialized:
|
|
38
|
-
logger.debug("Platform registry already initialized")
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
logger.info("Initializing platform registry...")
|
|
42
|
-
|
|
43
|
-
# Register all platform managers
|
|
44
|
-
register_platform("twitter", TwitterPostManager)
|
|
45
|
-
register_platform("linkedin", LinkedInPostManager)
|
|
46
|
-
register_platform("instagram", InstagramPostManager)
|
|
47
|
-
register_platform("tiktok", TikTokPostManager)
|
|
48
|
-
|
|
49
|
-
_initialized = True
|
|
50
|
-
logger.info("Platform registry initialized with 4 platforms")
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
def is_registry_initialized() -> bool:
|
|
54
|
-
"""Check if registry has been initialized.
|
|
55
|
-
|
|
56
|
-
Returns:
|
|
57
|
-
True if initialized, False otherwise.
|
|
58
|
-
"""
|
|
59
|
-
return _initialized
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
def reset_registry() -> None:
|
|
63
|
-
"""Reset the initialization flag.
|
|
64
|
-
|
|
65
|
-
This is mainly useful for testing. It allows re-initialization of the registry.
|
|
66
|
-
"""
|
|
67
|
-
global _initialized
|
|
68
|
-
_initialized = False
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
marqetive/__init__.py,sha256=HqOJ0c2W_U31NelSR0-5CfzS8blJofRteSTudgr1Qwg,3090
|
|
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=2_FoNpqaRglsWg10i5RTbyDg_kRQKhgWjYs6iDdFxLg,3210
|
|
6
|
-
marqetive/core/progress.py,sha256=5Vyksf8YfQUVRudwDEuegcxoc0js5qbHM2SFZ6VLxHM,8593
|
|
7
|
-
marqetive/core/registry.py,sha256=oqf32OJr9FDwmL5d5-UbDSV_-ICTI7vTYSrjagGp2r4,8072
|
|
8
|
-
marqetive/platforms/__init__.py,sha256=jMzSg8fI5nCO20aTNaoF6cQ6RIZoxzVhEDvq3ZpAbXc,1327
|
|
9
|
-
marqetive/platforms/base.py,sha256=y37RkSb3AGHtU-JmjxlUgbwlqG2MmF7w4MI3FATHoG4,11945
|
|
10
|
-
marqetive/platforms/exceptions.py,sha256=Xyj0bzNiZm5VTErmzXgVW8T6IQnOpF92-HJiKPKjIio,7076
|
|
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=W_yOuRWItWSn82n8vXRNN_ScdNkzY1De2qqXaVN2RGU,10974
|
|
24
|
-
marqetive/platforms/tiktok/__init__.py,sha256=3S9ItK1Md7Qts21iNJQ5nvvkz7vHeu3ZUR2ZouoWz64,301
|
|
25
|
-
marqetive/platforms/tiktok/client.py,sha256=lLTkUsQ-KEOyrBQXPeA3cK_enNqJVIgffZ99WHz9QJg,16783
|
|
26
|
-
marqetive/platforms/tiktok/exceptions.py,sha256=yOjkZgHyo_t9Chrhws_2n-2sbiDDkCUBv5fdW2nfiHI,10129
|
|
27
|
-
marqetive/platforms/tiktok/factory.py,sha256=U9myKTyPD1HEy3UShDeb1irP0PDZEMamLcbtHxjVtvQ,6744
|
|
28
|
-
marqetive/platforms/tiktok/manager.py,sha256=HMem8to9WsKlQQBm6tiAmcJhoAeM6nwq7YAIvcfKnuY,4113
|
|
29
|
-
marqetive/platforms/tiktok/media.py,sha256=3XjBrHQ7ahB6jVISNmYLgBR3p9N2RKiQRRdqCu_Dh2U,23785
|
|
30
|
-
marqetive/platforms/twitter/__init__.py,sha256=zDEslH3Y6zCnFlYaoW77bkO7j75OmABjqMf1BGh8P5M,313
|
|
31
|
-
marqetive/platforms/twitter/client.py,sha256=1jZz_ft77R0LqJbS6Po0HUErhGF_vRBGsoz7ExOb4L0,19379
|
|
32
|
-
marqetive/platforms/twitter/exceptions.py,sha256=aKrjUZL07KWQ8hatj5-U7UfnSTl-n8DnTgGGigYCrIY,8931
|
|
33
|
-
marqetive/platforms/twitter/factory.py,sha256=EZneqxoGg0TO952C4AHjv_HjyZ1ZQPR_jWPYYtQjF8E,5221
|
|
34
|
-
marqetive/platforms/twitter/manager.py,sha256=QlPrVniPbJdlt39iMi_hmDGpaMkPT7pNjjIYUre2byY,4092
|
|
35
|
-
marqetive/platforms/twitter/media.py,sha256=16atvKwSukvK_YC_gIm2qsl3pmidWEBAwIfJBPG9HQo,24968
|
|
36
|
-
marqetive/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
-
marqetive/registry_init.py,sha256=TFzkqd7ArW-pqp9GYGDRfNDQkvs3YUbUwakvX95IDKw,2151
|
|
38
|
-
marqetive/utils/__init__.py,sha256=bSrNajbxYBSKQayrPviLz8JeGjplnyK8y_NGDtgb7yQ,977
|
|
39
|
-
marqetive/utils/file_handlers.py,sha256=4TP5kmWofNTSZmlS683CM1UYP83WvRd_NubMbqtXv-g,12568
|
|
40
|
-
marqetive/utils/helpers.py,sha256=8-ljhL47SremKcQO2GF8DIHOPODEv1rSioVNuSPCbec,2634
|
|
41
|
-
marqetive/utils/media.py,sha256=Rvxw9XKU65n-z4G1bEihG3wXZBmjSDZUqClfjGFrg6k,12013
|
|
42
|
-
marqetive/utils/oauth.py,sha256=NjHh3o5iKlXMJmzSFJHq-pn5yn82DvmpB7DMTJT0ht8,12105
|
|
43
|
-
marqetive/utils/retry.py,sha256=lAniJLMNWp9XsHrvU0XBNifpNEjfde4MGfd5hlFTPfA,7636
|
|
44
|
-
marqetive/utils/token_validator.py,sha256=pNimFr_FNJLcYGV5oADhoBjflKfEbLQ3Epwnwg_nTbg,6703
|
|
45
|
-
marqetive_lib-0.1.3.dist-info/METADATA,sha256=9tmxgEtndJ5VUnX0hjAuLAqbAO8Wx0RhdI8joy4pbSY,7798
|
|
46
|
-
marqetive_lib-0.1.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
47
|
-
marqetive_lib-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|