databao-context-engine 0.1.1__py3-none-any.whl → 0.1.2__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.
@@ -67,22 +67,30 @@ def _load_builtin_datasource_plugins() -> list[BuildDatasourcePlugin]:
67
67
  from databao_context_engine.plugins.athena_db_plugin import AthenaDbPlugin
68
68
  from databao_context_engine.plugins.clickhouse_db_plugin import ClickhouseDbPlugin
69
69
  from databao_context_engine.plugins.duckdb_db_plugin import DuckDbPlugin
70
- from databao_context_engine.plugins.mssql_db_plugin import MSSQLDbPlugin
71
70
  from databao_context_engine.plugins.mysql_db_plugin import MySQLDbPlugin
72
71
  from databao_context_engine.plugins.parquet_plugin import ParquetPlugin
73
72
  from databao_context_engine.plugins.postgresql_db_plugin import PostgresqlDbPlugin
74
73
  from databao_context_engine.plugins.snowflake_db_plugin import SnowflakeDbPlugin
75
74
 
76
- return [
75
+ # optional plugins are added to the python environment via extras
76
+ optional_plugins: list[BuildDatasourcePlugin] = []
77
+ try:
78
+ from databao_context_engine.plugins.mssql_db_plugin import MSSQLDbPlugin
79
+
80
+ optional_plugins = [MSSQLDbPlugin()]
81
+ except ImportError:
82
+ pass
83
+
84
+ required_plugins: list[BuildDatasourcePlugin] = [
77
85
  AthenaDbPlugin(),
78
86
  ClickhouseDbPlugin(),
79
87
  DuckDbPlugin(),
80
- MSSQLDbPlugin(),
81
88
  MySQLDbPlugin(),
82
89
  PostgresqlDbPlugin(),
83
90
  SnowflakeDbPlugin(),
84
91
  ParquetPlugin(),
85
92
  ]
93
+ return required_plugins + optional_plugins
86
94
 
87
95
 
88
96
  def _load_external_plugins(exclude_file_plugins: bool = False) -> list[BuildPlugin]:
@@ -74,7 +74,7 @@ def get_datasource_descriptors(project_dir: Path, datasource_ids: list[Datasourc
74
74
  raise ValueError(f"src directory does not exist in {project_dir}")
75
75
 
76
76
  datasources: list[DatasourceDescriptor] = []
77
- for datasource_id in datasource_ids:
77
+ for datasource_id in sorted(datasource_ids, key=lambda id: str(id)):
78
78
  config_file_path = src.joinpath(datasource_id.relative_path_to_config_file())
79
79
  if not config_file_path.is_file():
80
80
  raise ValueError(f"Datasource config file not found: {config_file_path}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: databao-context-engine
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Add your description here
5
5
  Requires-Dist: click>=8.3.0
6
6
  Requires-Dist: duckdb>=1.4.3
@@ -11,13 +11,14 @@ Requires-Dist: clickhouse-connect>=0.10.0
11
11
  Requires-Dist: mcp>=1.23.3
12
12
  Requires-Dist: pyathena>=3.22.0
13
13
  Requires-Dist: snowflake-connector-python>=4.1.0
14
- Requires-Dist: mssql-python>=1.0.0
15
14
  Requires-Dist: pydantic>=2.12.4
16
15
  Requires-Dist: jinja2>=3.1.6
17
16
  Requires-Dist: asyncpg>=0.31.0
18
17
  Requires-Dist: asyncio>=4.0.0
19
18
  Requires-Dist: asyncpg-stubs>=0.31.1
19
+ Requires-Dist: mssql-python>=1.0.0 ; extra == 'mssql'
20
20
  Requires-Python: >=3.12
21
+ Provides-Extra: mssql
21
22
  Description-Content-Type: text/markdown
22
23
 
23
24
  [![official project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
@@ -73,7 +73,7 @@ databao_context_engine/plugins/duckdb_db_plugin.py,sha256=uumf9kXz6U-6QbX0i1ChHH
73
73
  databao_context_engine/plugins/mssql_db_plugin.py,sha256=YVor2QMDuL6XOLT8RFPOgs1Uhj1ZVYoFP5DApDJFPaE,446
74
74
  databao_context_engine/plugins/mysql_db_plugin.py,sha256=wy8HTiYuE8GTxfoc5gdrinEYv7NWHGrslzaAzruQecY,446
75
75
  databao_context_engine/plugins/parquet_plugin.py,sha256=qlpzQmiEwpb8Jma50HoIvljGV5ZiWkZU7GSiGV7M6kc,1181
76
- databao_context_engine/plugins/plugin_loader.py,sha256=iJyuizRQlFRmgPelLl3QQr71avlpbyxpiLoe5oPjEdw,3667
76
+ databao_context_engine/plugins/plugin_loader.py,sha256=_1I9npMhO26EFjBu8rOCcR13Q2qYuXUpMMcNLR-NJzQ,3952
77
77
  databao_context_engine/plugins/postgresql_db_plugin.py,sha256=PwLErcbqixsgz4Tqoift0uyerUqP_OaRzMaMAn0TE5A,486
78
78
  databao_context_engine/plugins/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
79
  databao_context_engine/plugins/resources/parquet_chunker.py,sha256=R9WCOBqpKRTVN6t5eeOm_mmnKBOxvjIiQ9zTc8vnUb4,848
@@ -81,7 +81,7 @@ databao_context_engine/plugins/resources/parquet_introspector.py,sha256=HJzfBEjz
81
81
  databao_context_engine/plugins/snowflake_db_plugin.py,sha256=ApiVE212DU9F4Zj1HPof6JQ66n4LUeYRRwhlTWRCxek,486
82
82
  databao_context_engine/plugins/unstructured_files_plugin.py,sha256=TWV3fluusizul2YEN-YZ-K-C3s5W-5B8353-bjP53L8,2424
83
83
  databao_context_engine/project/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
- databao_context_engine/project/datasource_discovery.py,sha256=Hdu_pu_Ah1xCQ-Y-DGcJAD14dklNOtW5hCq03KFSkSk,4983
84
+ databao_context_engine/project/datasource_discovery.py,sha256=uNMp5-HzmYQLzSZhc4IxtO8_ChDeyyZXdtZNGDYqII0,5015
85
85
  databao_context_engine/project/info.py,sha256=7cbNTxHfah-2nTcMa4wZt1M3lxgp9voiKMY7LWw4tGk,1155
86
86
  databao_context_engine/project/init_project.py,sha256=TAVLGX7WlIsLvd4KAsB5Qf0NOXZfXl_CknuxRzr_-5w,3736
87
87
  databao_context_engine/project/layout.py,sha256=Q7AyiBwPnks98IfDKXB8eCzdwnMbkg8x1wd_1xCjfVo,4291
@@ -129,7 +129,7 @@ databao_context_engine/system/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
129
129
  databao_context_engine/system/properties.py,sha256=RoEemdpD30blMyw5bRpzH0jjbS42TCODFdBpVD8jEG4,333
130
130
  databao_context_engine/templating/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
131
131
  databao_context_engine/templating/renderer.py,sha256=W2-0IGStAp6oxANmsKs_Z-UoIR6Gt_c4ILYFa3Hruo4,662
132
- databao_context_engine-0.1.1.dist-info/WHEEL,sha256=eycQt0QpYmJMLKpE3X9iDk8R04v2ZF0x82ogq-zP6bQ,79
133
- databao_context_engine-0.1.1.dist-info/entry_points.txt,sha256=5EeQJ1W8zEFh4HuF1bs2zBeoP408oiwuM9UrkJiurgI,138
134
- databao_context_engine-0.1.1.dist-info/METADATA,sha256=kYcEWFqJFbqu_5izIGF4_7m7JQ42p28p66usaO7ydLU,5915
135
- databao_context_engine-0.1.1.dist-info/RECORD,,
132
+ databao_context_engine-0.1.2.dist-info/WHEEL,sha256=eycQt0QpYmJMLKpE3X9iDk8R04v2ZF0x82ogq-zP6bQ,79
133
+ databao_context_engine-0.1.2.dist-info/entry_points.txt,sha256=5EeQJ1W8zEFh4HuF1bs2zBeoP408oiwuM9UrkJiurgI,138
134
+ databao_context_engine-0.1.2.dist-info/METADATA,sha256=66akrE--e-4DKjDOAGnuXFRn_fRNrkr5a187jMifHog,5956
135
+ databao_context_engine-0.1.2.dist-info/RECORD,,