contextbase-plugin-github 0.4.12__py3-none-any.whl → 0.5.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.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: contextbase-plugin-github
3
- Version: 0.4.12
3
+ Version: 0.5.0
4
4
  Summary: GitHub plugin for ContextBase (PyAirbyte-backed)
5
5
  Author: Alizain Feerasta
6
6
  Author-email: Alizain Feerasta <alizain.feerasta@gmail.com>
7
- Requires-Dist: contextbase-shared-plugins==0.4.12
7
+ Requires-Dist: contextbase-shared-plugins==0.5.0
8
8
  Requires-Dist: dagster==1.12.14
9
9
  Requires-Python: >=3.12, <3.13
@@ -0,0 +1,8 @@
1
+ plugin_github/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2
+ plugin_github/binding_config.py,sha256=nrNItI0zY74tEMjQrNL2DQUOPjXLqRqpsSGFLm0nAUI,1003
3
+ plugin_github/component.py,sha256=W9nmXVVoCmthwoDvIyq5-LiDXlZhEnurE1RoVcbqriY,3586
4
+ plugin_github/plugin.json,sha256=o02Wrx_g1yBE86CMdigGd_K9911APE1Gc4RpaGVucik,82
5
+ contextbase_plugin_github-0.5.0.dist-info/WHEEL,sha256=i9aSRDivn5iP9LaR1BLQX2GNAuriQWPsFwbbWygTX2k,81
6
+ contextbase_plugin_github-0.5.0.dist-info/entry_points.txt,sha256=zTWrrGovPs3ysw05gPHy-MbHr_fEBvZHIE1a2HrscBM,77
7
+ contextbase_plugin_github-0.5.0.dist-info/METADATA,sha256=VOEbCL8-b4U8GbkOtc8NKqjnoTZXkm2UxMBDqcDDNlc,324
8
+ contextbase_plugin_github-0.5.0.dist-info/RECORD,,
@@ -5,7 +5,7 @@ from shared_plugins.bindings import (
5
5
  parse_binding_config,
6
6
  require_api_key,
7
7
  )
8
- from shared_plugins.control_plane import ControlPlaneClient
8
+ from shared_plugins.base_platform import BasePlatformClient
9
9
  from shared_plugins.dlt import resolve_partition_binding
10
10
  from shared_plugins.naming import (
11
11
  dagster_airbyte_sync_asset_key,
@@ -20,7 +20,7 @@ from shared_plugins.pyairbyte import (
20
20
  require_pyairbyte_selected_stream_names,
21
21
  run_pyairbyte_sync,
22
22
  )
23
- from shared_types.api_key_auth import ApiKeyAuth
23
+ from base_client import BindingAuth_ApiKey
24
24
 
25
25
  from .binding_config import GithubBindingConfig
26
26
 
@@ -34,7 +34,7 @@ SOURCE_UPDATED_AT_FIELDS = {
34
34
 
35
35
  def _build_connector_config(
36
36
  cfg: GithubBindingConfig,
37
- auth: ApiKeyAuth,
37
+ auth: BindingAuth_ApiKey,
38
38
  ) -> dict[str, object]:
39
39
  return {
40
40
  **cfg.model_dump(mode="json", exclude_none=True),
@@ -64,14 +64,14 @@ class GithubSyncComponent(dg.Component):
64
64
  )
65
65
  def github_sync_asset(
66
66
  context: AssetExecutionContext,
67
- control_plane: dg.ResourceParam[ControlPlaneClient],
67
+ base_platform: dg.ResourceParam[BasePlatformClient],
68
68
  ):
69
69
  binding = resolve_partition_binding(
70
70
  context=context,
71
- control_plane=control_plane,
71
+ base_platform=base_platform,
72
72
  plugin_id=PLUGIN_ID,
73
73
  )
74
- binding_id = str(binding.binding_id)
74
+ binding_id = binding.binding_id
75
75
  cfg = parse_binding_config(binding, GithubBindingConfig)
76
76
  auth = require_api_key(binding)
77
77
  selected_stream_names = require_pyairbyte_selected_stream_names(binding)
@@ -1,8 +0,0 @@
1
- plugin_github/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2
- plugin_github/binding_config.py,sha256=nrNItI0zY74tEMjQrNL2DQUOPjXLqRqpsSGFLm0nAUI,1003
3
- plugin_github/component.py,sha256=bP832vZubX9aHAaqZ78mKXfMeN1LY_Ep6sGik0_Qml4,3589
4
- plugin_github/plugin.json,sha256=o02Wrx_g1yBE86CMdigGd_K9911APE1Gc4RpaGVucik,82
5
- contextbase_plugin_github-0.4.12.dist-info/WHEEL,sha256=i9aSRDivn5iP9LaR1BLQX2GNAuriQWPsFwbbWygTX2k,81
6
- contextbase_plugin_github-0.4.12.dist-info/entry_points.txt,sha256=zTWrrGovPs3ysw05gPHy-MbHr_fEBvZHIE1a2HrscBM,77
7
- contextbase_plugin_github-0.4.12.dist-info/METADATA,sha256=tnjz6LdRGvZnwT1uysO0ep4vvb9LCqvk8SLT4859lI4,326
8
- contextbase_plugin_github-0.4.12.dist-info/RECORD,,