poetry-plugin-ivcap 0.1.0__py3-none-any.whl → 0.2.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.
- poetry_plugin_ivcap/plugin.py +23 -3
- {poetry_plugin_ivcap-0.1.0.dist-info → poetry_plugin_ivcap-0.2.0.dist-info}/METADATA +39 -3
- poetry_plugin_ivcap-0.2.0.dist-info/RECORD +10 -0
- poetry_plugin_ivcap-0.1.0.dist-info/RECORD +0 -10
- {poetry_plugin_ivcap-0.1.0.dist-info → poetry_plugin_ivcap-0.2.0.dist-info}/AUTHORS.md +0 -0
- {poetry_plugin_ivcap-0.1.0.dist-info → poetry_plugin_ivcap-0.2.0.dist-info}/LICENSE +0 -0
- {poetry_plugin_ivcap-0.1.0.dist-info → poetry_plugin_ivcap-0.2.0.dist-info}/WHEEL +0 -0
- {poetry_plugin_ivcap-0.1.0.dist-info → poetry_plugin_ivcap-0.2.0.dist-info}/entry_points.txt +0 -0
poetry_plugin_ivcap/plugin.py
CHANGED
|
@@ -16,14 +16,32 @@ class IvcapCommand(Command):
|
|
|
16
16
|
name = "ivcap"
|
|
17
17
|
description = "IVCAP plugin `poetry ivcap <subcommand>`"
|
|
18
18
|
help = """\
|
|
19
|
+
|
|
19
20
|
IVCAP plugin
|
|
20
21
|
|
|
22
|
+
Supporting the development of services and tools for the IVCAP platform
|
|
23
|
+
|
|
21
24
|
Available subcommands:
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
run Run the service locally
|
|
26
|
+
docker-build Build the docker image for this service
|
|
27
|
+
docker-run Run the service's docker image locally
|
|
28
|
+
docker-publish Publish the service's docker image to IVCAP
|
|
29
|
+
service-register Register the service with IVCAP
|
|
30
|
+
create-service-id Create a unique service ID for the service
|
|
31
|
+
tool-register Register the service as an AI Tool with IVCAP
|
|
24
32
|
|
|
25
33
|
Example:
|
|
26
34
|
poetry ivcap run
|
|
35
|
+
|
|
36
|
+
Configurable optiosn in pyproject.toml:
|
|
37
|
+
|
|
38
|
+
[tool.poetry-plugin-ivcap]
|
|
39
|
+
service-file = "service.py" # The Python file that implements the service
|
|
40
|
+
service-file = "service.py"
|
|
41
|
+
service-id = "urn:ivcap:service:ac158a1f-dfb4-5dac-bf2e-9bf15e0f2cc7" # A unique identifier for the service
|
|
42
|
+
|
|
43
|
+
docker-build-template = "docker buildx build -t #DOCKER_NAME# ."
|
|
44
|
+
docker-run-template = "docker run -rm -p #PORT#:#PORT#"
|
|
27
45
|
"""
|
|
28
46
|
arguments = [
|
|
29
47
|
argument("subcommand", optional=True, description="Subcommand: run, deploy, etc.")
|
|
@@ -50,7 +68,9 @@ Example:
|
|
|
50
68
|
elif sub == "tool-register":
|
|
51
69
|
tool_register(data, self.line)
|
|
52
70
|
else:
|
|
53
|
-
|
|
71
|
+
if not (sub == None or sub == "help"):
|
|
72
|
+
self.line(f"<error>Unknown subcommand: {sub}</error>")
|
|
73
|
+
print(self.help)
|
|
54
74
|
|
|
55
75
|
def run_service(self, data):
|
|
56
76
|
config = data.get("tool", {}).get("poetry-plugin-ivcap", {})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: poetry-plugin-ivcap
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: A custom Poetry command for IVCAP deployments
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Max Ott
|
|
@@ -40,8 +40,44 @@ poetry self add poetry-plugin-ivcap
|
|
|
40
40
|
## Usage
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
poetry ivcap
|
|
44
|
-
poetry ivcap docker
|
|
43
|
+
poetry ivcap run
|
|
44
|
+
poetry ivcap docker-build
|
|
45
|
+
poetry ivcap docker-run
|
|
46
|
+
poetry ivcap docker-publish
|
|
47
|
+
poetry ivcap service-register
|
|
48
|
+
poetry ivcap create-service-id
|
|
49
|
+
poetry ivcap tool-register
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
To get help on the currently installed version
|
|
53
|
+
```
|
|
54
|
+
% poetry ivcap
|
|
55
|
+
|
|
56
|
+
IVCAP plugin
|
|
57
|
+
|
|
58
|
+
Supporting the development of services and tools for the IVCAP platform
|
|
59
|
+
|
|
60
|
+
Available subcommands:
|
|
61
|
+
run Run the service locally
|
|
62
|
+
docker-build Build the docker image for this service
|
|
63
|
+
docker-run Run the service's docker image locally
|
|
64
|
+
docker-publish Publish the service's docker image to IVCAP
|
|
65
|
+
service-register Register the service with IVCAP
|
|
66
|
+
create-service-id Create a unique service ID for the service
|
|
67
|
+
tool-register Register the service as an AI Tool with IVCAP
|
|
68
|
+
|
|
69
|
+
Example:
|
|
70
|
+
poetry ivcap run
|
|
71
|
+
|
|
72
|
+
Configurable optiosn in pyproject.toml:
|
|
73
|
+
|
|
74
|
+
[tool.poetry-plugin-ivcap]
|
|
75
|
+
service-file = "service.py" # The Python file that implements the service
|
|
76
|
+
service-file = "service.py"
|
|
77
|
+
service-id = "urn:ivcap:service:ac158a1f-dfb4-5dac-bf2e-9bf15e0f2cc7" # A unique identifier for the service
|
|
78
|
+
|
|
79
|
+
docker-build-template = "docker buildx build -t #DOCKER_NAME# ."
|
|
80
|
+
docker-run-template = "docker run -rm -p #PORT#:#PORT#"
|
|
45
81
|
```
|
|
46
82
|
|
|
47
83
|
## Development
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
poetry_plugin_ivcap/docker.py,sha256=ePxs6RdDm0znmGpnybd1O-N9Ef1WjUX5eqRV0xf7pKk,6609
|
|
2
|
+
poetry_plugin_ivcap/ivcap.py,sha256=wXy1IGiOiNA8r9tJIE0_hhamQn6J6pXzc0Zc33euO3k,5697
|
|
3
|
+
poetry_plugin_ivcap/plugin.py,sha256=hF-eTV6ZWuqIXcCLINxvQeCvRzZCXuaIVaHoSztmqIg,3357
|
|
4
|
+
poetry_plugin_ivcap/util.py,sha256=cAfofL50KZAcaghkDuizGMoW8qx3hkH3A0h9S9DraZc,2620
|
|
5
|
+
poetry_plugin_ivcap-0.2.0.dist-info/AUTHORS.md,sha256=s9xR4_HAHQgbNlj505LViebt5AtACQmhPf92aJvNYgg,88
|
|
6
|
+
poetry_plugin_ivcap-0.2.0.dist-info/LICENSE,sha256=dsQrDPPwW7iJs9pxahgJKDW8RNPf5FyXG70MFUlxcuk,1587
|
|
7
|
+
poetry_plugin_ivcap-0.2.0.dist-info/METADATA,sha256=iVRyAjK4St7FUKR0jgnYLf-97XI3NOaQCGjCgd2uxho,2931
|
|
8
|
+
poetry_plugin_ivcap-0.2.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
9
|
+
poetry_plugin_ivcap-0.2.0.dist-info/entry_points.txt,sha256=3xagEFBkGgrVe8WyjmhlHLr4JDEWPN_W4DwxnIBWbNY,74
|
|
10
|
+
poetry_plugin_ivcap-0.2.0.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
poetry_plugin_ivcap/docker.py,sha256=ePxs6RdDm0znmGpnybd1O-N9Ef1WjUX5eqRV0xf7pKk,6609
|
|
2
|
-
poetry_plugin_ivcap/ivcap.py,sha256=wXy1IGiOiNA8r9tJIE0_hhamQn6J6pXzc0Zc33euO3k,5697
|
|
3
|
-
poetry_plugin_ivcap/plugin.py,sha256=cOXF7ttBI883LC2fj7AUeDUF6w-tYI9l9Fi3FB23B-g,2432
|
|
4
|
-
poetry_plugin_ivcap/util.py,sha256=cAfofL50KZAcaghkDuizGMoW8qx3hkH3A0h9S9DraZc,2620
|
|
5
|
-
poetry_plugin_ivcap-0.1.0.dist-info/AUTHORS.md,sha256=s9xR4_HAHQgbNlj505LViebt5AtACQmhPf92aJvNYgg,88
|
|
6
|
-
poetry_plugin_ivcap-0.1.0.dist-info/LICENSE,sha256=dsQrDPPwW7iJs9pxahgJKDW8RNPf5FyXG70MFUlxcuk,1587
|
|
7
|
-
poetry_plugin_ivcap-0.1.0.dist-info/METADATA,sha256=qAsv8_FAyzJn2726zSRRniUmOWlgcywv21rFilKsqcY,1719
|
|
8
|
-
poetry_plugin_ivcap-0.1.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
9
|
-
poetry_plugin_ivcap-0.1.0.dist-info/entry_points.txt,sha256=3xagEFBkGgrVe8WyjmhlHLr4JDEWPN_W4DwxnIBWbNY,74
|
|
10
|
-
poetry_plugin_ivcap-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{poetry_plugin_ivcap-0.1.0.dist-info → poetry_plugin_ivcap-0.2.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|