toolchestrator 0.6.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Stevica Kuharski
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: toolchestrator
3
+ Version: 0.6.0
4
+ Summary: Connect a local tool to a Toolchestrator hub: registry, versioned schema/data sync, task serving, cross-tool reads/calls, and web-UI tunnelling.
5
+ Author-email: Stevica Kuharski <kstevica@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://toolchestrator.com
8
+ Project-URL: Connect guide, https://hub.toolchestrator.com/skill
9
+ Keywords: toolchestrator,orchestration,internal-tools,claude-code,ai-tools,automation
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Software Development :: Libraries
20
+ Classifier: Topic :: System :: Distributed Computing
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: requests>=2.25
25
+ Requires-Dist: websocket-client>=1.5
26
+ Dynamic: license-file
27
+
28
+ # toolchestrator
29
+
30
+ The Python client for [Toolchestrator](https://toolchestrator.com) — connect a small local
31
+ tool to your company's hub without moving it off the machine it runs on.
32
+
33
+ With this client a connected tool can:
34
+
35
+ - register itself in the company **registry** (name, author, the problem it solves);
36
+ - publish **versioned JSON-Schema** data models and **sync records** to the hub;
37
+ - **serve remote task actions** over an outbound long-poll (the hub never connects into your
38
+ machine);
39
+ - **read other tools' data** through the hub with filtered queries;
40
+ - **invoke** another tool's action and get the result back (`tc.call`);
41
+ - **expose its own local web UI** through the hub (`tc.serve_web`).
42
+
43
+ Works on Python 3.9+; depends only on `requests` and `websocket-client`.
44
+
45
+ ## Install
46
+
47
+ ```bash
48
+ pip install toolchestrator
49
+ ```
50
+
51
+ ## Quick start
52
+
53
+ ```python
54
+ from toolchestrator import Toolchestrator
55
+
56
+ # one-time registration, with a personal token from your hub's Settings page
57
+ tc = Toolchestrator.register(
58
+ "https://hub.example.com", # your company's hub URL
59
+ "tcu_...", # personal access token
60
+ "invoice-radar", "Invoice Radar",
61
+ description="Tracks vendor invoices and flags overdue ones.",
62
+ sharing_scope="private", # start private; widen deliberately
63
+ )
64
+
65
+ # afterwards, anywhere in the tool (loads .toolchestrator.json):
66
+ tc = Toolchestrator()
67
+ tc.sync_schema("invoice", invoice_schema)
68
+ tc.sync_data("invoice", rows, id_field="id")
69
+ tc.serve({"mark_paid": handle_mark_paid}) # execute tasks queued on the hub
70
+ ```
71
+
72
+ The easiest way to connect a tool is to let an AI coding agent do the wiring: point it at
73
+ your hub's connect guide (`<your-hub-url>/skill`) and ask it to *"connect this tool to
74
+ Toolchestrator"*. The hub URL always comes from you — the client never assumes one.
75
+
76
+ ## License
77
+
78
+ MIT © Stevica Kuharski
@@ -0,0 +1,51 @@
1
+ # toolchestrator
2
+
3
+ The Python client for [Toolchestrator](https://toolchestrator.com) — connect a small local
4
+ tool to your company's hub without moving it off the machine it runs on.
5
+
6
+ With this client a connected tool can:
7
+
8
+ - register itself in the company **registry** (name, author, the problem it solves);
9
+ - publish **versioned JSON-Schema** data models and **sync records** to the hub;
10
+ - **serve remote task actions** over an outbound long-poll (the hub never connects into your
11
+ machine);
12
+ - **read other tools' data** through the hub with filtered queries;
13
+ - **invoke** another tool's action and get the result back (`tc.call`);
14
+ - **expose its own local web UI** through the hub (`tc.serve_web`).
15
+
16
+ Works on Python 3.9+; depends only on `requests` and `websocket-client`.
17
+
18
+ ## Install
19
+
20
+ ```bash
21
+ pip install toolchestrator
22
+ ```
23
+
24
+ ## Quick start
25
+
26
+ ```python
27
+ from toolchestrator import Toolchestrator
28
+
29
+ # one-time registration, with a personal token from your hub's Settings page
30
+ tc = Toolchestrator.register(
31
+ "https://hub.example.com", # your company's hub URL
32
+ "tcu_...", # personal access token
33
+ "invoice-radar", "Invoice Radar",
34
+ description="Tracks vendor invoices and flags overdue ones.",
35
+ sharing_scope="private", # start private; widen deliberately
36
+ )
37
+
38
+ # afterwards, anywhere in the tool (loads .toolchestrator.json):
39
+ tc = Toolchestrator()
40
+ tc.sync_schema("invoice", invoice_schema)
41
+ tc.sync_data("invoice", rows, id_field="id")
42
+ tc.serve({"mark_paid": handle_mark_paid}) # execute tasks queued on the hub
43
+ ```
44
+
45
+ The easiest way to connect a tool is to let an AI coding agent do the wiring: point it at
46
+ your hub's connect guide (`<your-hub-url>/skill`) and ask it to *"connect this tool to
47
+ Toolchestrator"*. The hub URL always comes from you — the client never assumes one.
48
+
49
+ ## License
50
+
51
+ MIT © Stevica Kuharski
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "toolchestrator"
7
+ version = "0.6.0"
8
+ description = "Connect a local tool to a Toolchestrator hub: registry, versioned schema/data sync, task serving, cross-tool reads/calls, and web-UI tunnelling."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Stevica Kuharski", email = "kstevica@gmail.com" }]
14
+ keywords = [
15
+ "toolchestrator",
16
+ "orchestration",
17
+ "internal-tools",
18
+ "claude-code",
19
+ "ai-tools",
20
+ "automation",
21
+ ]
22
+ dependencies = ["requests>=2.25", "websocket-client>=1.5"]
23
+ classifiers = [
24
+ "Development Status :: 4 - Beta",
25
+ "Intended Audience :: Developers",
26
+ "Operating System :: OS Independent",
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3.9",
29
+ "Programming Language :: Python :: 3.10",
30
+ "Programming Language :: Python :: 3.11",
31
+ "Programming Language :: Python :: 3.12",
32
+ "Programming Language :: Python :: 3.13",
33
+ "Topic :: Software Development :: Libraries",
34
+ "Topic :: System :: Distributed Computing",
35
+ ]
36
+
37
+ [project.urls]
38
+ Homepage = "https://toolchestrator.com"
39
+ "Connect guide" = "https://hub.toolchestrator.com/skill"
40
+
41
+ [tool.setuptools]
42
+ packages = ["toolchestrator"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,39 @@
1
+ """Toolchestrator client library.
2
+
3
+ Connects a tool running on this machine to a Toolchestrator hub:
4
+
5
+ * **Register** the tool once with a personal access token (``tcu_...``); the
6
+ tool receives its own API key (``tck_...``) which is written to a local
7
+ ``.toolchestrator.json`` config file (gitignore it!).
8
+ * **Sync** the tool's data model schemas (versioned on the hub) and records.
9
+ * **Read** other visible tools' data (filtered/projected/ordered via
10
+ ``read``), **declare connections** with a purpose (``connect_to``),
11
+ **enqueue** tasks on them (or **call** an action synchronously and get
12
+ the result back), and **subscribe** to their data changes.
13
+ * **Serve** actions: a blocking long-poll loop that claims tasks queued for
14
+ this tool and runs local handler functions (``data_handlers`` route
15
+ ``data.changed`` notifications per source tool/model).
16
+ * **Serve a web UI** (``serve_web``): tunnel a local web app's full HTTP
17
+ through the hub so visible users reach it in their browser — this machine
18
+ still makes only outbound connections.
19
+
20
+ Quick start::
21
+
22
+ from toolchestrator import Toolchestrator
23
+
24
+ # one time, writes .toolchestrator.json in the current directory:
25
+ tc = Toolchestrator.register(
26
+ "http://localhost:8787", "tcu_...", "invoice-radar", "Invoice Radar",
27
+ description="Tracks vendor invoices", sharing_scope="private")
28
+
29
+ # every run afterwards:
30
+ tc = Toolchestrator() # loads .toolchestrator.json
31
+ tc.sync_schema("invoice", schema) # JSON Schema dict
32
+ tc.sync_data("invoice", rows, id_field="id")
33
+ tc.serve({"mark_paid": mark_paid}) # blocking task loop
34
+ """
35
+
36
+ from .client import Toolchestrator, ToolchestratorError
37
+
38
+ __version__ = "0.6.0"
39
+ __all__ = ["Toolchestrator", "ToolchestratorError", "__version__"]