cjm-graph-plugin-sqlite 0.0.13__tar.gz → 0.0.14__tar.gz

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.
Files changed (18) hide show
  1. {cjm_graph_plugin_sqlite-0.0.13/cjm_graph_plugin_sqlite.egg-info → cjm_graph_plugin_sqlite-0.0.14}/PKG-INFO +2 -2
  2. cjm_graph_plugin_sqlite-0.0.14/cjm_graph_plugin_sqlite/__init__.py +1 -0
  3. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/cjm_graph_plugin_sqlite/_modidx.py +0 -2
  4. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/cjm_graph_plugin_sqlite/meta.py +3 -3
  5. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/cjm_graph_plugin_sqlite/plugin.py +4 -13
  6. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14/cjm_graph_plugin_sqlite.egg-info}/PKG-INFO +2 -2
  7. cjm_graph_plugin_sqlite-0.0.14/cjm_graph_plugin_sqlite.egg-info/requires.txt +1 -0
  8. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/pyproject.toml +1 -1
  9. cjm_graph_plugin_sqlite-0.0.13/cjm_graph_plugin_sqlite/__init__.py +0 -1
  10. cjm_graph_plugin_sqlite-0.0.13/cjm_graph_plugin_sqlite.egg-info/requires.txt +0 -1
  11. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/LICENSE +0 -0
  12. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/MANIFEST.in +0 -0
  13. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/README.md +0 -0
  14. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/cjm_graph_plugin_sqlite.egg-info/SOURCES.txt +0 -0
  15. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/cjm_graph_plugin_sqlite.egg-info/dependency_links.txt +0 -0
  16. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/cjm_graph_plugin_sqlite.egg-info/entry_points.txt +0 -0
  17. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/cjm_graph_plugin_sqlite.egg-info/top_level.txt +0 -0
  18. {cjm_graph_plugin_sqlite-0.0.13 → cjm_graph_plugin_sqlite-0.0.14}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cjm-graph-plugin-sqlite
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: A local, file-backed Context Graph worker for the cjm-plugin-system that implements graph storage, traversal, and querying using SQLite.
5
5
  Author-email: "Christian J. Mills" <9126128+cj-mills@users.noreply.github.com>
6
6
  License: Apache-2.0
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
15
15
  Requires-Python: >=3.12
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: cjm_graph_plugin_system>=0.0.14
18
+ Requires-Dist: cjm_graph_plugin_system>=0.0.15
19
19
  Dynamic: license-file
20
20
 
21
21
  # cjm-graph-plugin-sqlite
