vorpal-sdk 0.2.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.
Files changed (72) hide show
  1. vorpal_sdk/__init__.py +125 -0
  2. vorpal_sdk/api/__init__.py +0 -0
  3. vorpal_sdk/api/agent/__init__.py +0 -0
  4. vorpal_sdk/api/agent/agent_pb2.py +42 -0
  5. vorpal_sdk/api/agent/agent_pb2.pyi +31 -0
  6. vorpal_sdk/api/agent/agent_pb2_grpc.py +97 -0
  7. vorpal_sdk/api/archive/__init__.py +0 -0
  8. vorpal_sdk/api/archive/archive_pb2.py +45 -0
  9. vorpal_sdk/api/archive/archive_pb2.pyi +33 -0
  10. vorpal_sdk/api/archive/archive_pb2_grpc.py +183 -0
  11. vorpal_sdk/api/artifact/__init__.py +0 -0
  12. vorpal_sdk/api/artifact/artifact_pb2.py +61 -0
  13. vorpal_sdk/api/artifact/artifact_pb2.pyi +131 -0
  14. vorpal_sdk/api/artifact/artifact_pb2_grpc.py +226 -0
  15. vorpal_sdk/api/context/__init__.py +0 -0
  16. vorpal_sdk/api/context/context_pb2.py +38 -0
  17. vorpal_sdk/api/context/context_pb2.pyi +5 -0
  18. vorpal_sdk/api/context/context_pb2_grpc.py +140 -0
  19. vorpal_sdk/api/worker/__init__.py +0 -0
  20. vorpal_sdk/api/worker/worker_pb2.py +42 -0
  21. vorpal_sdk/api/worker/worker_pb2.pyi +26 -0
  22. vorpal_sdk/api/worker/worker_pb2_grpc.py +97 -0
  23. vorpal_sdk/artifact/__init__.py +778 -0
  24. vorpal_sdk/artifact/bun.py +70 -0
  25. vorpal_sdk/artifact/cargo.py +50 -0
  26. vorpal_sdk/artifact/clippy.py +50 -0
  27. vorpal_sdk/artifact/cpython.py +90 -0
  28. vorpal_sdk/artifact/crane.py +45 -0
  29. vorpal_sdk/artifact/gh.py +73 -0
  30. vorpal_sdk/artifact/git.py +52 -0
  31. vorpal_sdk/artifact/go.py +69 -0
  32. vorpal_sdk/artifact/goimports.py +40 -0
  33. vorpal_sdk/artifact/gopls.py +38 -0
  34. vorpal_sdk/artifact/grpcurl.py +59 -0
  35. vorpal_sdk/artifact/language/__init__.py +7 -0
  36. vorpal_sdk/artifact/language/go.py +251 -0
  37. vorpal_sdk/artifact/language/python.py +255 -0
  38. vorpal_sdk/artifact/language/rust.py +576 -0
  39. vorpal_sdk/artifact/language/typescript.py +187 -0
  40. vorpal_sdk/artifact/linux_debian.py +201 -0
  41. vorpal_sdk/artifact/linux_vorpal/__init__.py +5 -0
  42. vorpal_sdk/artifact/linux_vorpal/linux_vorpal.py +335 -0
  43. vorpal_sdk/artifact/linux_vorpal/script_setup.py +110 -0
  44. vorpal_sdk/artifact/linux_vorpal/script_stage_01.py +123 -0
  45. vorpal_sdk/artifact/linux_vorpal/script_stage_02.py +303 -0
  46. vorpal_sdk/artifact/linux_vorpal/script_stage_03.py +181 -0
  47. vorpal_sdk/artifact/linux_vorpal/script_stage_04.py +168 -0
  48. vorpal_sdk/artifact/linux_vorpal/script_stage_05.py +114 -0
  49. vorpal_sdk/artifact/linux_vorpal/scripts.py +17 -0
  50. vorpal_sdk/artifact/linux_vorpal/source.py +125 -0
  51. vorpal_sdk/artifact/nodejs.py +61 -0
  52. vorpal_sdk/artifact/pnpm.py +67 -0
  53. vorpal_sdk/artifact/protoc.py +63 -0
  54. vorpal_sdk/artifact/protoc_gen_go.py +63 -0
  55. vorpal_sdk/artifact/protoc_gen_go_grpc.py +47 -0
  56. vorpal_sdk/artifact/rsync.py +49 -0
  57. vorpal_sdk/artifact/rust_analyzer.py +50 -0
  58. vorpal_sdk/artifact/rust_src.py +46 -0
  59. vorpal_sdk/artifact/rust_std.py +50 -0
  60. vorpal_sdk/artifact/rust_toolchain.py +193 -0
  61. vorpal_sdk/artifact/rustc.py +50 -0
  62. vorpal_sdk/artifact/rustfmt.py +50 -0
  63. vorpal_sdk/artifact/staticcheck.py +49 -0
  64. vorpal_sdk/artifact/uv.py +71 -0
  65. vorpal_sdk/cli.py +136 -0
  66. vorpal_sdk/context.py +920 -0
  67. vorpal_sdk/step.py +247 -0
  68. vorpal_sdk/system.py +61 -0
  69. vorpal_sdk/vorpal.py +307 -0
  70. vorpal_sdk-0.2.2.dist-info/METADATA +62 -0
  71. vorpal_sdk-0.2.2.dist-info/RECORD +72 -0
  72. vorpal_sdk-0.2.2.dist-info/WHEEL +4 -0
