vorpal-sdk 0.2.2__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 (73) hide show
  1. vorpal_sdk-0.2.2/.gitignore +7 -0
  2. vorpal_sdk-0.2.2/PKG-INFO +62 -0
  3. vorpal_sdk-0.2.2/README.md +42 -0
  4. vorpal_sdk-0.2.2/pyproject.toml +67 -0
  5. vorpal_sdk-0.2.2/src/vorpal_sdk/__init__.py +125 -0
  6. vorpal_sdk-0.2.2/src/vorpal_sdk/api/__init__.py +0 -0
  7. vorpal_sdk-0.2.2/src/vorpal_sdk/api/agent/__init__.py +0 -0
  8. vorpal_sdk-0.2.2/src/vorpal_sdk/api/agent/agent_pb2.py +42 -0
  9. vorpal_sdk-0.2.2/src/vorpal_sdk/api/agent/agent_pb2.pyi +31 -0
  10. vorpal_sdk-0.2.2/src/vorpal_sdk/api/agent/agent_pb2_grpc.py +97 -0
  11. vorpal_sdk-0.2.2/src/vorpal_sdk/api/archive/__init__.py +0 -0
  12. vorpal_sdk-0.2.2/src/vorpal_sdk/api/archive/archive_pb2.py +45 -0
  13. vorpal_sdk-0.2.2/src/vorpal_sdk/api/archive/archive_pb2.pyi +33 -0
  14. vorpal_sdk-0.2.2/src/vorpal_sdk/api/archive/archive_pb2_grpc.py +183 -0
  15. vorpal_sdk-0.2.2/src/vorpal_sdk/api/artifact/__init__.py +0 -0
  16. vorpal_sdk-0.2.2/src/vorpal_sdk/api/artifact/artifact_pb2.py +61 -0
  17. vorpal_sdk-0.2.2/src/vorpal_sdk/api/artifact/artifact_pb2.pyi +131 -0
  18. vorpal_sdk-0.2.2/src/vorpal_sdk/api/artifact/artifact_pb2_grpc.py +226 -0
  19. vorpal_sdk-0.2.2/src/vorpal_sdk/api/context/__init__.py +0 -0
  20. vorpal_sdk-0.2.2/src/vorpal_sdk/api/context/context_pb2.py +38 -0
  21. vorpal_sdk-0.2.2/src/vorpal_sdk/api/context/context_pb2.pyi +5 -0
  22. vorpal_sdk-0.2.2/src/vorpal_sdk/api/context/context_pb2_grpc.py +140 -0
  23. vorpal_sdk-0.2.2/src/vorpal_sdk/api/worker/__init__.py +0 -0
  24. vorpal_sdk-0.2.2/src/vorpal_sdk/api/worker/worker_pb2.py +42 -0
  25. vorpal_sdk-0.2.2/src/vorpal_sdk/api/worker/worker_pb2.pyi +26 -0
  26. vorpal_sdk-0.2.2/src/vorpal_sdk/api/worker/worker_pb2_grpc.py +97 -0
  27. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/__init__.py +778 -0
  28. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/bun.py +70 -0
  29. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/cargo.py +50 -0
  30. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/clippy.py +50 -0
  31. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/cpython.py +90 -0
  32. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/crane.py +45 -0
  33. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/gh.py +73 -0
  34. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/git.py +52 -0
  35. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/go.py +69 -0
  36. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/goimports.py +40 -0
  37. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/gopls.py +38 -0
  38. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/grpcurl.py +59 -0
  39. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/language/__init__.py +7 -0
  40. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/language/go.py +251 -0
  41. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/language/python.py +255 -0
  42. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/language/rust.py +576 -0
  43. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/language/typescript.py +187 -0
  44. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_debian.py +201 -0
  45. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/__init__.py +5 -0
  46. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/linux_vorpal.py +335 -0
  47. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/script_setup.py +110 -0
  48. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/script_stage_01.py +123 -0
  49. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/script_stage_02.py +303 -0
  50. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/script_stage_03.py +181 -0
  51. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/script_stage_04.py +168 -0
  52. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/script_stage_05.py +114 -0
  53. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/scripts.py +17 -0
  54. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/linux_vorpal/source.py +125 -0
  55. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/nodejs.py +61 -0
  56. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/pnpm.py +67 -0
  57. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/protoc.py +63 -0
  58. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/protoc_gen_go.py +63 -0
  59. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/protoc_gen_go_grpc.py +47 -0
  60. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/rsync.py +49 -0
  61. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/rust_analyzer.py +50 -0
  62. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/rust_src.py +46 -0
  63. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/rust_std.py +50 -0
  64. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/rust_toolchain.py +193 -0
  65. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/rustc.py +50 -0
  66. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/rustfmt.py +50 -0
  67. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/staticcheck.py +49 -0
  68. vorpal_sdk-0.2.2/src/vorpal_sdk/artifact/uv.py +71 -0
  69. vorpal_sdk-0.2.2/src/vorpal_sdk/cli.py +136 -0
  70. vorpal_sdk-0.2.2/src/vorpal_sdk/context.py +920 -0
  71. vorpal_sdk-0.2.2/src/vorpal_sdk/step.py +247 -0
  72. vorpal_sdk-0.2.2/src/vorpal_sdk/system.py +61 -0
  73. vorpal_sdk-0.2.2/src/vorpal_sdk/vorpal.py +307 -0