@@ -0,0 +1 @@
1
+ __version__ = "0.0.14"
@@ -61,8 +61,6 @@ d = { 'settings': { 'branch': 'main',
61
61
  'cjm_graph_plugin_sqlite/plugin.py'),
62
62
  'cjm_graph_plugin_sqlite.plugin.SQLiteGraphPlugin.add_nodes': ( 'plugin.html#sqlitegraphplugin.add_nodes',
63
63
  'cjm_graph_plugin_sqlite/plugin.py'),
64
- 'cjm_graph_plugin_sqlite.plugin.SQLiteGraphPlugin.cleanup': ( 'plugin.html#sqlitegraphplugin.cleanup',
65
- 'cjm_graph_plugin_sqlite/plugin.py'),
66
64
  'cjm_graph_plugin_sqlite.plugin.SQLiteGraphPlugin.delete_edges': ( 'plugin.html#sqlitegraphplugin.delete_edges',
67
65
  'cjm_graph_plugin_sqlite/plugin.py'),
68
66
  'cjm_graph_plugin_sqlite.plugin.SQLiteGraphPlugin.delete_nodes': ( 'plugin.html#sqlitegraphplugin.delete_nodes',
@@ -20,13 +20,13 @@ def get_plugin_metadata() -> Dict[str, Any]: # Plugin metadata for manifest gen
20
20
  base_path = os.path.dirname(os.path.dirname(sys.executable))
21
21
 
22
22
  # Use CJM config if available, else fallback to env-relative paths
23
- cjm_data_dir = os.environ.get("CJM_DATA_DIR")
23
+ cjm_plugin_data_dir = os.environ.get("CJM_PLUGIN_DATA_DIR")
24
24
 
25
25
  # Plugin data directory
26
26
  plugin_name = "cjm-graph-plugin-sqlite"
27
27
  package_name = plugin_name.replace("-", "_")
28
- if cjm_data_dir:
29
- data_dir = os.path.join(cjm_data_dir, plugin_name)
28
+ if cjm_plugin_data_dir:
29
+ data_dir = os.path.join(cjm_plugin_data_dir, plugin_name)
30
30
  else:
31
31
  data_dir = os.path.join(base_path, "data")
32
32
 
@@ -62,12 +62,12 @@ class SQLiteGraphPlugin(GraphPlugin):
62
62
  @property
63
63
  def name(self) -> str: # Plugin name identifier
64
64
  """Get the plugin name identifier."""
65
- return "sqlite_graph"
65
+ return get_plugin_metadata()["name"]
66
66
 
67
67
  @property
68
68
  def version(self) -> str: # Plugin version string
69
69
  """Get the plugin version string."""
70
- return "0.1.0"
70
+ return get_plugin_metadata()["version"]
71
71
 
72
72
  def get_current_config(self) -> Dict[str, Any]: # Current configuration as dictionary
73
73
  """Return current configuration state."""
@@ -231,13 +231,7 @@ class SQLiteGraphPlugin(GraphPlugin):
231
231
  via `collect_plugin_actions`). Replaces the prior hand-maintained
232
232
  if/elif chain.
233
233
  """
234
- for klass in type(self).__mro__:
235
- for attr in vars(klass).values():
236
- if getattr(attr, "_plugin_action", None) == action:
237
- return attr(self, **kwargs)
238
- raise PluginInputError( # SG-47: typed input-validation
239
- f"Unknown action: {action}", fields_invalid=["action"],
240
- )
234
+ return self.dispatch_to_action(action, **kwargs)
241
235
 
242
236
  @plugin_action("get_schema")
243
237
  def _action_get_schema(self, **kwargs) -> Dict[str, Any]:
@@ -799,10 +793,7 @@ class SQLiteGraphPlugin(GraphPlugin):
799
793
  con.close()
800
794
  return {"columns": columns, "rows": rows, "row_count": len(rows)}
801
795
 
802
- def cleanup(self) -> None:
803
- """Clean up resources."""
804
- # SQLite connections are managed via context managers, nothing to do here
805
- pass
796
+
806
797
 
807
798
 
808
799
  SQLiteGraphPlugin.supported_actions = collect_plugin_actions(SQLiteGraphPlugin)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cjm-graph-plugin-sqlite
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: A local, file-backed Context Graph worker for the cjm-plugin-system that implements graph storage, traversal, and querying using SQLite.
5
5
  Author-email: "Christian J. Mills" <9126128+cj-mills@users.noreply.github.com>
6
6
  License: Apache-2.0
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
15
15
  Requires-Python: >=3.12
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: cjm_graph_plugin_system>=0.0.14
18
+ Requires-Dist: cjm_graph_plugin_system>=0.0.15
19
19
  Dynamic: license-file
20
20
 
21
21
  # cjm-graph-plugin-sqlite
@@ -0,0 +1 @@
1
+ cjm_graph_plugin_system>=0.0.15
@@ -12,7 +12,7 @@ license = {text = "Apache-2.0"}
12
12
  authors = [{name = "Christian J. Mills", email = "9126128+cj-mills@users.noreply.github.com"}]
13
13
  keywords = ['nbdev', 'jupyter', 'notebook', 'python']
14
14
  classifiers = ["Natural Language :: English", "Intended Audience :: Developers", "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only"]
15
- dependencies = ['cjm_graph_plugin_system>=0.0.14']
15
+ dependencies = ['cjm_graph_plugin_system>=0.0.15']
16
16
 
17
17
  [project.urls]
18
18
  Repository = "https://github.com/cj-mills/cjm-graph-plugin-sqlite"
@@ -1 +0,0 @@
1
- __version__ = "0.0.13"
@@ -1 +0,0 @@
1
- cjm_graph_plugin_system>=0.0.14