vorpal_sdk/__init__.py ADDED
@@ -0,0 +1,125 @@
1
+ # Public surface of the vorpal_sdk package — mirrors sdk/typescript/src/index.ts.
2
+ #
3
+ # All tool/language re-exports live here (not in artifact/__init__.py): by the time
4
+ # this module runs, artifact/__init__.py is fully initialized, so the tool builders'
5
+ # `from vorpal_sdk.artifact import Artifact` resolves cleanly. Putting the re-exports
6
+ # inside artifact/__init__.py would create an init->tool->init cycle.
7
+ #
8
+ # Authors should import from this top-level namespace, not from submodules.
9
+
10
+ from importlib.metadata import version
11
+
12
+ from vorpal_sdk.api.artifact.artifact_pb2 import ArtifactStepSecret, ArtifactSystem
13
+ from vorpal_sdk.artifact import (
14
+ Argument,
15
+ Artifact,
16
+ ArtifactSource,
17
+ ArtifactStep,
18
+ DevelopmentEnvironment,
19
+ Job,
20
+ OciImage,
21
+ Process,
22
+ UserEnvironment,
23
+ get_env_key,
24
+ secrets_to_proto,
25
+ )
26
+ from vorpal_sdk.artifact.cpython import (
27
+ DEFAULT_PYTHON_VERSION,
28
+ Cpython,
29
+ cpython_target,
30
+ )
31
+ from vorpal_sdk.artifact.gh import Gh
32
+ from vorpal_sdk.artifact.go import GoBin
33
+ from vorpal_sdk.artifact.go import source_tools as go_source_tools
34
+ from vorpal_sdk.artifact.language.go import Go, GoDevelopmentEnvironment
35
+ from vorpal_sdk.artifact.language.python import (
36
+ Python,
37
+ PythonDevelopmentEnvironment,
38
+ )
39
+ from vorpal_sdk.artifact.language.rust import Rust, RustDevelopmentEnvironment
40
+ from vorpal_sdk.artifact.language.typescript import (
41
+ TypeScript,
42
+ TypeScriptDevelopmentEnvironment,
43
+ )
44
+ from vorpal_sdk.artifact.nodejs import NodeJS
45
+ from vorpal_sdk.artifact.protoc import Protoc
46
+ from vorpal_sdk.artifact.uv import DEFAULT_UV_VERSION, Uv
47
+ from vorpal_sdk.cli import StartCommand, parse_cli_args
48
+ from vorpal_sdk.context import (
49
+ ArtifactAlias,
50
+ ConfigContext,
51
+ format_artifact_alias,
52
+ parse_artifact_alias,
53
+ )
54
+ from vorpal_sdk.step import bash, bwrap, docker, shell
55
+ from vorpal_sdk.system import (
56
+ get_system,
57
+ get_system_default,
58
+ get_system_default_str,
59
+ get_system_str,
60
+ )
61
+
62
+ __version__ = version("vorpal-sdk")
63
+
64
+ __all__: list[str] = [
65
+ "__version__",
66
+ # Core artifact builders
67
+ "Artifact",
68
+ "ArtifactSource",
69
+ "ArtifactStep",
70
+ "Argument",
71
+ "Job",
72
+ "OciImage",
73
+ "Process",
74
+ "DevelopmentEnvironment",
75
+ "UserEnvironment",
76
+ "get_env_key",
77
+ "secrets_to_proto",
78
+ # Go distribution + shared Go-tools source helper
79
+ "GoBin",
80
+ "go_source_tools",
81
+ # CPython interpreter
82
+ "Cpython",
83
+ "DEFAULT_PYTHON_VERSION",
84
+ "cpython_target",
85
+ # uv toolchain
86
+ "Uv",
87
+ "DEFAULT_UV_VERSION",
88
+ # Node.js runtime
89
+ "NodeJS",
90
+ # GitHub CLI
91
+ "Gh",
92
+ # protoc
93
+ "Protoc",
94
+ # Step functions
95
+ "bash",
96
+ "bwrap",
97
+ "shell",
98
+ "docker",
99
+ # Language builders
100
+ "Go",
101
+ "Python",
102
+ "Rust",
103
+ "TypeScript",
104
+ # Development environment builders
105
+ "GoDevelopmentEnvironment",
106
+ "PythonDevelopmentEnvironment",
107
+ "RustDevelopmentEnvironment",
108
+ "TypeScriptDevelopmentEnvironment",
109
+ # System utilities
110
+ "get_system",
111
+ "get_system_default",
112
+ "get_system_default_str",
113
+ "get_system_str",
114
+ # Context
115
+ "ConfigContext",
116
+ "ArtifactAlias",
117
+ "format_artifact_alias",
118
+ "parse_artifact_alias",
119
+ # CLI
120
+ "parse_cli_args",
121
+ "StartCommand",
122
+ # Commonly used generated types
123
+ "ArtifactSystem",
124
+ "ArtifactStepSecret",
125
+ ]
File without changes
File without changes
@@ -0,0 +1,42 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: agent/agent.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'agent/agent.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from vorpal_sdk.api.artifact import artifact_pb2 as artifact_dot_artifact__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x61gent/agent.proto\x12\x0cvorpal.agent\x1a\x17\x61rtifact/artifact.proto\"\xa6\x01\n\x16PrepareArtifactRequest\x12\x17\n\x0f\x61rtifact_unlock\x18\x01 \x01(\x08\x12\x18\n\x10\x61rtifact_context\x18\x02 \x01(\t\x12\x1a\n\x12\x61rtifact_namespace\x18\x03 \x01(\t\x12\x10\n\x08registry\x18\x04 \x01(\t\x12+\n\x08\x61rtifact\x18\x05 \x01(\x0b\x32\x19.vorpal.artifact.Artifact\"\xaa\x01\n\x17PrepareArtifactResponse\x12\x1c\n\x0f\x61rtifact_digest\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x61rtifact_output\x18\x02 \x01(\tH\x01\x88\x01\x01\x12+\n\x08\x61rtifact\x18\x03 \x01(\x0b\x32\x19.vorpal.artifact.ArtifactB\x12\n\x10_artifact_digestB\x12\n\x10_artifact_output2r\n\x0c\x41gentService\x12\x62\n\x0fPrepareArtifact\x12$.vorpal.agent.PrepareArtifactRequest\x1a%.vorpal.agent.PrepareArtifactResponse\"\x00\x30\x01\x42\x33Z1github.com/ALT-F4-LLC/vorpal/sdk/go/pkg/api/agentb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'agent.agent_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'Z1github.com/ALT-F4-LLC/vorpal/sdk/go/pkg/api/agent'
36
+ _globals['_PREPAREARTIFACTREQUEST']._serialized_start=61
37
+ _globals['_PREPAREARTIFACTREQUEST']._serialized_end=227
38
+ _globals['_PREPAREARTIFACTRESPONSE']._serialized_start=230
39
+ _globals['_PREPAREARTIFACTRESPONSE']._serialized_end=400
40
+ _globals['_AGENTSERVICE']._serialized_start=402
41
+ _globals['_AGENTSERVICE']._serialized_end=516
42
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,31 @@
1
+ from vorpal_sdk.api.artifact import artifact_pb2 as _artifact_pb2
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import message as _message
4
+ from collections.abc import Mapping as _Mapping
5
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class PrepareArtifactRequest(_message.Message):
10
+ __slots__ = ("artifact_unlock", "artifact_context", "artifact_namespace", "registry", "artifact")
11
+ ARTIFACT_UNLOCK_FIELD_NUMBER: _ClassVar[int]
12
+ ARTIFACT_CONTEXT_FIELD_NUMBER: _ClassVar[int]
13
+ ARTIFACT_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
14
+ REGISTRY_FIELD_NUMBER: _ClassVar[int]
15
+ ARTIFACT_FIELD_NUMBER: _ClassVar[int]
16
+ artifact_unlock: bool
17
+ artifact_context: str
18
+ artifact_namespace: str
19
+ registry: str
20
+ artifact: _artifact_pb2.Artifact
21
+ def __init__(self, artifact_unlock: _Optional[bool] = ..., artifact_context: _Optional[str] = ..., artifact_namespace: _Optional[str] = ..., registry: _Optional[str] = ..., artifact: _Optional[_Union[_artifact_pb2.Artifact, _Mapping]] = ...) -> None: ...
22
+
23
+ class PrepareArtifactResponse(_message.Message):
24
+ __slots__ = ("artifact_digest", "artifact_output", "artifact")
25
+ ARTIFACT_DIGEST_FIELD_NUMBER: _ClassVar[int]
26
+ ARTIFACT_OUTPUT_FIELD_NUMBER: _ClassVar[int]
27
+ ARTIFACT_FIELD_NUMBER: _ClassVar[int]
28
+ artifact_digest: str
29
+ artifact_output: str
30
+ artifact: _artifact_pb2.Artifact
31
+ def __init__(self, artifact_digest: _Optional[str] = ..., artifact_output: _Optional[str] = ..., artifact: _Optional[_Union[_artifact_pb2.Artifact, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,97 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from vorpal_sdk.api.agent import agent_pb2 as agent_dot_agent__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.81.1'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in agent/agent_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class AgentServiceStub:
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.PrepareArtifact = channel.unary_stream(
38
+ '/vorpal.agent.AgentService/PrepareArtifact',
39
+ request_serializer=agent_dot_agent__pb2.PrepareArtifactRequest.SerializeToString,
40
+ response_deserializer=agent_dot_agent__pb2.PrepareArtifactResponse.FromString,
41
+ _registered_method=True)
42
+
43
+
44
+ class AgentServiceServicer:
45
+ """Missing associated documentation comment in .proto file."""
46
+
47
+ def PrepareArtifact(self, request, context):
48
+ """Missing associated documentation comment in .proto file."""
49
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
50
+ context.set_details('Method not implemented!')
51
+ raise NotImplementedError('Method not implemented!')
52
+
53
+
54
+ def add_AgentServiceServicer_to_server(servicer, server):
55
+ rpc_method_handlers = {
56
+ 'PrepareArtifact': grpc.unary_stream_rpc_method_handler(
57
+ servicer.PrepareArtifact,
58
+ request_deserializer=agent_dot_agent__pb2.PrepareArtifactRequest.FromString,
59
+ response_serializer=agent_dot_agent__pb2.PrepareArtifactResponse.SerializeToString,
60
+ ),
61
+ }
62
+ generic_handler = grpc.method_handlers_generic_handler(
63
+ 'vorpal.agent.AgentService', rpc_method_handlers)
64
+ server.add_generic_rpc_handlers((generic_handler,))
65
+ server.add_registered_method_handlers('vorpal.agent.AgentService', rpc_method_handlers)
66
+
67
+
68
+ # This class is part of an EXPERIMENTAL API.
69
+ class AgentService:
70
+ """Missing associated documentation comment in .proto file."""
71
+
72
+ @staticmethod
73
+ def PrepareArtifact(request,
74
+ target,
75
+ options=(),
76
+ channel_credentials=None,
77
+ call_credentials=None,
78
+ insecure=False,
79
+ compression=None,
80
+ wait_for_ready=None,
81
+ timeout=None,
82
+ metadata=None):
83
+ return grpc.experimental.unary_stream(
84
+ request,
85
+ target,
86
+ '/vorpal.agent.AgentService/PrepareArtifact',
87
+ agent_dot_agent__pb2.PrepareArtifactRequest.SerializeToString,
88
+ agent_dot_agent__pb2.PrepareArtifactResponse.FromString,
89
+ options,
90
+ channel_credentials,
91
+ insecure,
92
+ call_credentials,
93
+ compression,
94
+ wait_for_ready,
95
+ timeout,
96
+ metadata,
97
+ _registered_method=True)
File without changes
@@ -0,0 +1,45 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: archive/archive.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'archive/archive.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x61rchive/archive.proto\x12\x0evorpal.archive\"7\n\x12\x41rchivePullRequest\x12\x0e\n\x06\x64igest\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\"E\n\x12\x41rchivePushRequest\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x0e\n\x06\x64igest\x18\x02 \x01(\t\x12\x11\n\tnamespace\x18\x03 \x01(\t\"\x11\n\x0f\x41rchiveResponse\"#\n\x13\x41rchivePullResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x32\x80\x02\n\x0e\x41rchiveService\x12L\n\x05\x43heck\x12\".vorpal.archive.ArchivePullRequest\x1a\x1f.vorpal.archive.ArchiveResponse\x12Q\n\x04Pull\x12\".vorpal.archive.ArchivePullRequest\x1a#.vorpal.archive.ArchivePullResponse0\x01\x12M\n\x04Push\x12\".vorpal.archive.ArchivePushRequest\x1a\x1f.vorpal.archive.ArchiveResponse(\x01\x42\x35Z3github.com/ALT-F4-LLC/vorpal/sdk/go/pkg/api/archiveb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'archive.archive_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'Z3github.com/ALT-F4-LLC/vorpal/sdk/go/pkg/api/archive'
35
+ _globals['_ARCHIVEPULLREQUEST']._serialized_start=41
36
+ _globals['_ARCHIVEPULLREQUEST']._serialized_end=96
37
+ _globals['_ARCHIVEPUSHREQUEST']._serialized_start=98
38
+ _globals['_ARCHIVEPUSHREQUEST']._serialized_end=167
39
+ _globals['_ARCHIVERESPONSE']._serialized_start=169
40
+ _globals['_ARCHIVERESPONSE']._serialized_end=186
41
+ _globals['_ARCHIVEPULLRESPONSE']._serialized_start=188
42
+ _globals['_ARCHIVEPULLRESPONSE']._serialized_end=223
43
+ _globals['_ARCHIVESERVICE']._serialized_start=226
44
+ _globals['_ARCHIVESERVICE']._serialized_end=482
45
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,33 @@
1
+ from google.protobuf import descriptor as _descriptor
2
+ from google.protobuf import message as _message
3
+ from typing import ClassVar as _ClassVar, Optional as _Optional
4
+
5
+ DESCRIPTOR: _descriptor.FileDescriptor
6
+
7
+ class ArchivePullRequest(_message.Message):
8
+ __slots__ = ("digest", "namespace")
9
+ DIGEST_FIELD_NUMBER: _ClassVar[int]
10
+ NAMESPACE_FIELD_NUMBER: _ClassVar[int]
11
+ digest: str
12
+ namespace: str
13
+ def __init__(self, digest: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ...
14
+
15
+ class ArchivePushRequest(_message.Message):
16
+ __slots__ = ("data", "digest", "namespace")
17
+ DATA_FIELD_NUMBER: _ClassVar[int]
18
+ DIGEST_FIELD_NUMBER: _ClassVar[int]
19
+ NAMESPACE_FIELD_NUMBER: _ClassVar[int]
20
+ data: bytes
21
+ digest: str
22
+ namespace: str
23
+ def __init__(self, data: _Optional[bytes] = ..., digest: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ...
24
+
25
+ class ArchiveResponse(_message.Message):
26
+ __slots__ = ()
27
+ def __init__(self) -> None: ...
28
+
29
+ class ArchivePullResponse(_message.Message):
30
+ __slots__ = ("data",)
31
+ DATA_FIELD_NUMBER: _ClassVar[int]
32
+ data: bytes
33
+ def __init__(self, data: _Optional[bytes] = ...) -> None: ...
@@ -0,0 +1,183 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from vorpal_sdk.api.archive import archive_pb2 as archive_dot_archive__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.81.1'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in archive/archive_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class ArchiveServiceStub:
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.Check = channel.unary_unary(
38
+ '/vorpal.archive.ArchiveService/Check',
39
+ request_serializer=archive_dot_archive__pb2.ArchivePullRequest.SerializeToString,
40
+ response_deserializer=archive_dot_archive__pb2.ArchiveResponse.FromString,
41
+ _registered_method=True)
42
+ self.Pull = channel.unary_stream(
43
+ '/vorpal.archive.ArchiveService/Pull',
44
+ request_serializer=archive_dot_archive__pb2.ArchivePullRequest.SerializeToString,
45
+ response_deserializer=archive_dot_archive__pb2.ArchivePullResponse.FromString,
46
+ _registered_method=True)
47
+ self.Push = channel.stream_unary(
48
+ '/vorpal.archive.ArchiveService/Push',
49
+ request_serializer=archive_dot_archive__pb2.ArchivePushRequest.SerializeToString,
50
+ response_deserializer=archive_dot_archive__pb2.ArchiveResponse.FromString,
51
+ _registered_method=True)
52
+
53
+
54
+ class ArchiveServiceServicer:
55
+ """Missing associated documentation comment in .proto file."""
56
+
57
+ def Check(self, request, context):
58
+ """Missing associated documentation comment in .proto file."""
59
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
60
+ context.set_details('Method not implemented!')
61
+ raise NotImplementedError('Method not implemented!')
62
+
63
+ def Pull(self, request, context):
64
+ """Missing associated documentation comment in .proto file."""
65
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
66
+ context.set_details('Method not implemented!')
67
+ raise NotImplementedError('Method not implemented!')
68
+
69
+ def Push(self, request_iterator, context):
70
+ """Missing associated documentation comment in .proto file."""
71
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
72
+ context.set_details('Method not implemented!')
73
+ raise NotImplementedError('Method not implemented!')
74
+
75
+
76
+ def add_ArchiveServiceServicer_to_server(servicer, server):
77
+ rpc_method_handlers = {
78
+ 'Check': grpc.unary_unary_rpc_method_handler(
79
+ servicer.Check,
80
+ request_deserializer=archive_dot_archive__pb2.ArchivePullRequest.FromString,
81
+ response_serializer=archive_dot_archive__pb2.ArchiveResponse.SerializeToString,
82
+ ),
83
+ 'Pull': grpc.unary_stream_rpc_method_handler(
84
+ servicer.Pull,
85
+ request_deserializer=archive_dot_archive__pb2.ArchivePullRequest.FromString,
86
+ response_serializer=archive_dot_archive__pb2.ArchivePullResponse.SerializeToString,
87
+ ),
88
+ 'Push': grpc.stream_unary_rpc_method_handler(
89
+ servicer.Push,
90
+ request_deserializer=archive_dot_archive__pb2.ArchivePushRequest.FromString,
91
+ response_serializer=archive_dot_archive__pb2.ArchiveResponse.SerializeToString,
92
+ ),
93
+ }
94
+ generic_handler = grpc.method_handlers_generic_handler(
95
+ 'vorpal.archive.ArchiveService', rpc_method_handlers)
96
+ server.add_generic_rpc_handlers((generic_handler,))
97
+ server.add_registered_method_handlers('vorpal.archive.ArchiveService', rpc_method_handlers)
98
+
99
+
100
+ # This class is part of an EXPERIMENTAL API.
101
+ class ArchiveService:
102
+ """Missing associated documentation comment in .proto file."""
103
+
104
+ @staticmethod
105
+ def Check(request,
106
+ target,
107
+ options=(),
108
+ channel_credentials=None,
109
+ call_credentials=None,
110
+ insecure=False,
111
+ compression=None,
112
+ wait_for_ready=None,
113
+ timeout=None,
114
+ metadata=None):
115
+ return grpc.experimental.unary_unary(
116
+ request,
117
+ target,
118
+ '/vorpal.archive.ArchiveService/Check',
119
+ archive_dot_archive__pb2.ArchivePullRequest.SerializeToString,
120
+ archive_dot_archive__pb2.ArchiveResponse.FromString,
121
+ options,
122
+ channel_credentials,
123
+ insecure,
124
+ call_credentials,
125
+ compression,
126
+ wait_for_ready,
127
+ timeout,
128
+ metadata,
129
+ _registered_method=True)
130
+
131
+ @staticmethod
132
+ def Pull(request,
133
+ target,
134
+ options=(),
135
+ channel_credentials=None,
136
+ call_credentials=None,
137
+ insecure=False,
138
+ compression=None,
139
+ wait_for_ready=None,
140
+ timeout=None,
141
+ metadata=None):
142
+ return grpc.experimental.unary_stream(
143
+ request,
144
+ target,
145
+ '/vorpal.archive.ArchiveService/Pull',
146
+ archive_dot_archive__pb2.ArchivePullRequest.SerializeToString,
147
+ archive_dot_archive__pb2.ArchivePullResponse.FromString,
148
+ options,
149
+ channel_credentials,
150
+ insecure,
151
+ call_credentials,
152
+ compression,
153
+ wait_for_ready,
154
+ timeout,
155
+ metadata,
156
+ _registered_method=True)
157
+
158
+ @staticmethod
159
+ def Push(request_iterator,
160
+ target,
161
+ options=(),
162
+ channel_credentials=None,
163
+ call_credentials=None,
164
+ insecure=False,
165
+ compression=None,
166
+ wait_for_ready=None,
167
+ timeout=None,
168
+ metadata=None):
169
+ return grpc.experimental.stream_unary(
170
+ request_iterator,
171
+ target,
172
+ '/vorpal.archive.ArchiveService/Push',
173
+ archive_dot_archive__pb2.ArchivePushRequest.SerializeToString,
174
+ archive_dot_archive__pb2.ArchiveResponse.FromString,
175
+ options,
176
+ channel_credentials,
177
+ insecure,
178
+ call_credentials,
179
+ compression,
180
+ wait_for_ready,
181
+ timeout,
182
+ metadata,
183
+ _registered_method=True)
File without changes
@@ -0,0 +1,61 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: artifact/artifact.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'artifact/artifact.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x61rtifact/artifact.proto\x12\x0fvorpal.artifact\"p\n\x0e\x41rtifactSource\x12\x13\n\x06\x64igest\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08\x65xcludes\x18\x02 \x03(\t\x12\x10\n\x08includes\x18\x03 \x03(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0c\n\x04path\x18\x05 \x01(\tB\t\n\x07_digest\"1\n\x12\x41rtifactStepSecret\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xc8\x01\n\x0c\x41rtifactStep\x12\x17\n\nentrypoint\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06script\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x34\n\x07secrets\x18\x03 \x03(\x0b\x32#.vorpal.artifact.ArtifactStepSecret\x12\x11\n\targuments\x18\x04 \x03(\t\x12\x11\n\tartifacts\x18\x05 \x03(\t\x12\x14\n\x0c\x65nvironments\x18\x06 \x03(\tB\r\n\x0b_entrypointB\t\n\x07_script\"\xec\x01\n\x08\x41rtifact\x12/\n\x06target\x18\x01 \x01(\x0e\x32\x1f.vorpal.artifact.ArtifactSystem\x12\x30\n\x07sources\x18\x02 \x03(\x0b\x32\x1f.vorpal.artifact.ArtifactSource\x12,\n\x05steps\x18\x03 \x03(\x0b\x32\x1d.vorpal.artifact.ArtifactStep\x12\x30\n\x07systems\x18\x04 \x03(\x0e\x32\x1f.vorpal.artifact.ArtifactSystem\x12\x0f\n\x07\x61liases\x18\x05 \x03(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\"4\n\x0f\x41rtifactRequest\x12\x0e\n\x06\x64igest\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\"\"\n\x10\x41rtifactResponse\x12\x0e\n\x06\x64igest\x18\x01 \x01(\t\"6\n\x10\x41rtifactsRequest\x12\x0f\n\x07\x64igests\x18\x01 \x03(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\"$\n\x11\x41rtifactsResponse\x12\x0f\n\x07\x64igests\x18\x01 \x03(\t\"x\n\x17GetArtifactAliasRequest\x12/\n\x06system\x18\x01 \x01(\x0e\x32\x1f.vorpal.artifact.ArtifactSystem\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\"*\n\x18GetArtifactAliasResponse\x12\x0e\n\x06\x64igest\x18\x01 \x01(\t\"y\n\x14StoreArtifactRequest\x12+\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x19.vorpal.artifact.Artifact\x12\x18\n\x10\x61rtifact_aliases\x18\x02 \x03(\t\x12\x1a\n\x12\x61rtifact_namespace\x18\x03 \x01(\t*n\n\x0e\x41rtifactSystem\x12\x12\n\x0eUNKNOWN_SYSTEM\x10\x00\x12\x12\n\x0e\x41\x41RCH64_DARWIN\x10\x01\x12\x11\n\rAARCH64_LINUX\x10\x02\x12\x10\n\x0cX8664_DARWIN\x10\x03\x12\x0f\n\x0bX8664_LINUX\x10\x04\x32\xf8\x02\n\x0f\x41rtifactService\x12J\n\x0bGetArtifact\x12 .vorpal.artifact.ArtifactRequest\x1a\x19.vorpal.artifact.Artifact\x12g\n\x10GetArtifactAlias\x12(.vorpal.artifact.GetArtifactAliasRequest\x1a).vorpal.artifact.GetArtifactAliasResponse\x12U\n\x0cGetArtifacts\x12!.vorpal.artifact.ArtifactsRequest\x1a\".vorpal.artifact.ArtifactsResponse\x12Y\n\rStoreArtifact\x12%.vorpal.artifact.StoreArtifactRequest\x1a!.vorpal.artifact.ArtifactResponseB6Z4github.com/ALT-F4-LLC/vorpal/sdk/go/pkg/api/artifactb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'artifact.artifact_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'Z4github.com/ALT-F4-LLC/vorpal/sdk/go/pkg/api/artifact'
35
+ _globals['_ARTIFACTSYSTEM']._serialized_start=1124
36
+ _globals['_ARTIFACTSYSTEM']._serialized_end=1234
37
+ _globals['_ARTIFACTSOURCE']._serialized_start=44
38
+ _globals['_ARTIFACTSOURCE']._serialized_end=156
39
+ _globals['_ARTIFACTSTEPSECRET']._serialized_start=158
40
+ _globals['_ARTIFACTSTEPSECRET']._serialized_end=207
41
+ _globals['_ARTIFACTSTEP']._serialized_start=210
42
+ _globals['_ARTIFACTSTEP']._serialized_end=410
43
+ _globals['_ARTIFACT']._serialized_start=413
44
+ _globals['_ARTIFACT']._serialized_end=649
45
+ _globals['_ARTIFACTREQUEST']._serialized_start=651
46
+ _globals['_ARTIFACTREQUEST']._serialized_end=703
47
+ _globals['_ARTIFACTRESPONSE']._serialized_start=705
48
+ _globals['_ARTIFACTRESPONSE']._serialized_end=739
49
+ _globals['_ARTIFACTSREQUEST']._serialized_start=741
50
+ _globals['_ARTIFACTSREQUEST']._serialized_end=795
51
+ _globals['_ARTIFACTSRESPONSE']._serialized_start=797
52
+ _globals['_ARTIFACTSRESPONSE']._serialized_end=833
53
+ _globals['_GETARTIFACTALIASREQUEST']._serialized_start=835
54
+ _globals['_GETARTIFACTALIASREQUEST']._serialized_end=955
55
+ _globals['_GETARTIFACTALIASRESPONSE']._serialized_start=957
56
+ _globals['_GETARTIFACTALIASRESPONSE']._serialized_end=999
57
+ _globals['_STOREARTIFACTREQUEST']._serialized_start=1001
58
+ _globals['_STOREARTIFACTREQUEST']._serialized_end=1122
59
+ _globals['_ARTIFACTSERVICE']._serialized_start=1237
60
+ _globals['_ARTIFACTSERVICE']._serialized_end=1613
61
+ # @@protoc_insertion_point(module_scope)