Skip to content

Commit 2f279a8

Browse files
committed
v1.1 update to get all code into package
__init__.py files were updated to have all things in __all_ so they get included in the package
1 parent 758e417 commit 2f279a8

File tree

44 files changed

+275
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+275
-142
lines changed

python_alfresco_api/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
create_converter_pair
3434
)
3535

36+
# Import raw_clients to ensure they get packaged
37+
from . import raw_clients
38+
3639
__version__ = "1.0.0"
3740
__all__ = [
3841
# Factory & utilities
@@ -52,5 +55,8 @@
5255
# Conversion utilities
5356
"pydantic_to_attrs_dict",
5457
"attrs_to_pydantic",
55-
"create_converter_pair"
58+
"create_converter_pair",
59+
60+
# Raw clients
61+
"raw_clients"
5662
]

python_alfresco_api/clients/auth/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
# Import the main client class
1111
from .auth_client import AlfrescoAuthClient
1212

13-
# Export the client class
14-
__all__ = ['AlfrescoAuthClient', 'AuthResponse', 'AuthRequest']
13+
# Import models module itself to ensure it gets packaged
14+
from . import models
15+
16+
# Export the client class, models, and the models module itself
17+
__all__ = ['AlfrescoAuthClient', 'AuthResponse', 'AuthRequest', 'models']

python_alfresco_api/clients/auth/authentication/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"""
77

88
from .authentication_client import AuthenticationClient
9+
from . import models
910

10-
__all__ = ['AuthenticationClient']
11+
__all__ = ['AuthenticationClient', 'models']

python_alfresco_api/clients/core/__init__.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,17 @@
88
# Import the client class from separate file
99
from .core_client import AlfrescoCoreClient
1010

11-
__all__ = ['AlfrescoCoreClient']
11+
# Import all submodules to ensure they get packaged
12+
from . import actions, activities, audit, comments, content, downloads
13+
from . import favorites, groups, networks, nodes, people, preferences
14+
from . import probes, queries, ratings, renditions, shared_links, sites
15+
from . import tags, trashcan, versions, models
16+
17+
__all__ = [
18+
'AlfrescoCoreClient',
19+
# All lazy-loaded submodules and models
20+
'actions', 'activities', 'audit', 'comments', 'content', 'downloads',
21+
'favorites', 'groups', 'networks', 'nodes', 'people', 'preferences',
22+
'probes', 'queries', 'ratings', 'renditions', 'shared_links', 'sites',
23+
'tags', 'trashcan', 'versions', 'models'
24+
]

python_alfresco_api/clients/core/actions/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"""
77

88
from .actions_client import ActionsClient
9+
from . import models
910

10-
__all__ = ['ActionsClient']
11+
__all__ = ['ActionsClient', 'models']

python_alfresco_api/clients/core/activities/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"""
77

88
from .activities_client import ActivitiesClient
9+
from . import models
910

10-
__all__ = ['ActivitiesClient']
11+
__all__ = ['ActivitiesClient', 'models']

python_alfresco_api/clients/core/audit/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"""
77

88
from .audit_client import AuditClient
9+
from . import models
910

10-
__all__ = ['AuditClient']
11+
__all__ = ['AuditClient', 'models']

python_alfresco_api/clients/core/comments/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"""
77

88
from .comments_client import CommentsClient
9+
from . import models
910

10-
__all__ = ['CommentsClient']
11+
__all__ = ['CommentsClient', 'models']

python_alfresco_api/clients/core/content/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77

88
# Import from Level 3 (operation-specific models)
99
from .models import UploadResponse, DownloadResponse
10+
from . import models
1011

1112
# Import the main client class
1213
from .content_client import ContentClient
1314

1415
# Export the client class and models
15-
__all__ = ['ContentClient', 'UploadResponse', 'DownloadResponse']
16+
__all__ = ['ContentClient', 'UploadResponse', 'DownloadResponse', 'models']

python_alfresco_api/clients/core/core_client.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,4 +437,15 @@ def available(self) -> bool:
437437
def __repr__(self) -> str:
438438
"""String representation for debugging."""
439439
base_url = getattr(self._client_factory, 'base_url', 'unknown')
440-
return f"AlfrescoCoreClient(base_url='{base_url}')"
440+
return f"AlfrescoCoreClient(base_url='{base_url}')"
441+
442+
# Export the main client class and all lazy-loaded sub-modules
443+
# This ensures packaging systems include all dynamically accessed modules
444+
__all__ = [
445+
'AlfrescoCoreClient',
446+
# Lazy-loaded sub-clients (accessed via properties)
447+
'actions', 'activities', 'audit', 'comments', 'content', 'downloads',
448+
'favorites', 'groups', 'networks', 'nodes', 'people', 'preferences',
449+
'probes', 'queries', 'ratings', 'renditions', 'shared_links', 'sites',
450+
'tags', 'trashcan', 'versions'
451+
]

0 commit comments

Comments
 (0)