d365fo-client 0.1.0__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.
- d365fo_client/__init__.py +305 -0
- d365fo_client/auth.py +93 -0
- d365fo_client/cli.py +700 -0
- d365fo_client/client.py +1454 -0
- d365fo_client/config.py +304 -0
- d365fo_client/crud.py +200 -0
- d365fo_client/exceptions.py +49 -0
- d365fo_client/labels.py +528 -0
- d365fo_client/main.py +502 -0
- d365fo_client/mcp/__init__.py +16 -0
- d365fo_client/mcp/client_manager.py +276 -0
- d365fo_client/mcp/main.py +98 -0
- d365fo_client/mcp/models.py +371 -0
- d365fo_client/mcp/prompts/__init__.py +43 -0
- d365fo_client/mcp/prompts/action_execution.py +480 -0
- d365fo_client/mcp/prompts/sequence_analysis.py +349 -0
- d365fo_client/mcp/resources/__init__.py +15 -0
- d365fo_client/mcp/resources/database_handler.py +555 -0
- d365fo_client/mcp/resources/entity_handler.py +176 -0
- d365fo_client/mcp/resources/environment_handler.py +132 -0
- d365fo_client/mcp/resources/metadata_handler.py +283 -0
- d365fo_client/mcp/resources/query_handler.py +135 -0
- d365fo_client/mcp/server.py +432 -0
- d365fo_client/mcp/tools/__init__.py +17 -0
- d365fo_client/mcp/tools/connection_tools.py +175 -0
- d365fo_client/mcp/tools/crud_tools.py +579 -0
- d365fo_client/mcp/tools/database_tools.py +813 -0
- d365fo_client/mcp/tools/label_tools.py +189 -0
- d365fo_client/mcp/tools/metadata_tools.py +766 -0
- d365fo_client/mcp/tools/profile_tools.py +706 -0
- d365fo_client/metadata_api.py +793 -0
- d365fo_client/metadata_v2/__init__.py +59 -0
- d365fo_client/metadata_v2/cache_v2.py +1372 -0
- d365fo_client/metadata_v2/database_v2.py +585 -0
- d365fo_client/metadata_v2/global_version_manager.py +573 -0
- d365fo_client/metadata_v2/search_engine_v2.py +423 -0
- d365fo_client/metadata_v2/sync_manager_v2.py +819 -0
- d365fo_client/metadata_v2/version_detector.py +439 -0
- d365fo_client/models.py +862 -0
- d365fo_client/output.py +181 -0
- d365fo_client/profile_manager.py +342 -0
- d365fo_client/profiles.py +178 -0
- d365fo_client/query.py +162 -0
- d365fo_client/session.py +60 -0
- d365fo_client/utils.py +196 -0
- d365fo_client-0.1.0.dist-info/METADATA +1084 -0
- d365fo_client-0.1.0.dist-info/RECORD +51 -0
- d365fo_client-0.1.0.dist-info/WHEEL +5 -0
- d365fo_client-0.1.0.dist-info/entry_points.txt +3 -0
- d365fo_client-0.1.0.dist-info/licenses/LICENSE +21 -0
- d365fo_client-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
"""
|
2
|
+
Enhanced metadata caching system v2 with module-based versioning.
|
3
|
+
|
4
|
+
This package provides the next-generation metadata caching system that:
|
5
|
+
- Uses GetInstalledModules for precise version detection
|
6
|
+
- Shares metadata across environments with identical module versions
|
7
|
+
- Provides intelligent sync with minimal network overhead
|
8
|
+
- Offers version-aware search and queries
|
9
|
+
|
10
|
+
Usage:
|
11
|
+
from d365fo_client.metadata_v2 import MetadataCacheV2, ModuleVersionDetector
|
12
|
+
|
13
|
+
cache = MetadataCacheV2(cache_dir, base_url)
|
14
|
+
await cache.initialize()
|
15
|
+
|
16
|
+
# Automatic version detection and smart sync
|
17
|
+
sync_needed, version_id = await cache.check_version_and_sync(fo_client)
|
18
|
+
if sync_needed:
|
19
|
+
sync_manager = SmartSyncManagerV2(cache)
|
20
|
+
result = await sync_manager.sync_metadata(fo_client, version_id)
|
21
|
+
|
22
|
+
# Version-aware queries
|
23
|
+
entities = await cache.get_data_entities(name_pattern="%customer%")
|
24
|
+
"""
|
25
|
+
|
26
|
+
from .cache_v2 import MetadataCacheV2
|
27
|
+
from .database_v2 import DatabaseSchemaV2, MetadataDatabaseV2
|
28
|
+
from .global_version_manager import GlobalVersionManager
|
29
|
+
from .sync_manager_v2 import SmartSyncManagerV2
|
30
|
+
|
31
|
+
# Core components (implemented)
|
32
|
+
from .version_detector import ModuleVersionDetector
|
33
|
+
|
34
|
+
# Search engine (Phase 2 - implemented)
|
35
|
+
from .search_engine_v2 import VersionAwareSearchEngine
|
36
|
+
|
37
|
+
# Future components (not yet implemented)
|
38
|
+
# from .migration_manager import MetadataMigrationManager # Phase 4
|
39
|
+
|
40
|
+
__all__ = [
|
41
|
+
# Implemented components
|
42
|
+
"MetadataCacheV2",
|
43
|
+
"ModuleVersionDetector",
|
44
|
+
"GlobalVersionManager",
|
45
|
+
"SmartSyncManagerV2",
|
46
|
+
"MetadataDatabaseV2",
|
47
|
+
"DatabaseSchemaV2",
|
48
|
+
"VersionAwareSearchEngine",
|
49
|
+
# Future components
|
50
|
+
# 'MetadataMigrationManager',
|
51
|
+
]
|
52
|
+
|
53
|
+
# Version compatibility
|
54
|
+
__version__ = "2.0.0-alpha"
|
55
|
+
__compatibility__ = {
|
56
|
+
"replaces": "metadata_cache.MetadataCache",
|
57
|
+
"migration_required": True,
|
58
|
+
"deprecation_timeline": "2025-Q4",
|
59
|
+
}
|