@@ -0,0 +1,7 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ dist/
5
+ *.egg-info/
6
+ .mypy_cache/
7
+ .ruff_cache/
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: vorpal-sdk
3
+ Version: 0.2.2
4
+ Summary: Python SDK for building Vorpal artifacts.
5
+ Project-URL: Homepage, https://github.com/ALT-F4-LLC/vorpal/tree/main/sdk/python
6
+ Project-URL: Repository, https://github.com/ALT-F4-LLC/vorpal
7
+ Project-URL: Bug Tracker, https://github.com/ALT-F4-LLC/vorpal/issues
8
+ License: Apache-2.0
9
+ Keywords: sdk,vorpal
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Topic :: Software Development :: Build Tools
16
+ Requires-Python: <3.14,>=3.13
17
+ Requires-Dist: grpcio>=1.73.0
18
+ Requires-Dist: protobuf<7.0.0,>=6.33.5
19
+ Description-Content-Type: text/markdown
20
+
21
+ # vorpal-sdk
22
+
23
+ Python SDK for building Vorpal artifacts.
24
+
25
+ Mirrors [`@altf4llc/vorpal-sdk`](https://www.npmjs.com/package/@altf4llc/vorpal-sdk) (TypeScript) and the Go SDK (`github.com/ALT-F4-LLC/vorpal/sdk/go`) in structure and public surface. Authors use this SDK to define build artifacts in Python via a `Vorpal.py.toml` config.
26
+
27
+ ## Installation
28
+
29
+ ```
30
+ pip install vorpal-sdk
31
+ ```
32
+
33
+ Or with uv:
34
+
35
+ ```
36
+ uv add vorpal-sdk
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ ```python
42
+ # vorpal.py
43
+ from vorpal_sdk import ConfigContext, Artifact
44
+
45
+ # (Phase 5+) Build your artifact graph and hand it to ConfigContext.
46
+ ```
47
+
48
+ ## Requirements
49
+
50
+ - Python 3.13 (pinned via `.python-version` + `requires-python`)
51
+ - Runtime dependencies: `grpcio`, `protobuf`
52
+
53
+ ## Development
54
+
55
+ ```bash
56
+ uv sync --frozen
57
+ uv run pytest
58
+ ```
59
+
60
+ ## License
61
+
62
+ Apache-2.0 — see [LICENSE](https://github.com/ALT-F4-LLC/vorpal/blob/main/LICENSE).
@@ -0,0 +1,42 @@
1
+ # vorpal-sdk
2
+
3
+ Python SDK for building Vorpal artifacts.
4
+
5
+ Mirrors [`@altf4llc/vorpal-sdk`](https://www.npmjs.com/package/@altf4llc/vorpal-sdk) (TypeScript) and the Go SDK (`github.com/ALT-F4-LLC/vorpal/sdk/go`) in structure and public surface. Authors use this SDK to define build artifacts in Python via a `Vorpal.py.toml` config.
6
+
7
+ ## Installation
8
+
9
+ ```
10
+ pip install vorpal-sdk
11
+ ```
12
+
13
+ Or with uv:
14
+
15
+ ```
16
+ uv add vorpal-sdk
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```python
22
+ # vorpal.py
23
+ from vorpal_sdk import ConfigContext, Artifact
24
+
25
+ # (Phase 5+) Build your artifact graph and hand it to ConfigContext.
26
+ ```
27
+
28
+ ## Requirements
29
+
30
+ - Python 3.13 (pinned via `.python-version` + `requires-python`)
31
+ - Runtime dependencies: `grpcio`, `protobuf`
32
+
33
+ ## Development
34
+
35
+ ```bash
36
+ uv sync --frozen
37
+ uv run pytest
38
+ ```
39
+
40
+ ## License
41
+
42
+ Apache-2.0 — see [LICENSE](https://github.com/ALT-F4-LLC/vorpal/blob/main/LICENSE).
@@ -0,0 +1,67 @@
1
+ [project]
2
+ name = "vorpal-sdk"
3
+ version = "0.2.2"
4
+ description = "Python SDK for building Vorpal artifacts."
5
+ license = { text = "Apache-2.0" }
6
+ readme = "README.md"
7
+ requires-python = ">=3.13,<3.14"
8
+ keywords = ["vorpal", "sdk"]
9
+ classifiers = [
10
+ "Development Status :: 3 - Alpha",
11
+ "Intended Audience :: Developers",
12
+ "License :: OSI Approved :: Apache Software License",
13
+ "Programming Language :: Python :: 3",
14
+ "Programming Language :: Python :: 3.13",
15
+ "Topic :: Software Development :: Build Tools",
16
+ ]
17
+ dependencies = [
18
+ "grpcio>=1.73.0",
19
+ # Bound to protobuf major 6: grpcio-tools (the pinned codegen toolchain) emits
20
+ # major-6 gencode whose embedded runtime check rejects a major-7 runtime. Floor is
21
+ # the gencode version the pinned grpcio-tools protoc produces (6.33.5).
22
+ # Maintenance: bump this protobuf bound in lockstep with the grpcio-tools gencode major.
23
+ "protobuf>=6.33.5,<7.0.0",
24
+ ]
25
+
26
+ [project.urls]
27
+ Homepage = "https://github.com/ALT-F4-LLC/vorpal/tree/main/sdk/python"
28
+ Repository = "https://github.com/ALT-F4-LLC/vorpal"
29
+ "Bug Tracker" = "https://github.com/ALT-F4-LLC/vorpal/issues"
30
+
31
+ # Codegen toolchain (C5): pinned exact so the protoc bundled by grpcio-tools — and thus
32
+ # the generated api/ bindings — is reproducible. Dev-only; never a runtime dependency.
33
+ [dependency-groups]
34
+ dev = ["grpcio-tools==1.81.1"]
35
+
36
+ [build-system]
37
+ requires = ["hatchling"]
38
+ build-backend = "hatchling.build"
39
+
40
+ [tool.hatch.build.targets.wheel]
41
+ packages = ["src/vorpal_sdk"]
42
+
43
+ [tool.hatch.build.targets.sdist]
44
+ include = ["src/", "README.md", "pyproject.toml"]
45
+
46
+ [tool.uv]
47
+ index-url = "https://pypi.org/simple"
48
+
49
+ [tool.ruff]
50
+ line-length = 88
51
+ src = ["src"]
52
+
53
+ [tool.ruff.lint]
54
+ select = ["E", "F", "I"]
55
+
56
+ [tool.ruff.lint.per-file-ignores]
57
+ # These modules embed byte-exact bash script templates (Process/UserEnvironment/
58
+ # OciImage in the core package; the launcher/vendor/build scripts in the language
59
+ # builders) whose lines cannot be reflowed without changing the cross-SDK artifact
60
+ # digest, so line-length (E501) is not enforced for them.
61
+ "src/vorpal_sdk/artifact/__init__.py" = ["E501"]
62
+ "src/vorpal_sdk/artifact/language/*.py" = ["E501"]
63
+
64
+ [tool.mypy]
65
+ python_version = "3.13"
66
+ strict = true
67
+ mypy_path = "src"
@@ -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)
@@ -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: ...