runtimeconditions-nats-service 0.2.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 @@
1
+ include runtimeconditions.file-manifest.yaml
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: runtimeconditions-nats-service
3
+ Version: 0.2.0
4
+ Project-URL: Repository, https://github.com/runtimeconditions/extensions
5
+ Requires-Python: >=3.12
@@ -0,0 +1,21 @@
1
+ # Code generated by runtimeconditions-binding-emitter 0.1.0 from model 1c28f480025bb1bdfd443688790354e3da60f615707da0b78000eeb129dd43ff; DO NOT EDIT.
2
+ [build-system]
3
+ requires = ["setuptools==84.0.0"]
4
+ build-backend = "setuptools.build_meta"
5
+
6
+ [project]
7
+ name = "runtimeconditions-nats-service"
8
+ version = "0.2.0"
9
+ requires-python = ">=3.12"
10
+ dependencies = [
11
+ ]
12
+
13
+ [project.urls]
14
+ Repository = "https://github.com/runtimeconditions/extensions"
15
+
16
+ [tool.setuptools.packages.find]
17
+ where = ["src"]
18
+ include = ["runtimeconditions_nats_service", "runtimeconditions_nats_service.*"]
19
+
20
+ [tool.setuptools.package-data]
21
+ "runtimeconditions_nats_service" = ["py.typed", "runtimeconditions.bindings.yaml", "runtimeconditions.binding-model.yaml", "runtimeconditions.extension.yaml", "runtimeconditions.binding-release.yaml"]
@@ -0,0 +1,12 @@
1
+ apiVersion: runtimeconditions.io/file-manifest/v1alpha1
2
+ kind: RuntimeConditionsFileManifest
3
+ files:
4
+ MANIFEST.in: d51e89c4c7c5e16c06d543c7aac32df945dd4f536e578b6ad089b68a6f489fca
5
+ pyproject.toml: aaf60cd1c89e83e265ab4d13bfdafa247a44adcc319def93d7d177a78394e01e
6
+ src/runtimeconditions_nats_service/__init__.py: 283a5fb5873aacc23b8d440e79ff3e9e233d950bd051cd8cf761ff41aa70c33f
7
+ src/runtimeconditions_nats_service/bindings.py: 236cff2b93e0f76bacf03c73496670648cbf3b7ce8a533eddd80905a21b78359
8
+ src/runtimeconditions_nats_service/py.typed: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
9
+ src/runtimeconditions_nats_service/runtimeconditions.binding-model.yaml: 961e90a26efe9deb880ceb35c7e625e48f9db8dda2f1c1126eb921ab7265cdec
10
+ src/runtimeconditions_nats_service/runtimeconditions.binding-release.yaml: 8230e50728e18800a65953727eb156d6e27f31dc967238111e6b7ec9bea465a7
11
+ src/runtimeconditions_nats_service/runtimeconditions.bindings.yaml: 61eea9daaa5fb4fb4f300fe6aae370b7df6982bc9f4f3efab62115bcabc11e0a
12
+ src/runtimeconditions_nats_service/runtimeconditions.extension.yaml: 59ef2d517207397d8a533d8b422932318ec4055047755140bceba58231ee82d0
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,44 @@
1
+ # Code generated by runtimeconditions-binding-emitter 0.1.0 from model 1c28f480025bb1bdfd443688790354e3da60f615707da0b78000eeb129dd43ff; DO NOT EDIT.
2
+ from __future__ import annotations
3
+
4
+ from .bindings import (
5
+ Action,
6
+ Alternatives,
7
+ AlternativesItem,
8
+ AlternativesItemEnv,
9
+ AlternativesItemEnvItem,
10
+ AlternativesItemEnvItemProperty,
11
+ Configuration,
12
+ ConfigurationEnv,
13
+ ConfigurationEnvItem,
14
+ ConfigurationEnvItemProperty,
15
+ Declaration,
16
+ NatsServiceField,
17
+ Operations,
18
+ OperationsItem,
19
+ Resource,
20
+ Service,
21
+ Subjects,
22
+ nats_service,
23
+ )
24
+
25
+ __all__ = [
26
+ "Action",
27
+ "Alternatives",
28
+ "AlternativesItem",
29
+ "AlternativesItemEnv",
30
+ "AlternativesItemEnvItem",
31
+ "AlternativesItemEnvItemProperty",
32
+ "Configuration",
33
+ "ConfigurationEnv",
34
+ "ConfigurationEnvItem",
35
+ "ConfigurationEnvItemProperty",
36
+ "Declaration",
37
+ "NatsServiceField",
38
+ "Operations",
39
+ "OperationsItem",
40
+ "Resource",
41
+ "Service",
42
+ "Subjects",
43
+ "nats_service",
44
+ ]
@@ -0,0 +1,155 @@
1
+ # Code generated by runtimeconditions-binding-emitter 0.1.0 from model 1c28f480025bb1bdfd443688790354e3da60f615707da0b78000eeb129dd43ff; DO NOT EDIT.
2
+ from __future__ import annotations
3
+
4
+ from dataclasses import dataclass
5
+ from enum import StrEnum
6
+ from typing import Protocol, Sequence, TypeAlias
7
+
8
+
9
+ @dataclass(frozen=True, kw_only=True)
10
+ class Declaration:
11
+ pass
12
+
13
+
14
+ class NatsServiceField(Protocol):
15
+ def rc_marker_33f98e0ff832e733(self) -> None: ...
16
+
17
+
18
+ class Action(StrEnum):
19
+ CONNECT = "connect"
20
+ CONSUME = "consume"
21
+ CREATE = "create"
22
+ DELETE = "delete"
23
+ INSPECT = "inspect"
24
+ PUBLISH = "publish"
25
+ READ = "read"
26
+ REQUEST = "request"
27
+ SUBSCRIBE = "subscribe"
28
+ UPDATE = "update"
29
+ WATCH = "watch"
30
+ WRITE = "write"
31
+
32
+
33
+ Alternatives: TypeAlias = "Sequence[AlternativesItem]"
34
+
35
+
36
+ @dataclass(frozen=True, kw_only=True)
37
+ class AlternativesItem:
38
+ env: AlternativesItemEnv
39
+
40
+
41
+ AlternativesItemEnv: TypeAlias = "Sequence[AlternativesItemEnvItem]"
42
+
43
+
44
+ @dataclass(frozen=True, kw_only=True)
45
+ class AlternativesItemEnvItem:
46
+ name: str
47
+ property: AlternativesItemEnvItemProperty
48
+ required: bool | None = None
49
+ sensitive: bool | None = None
50
+
51
+
52
+ class AlternativesItemEnvItemProperty(StrEnum):
53
+ CONSUMER = "consumer"
54
+ HOSTNAME = "hostname"
55
+ PASSWORD = "password"
56
+ PORT = "port"
57
+ STREAM = "stream"
58
+ SUBJECT = "subject"
59
+ TLS = "tls"
60
+ TOKEN = "token"
61
+ URL = "url"
62
+ USERNAME = "username"
63
+
64
+
65
+ @dataclass(frozen=True, kw_only=True)
66
+ class Configuration:
67
+ alternatives: Alternatives | None = None
68
+ env: ConfigurationEnv | None = None
69
+
70
+ def rc_marker_33f98e0ff832e733(self) -> None:
71
+ return None
72
+
73
+
74
+ ConfigurationEnv: TypeAlias = "Sequence[ConfigurationEnvItem]"
75
+
76
+
77
+ @dataclass(frozen=True, kw_only=True)
78
+ class ConfigurationEnvItem:
79
+ name: str
80
+ property: ConfigurationEnvItemProperty
81
+ required: bool | None = None
82
+ sensitive: bool | None = None
83
+
84
+
85
+ class ConfigurationEnvItemProperty(StrEnum):
86
+ CONSUMER = "consumer"
87
+ HOSTNAME = "hostname"
88
+ PASSWORD = "password"
89
+ PORT = "port"
90
+ STREAM = "stream"
91
+ SUBJECT = "subject"
92
+ TLS = "tls"
93
+ TOKEN = "token"
94
+ URL = "url"
95
+ USERNAME = "username"
96
+
97
+
98
+ Operations: TypeAlias = "Sequence[OperationsItem]"
99
+
100
+
101
+ @dataclass(frozen=True, kw_only=True)
102
+ class OperationsItem:
103
+ action: Action
104
+ resource: Resource
105
+ bucket: str | None = None
106
+ name: str | None = None
107
+ stream: str | None = None
108
+ subject: str | None = None
109
+ subjects: Subjects | None = None
110
+
111
+
112
+ class Resource(StrEnum):
113
+ CONNECTION = "connection"
114
+ CONSUMER = "consumer"
115
+ KEY_VALUE = "key_value"
116
+ OBJECT_STORE = "object_store"
117
+ STREAM = "stream"
118
+ SUBJECT = "subject"
119
+
120
+
121
+ @dataclass(frozen=True, kw_only=True)
122
+ class Service:
123
+ operations: Operations
124
+
125
+ def rc_marker_33f98e0ff832e733(self) -> None:
126
+ return None
127
+
128
+
129
+ Subjects: TypeAlias = "Sequence[str]"
130
+
131
+
132
+ def nats_service(*fields: NatsServiceField) -> Declaration:
133
+ return Declaration()
134
+
135
+
136
+ __all__ = [
137
+ "Action",
138
+ "Alternatives",
139
+ "AlternativesItem",
140
+ "AlternativesItemEnv",
141
+ "AlternativesItemEnvItem",
142
+ "AlternativesItemEnvItemProperty",
143
+ "Configuration",
144
+ "ConfigurationEnv",
145
+ "ConfigurationEnvItem",
146
+ "ConfigurationEnvItemProperty",
147
+ "Declaration",
148
+ "NatsServiceField",
149
+ "Operations",
150
+ "OperationsItem",
151
+ "Resource",
152
+ "Service",
153
+ "Subjects",
154
+ "nats_service",
155
+ ]