kraph 0.1.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.
kraph/__init__.py ADDED
@@ -0,0 +1,23 @@
1
+ from .kraph import Kraph
2
+ from .utils import *
3
+
4
+ try:
5
+ from .arkitekt import KraphService
6
+ except ImportError as e:
7
+ try:
8
+ import arkitekt_next
9
+ except ImportError:
10
+ pass
11
+ else:
12
+ raise e
13
+ try:
14
+ from .rekuest import structure_reg
15
+ except ImportError as e:
16
+ try:
17
+ import rekuest_next
18
+ except ImportError:
19
+ pass
20
+ else:
21
+ raise e
22
+
23
+ __all__ = ["Kraph", "structure_reg", "KraphService"]
kraph/api/project.json ADDED
@@ -0,0 +1,217 @@
1
+ {
2
+ "schema_url": "http://jhnnsrs-lab/kraph/graphql",
3
+ "documents": "graphql/kraph/*/**.graphql",
4
+ "extensions": {
5
+ "turms": {
6
+ "pydantic_version": "v2",
7
+ "domain": null,
8
+ "out_dir": "kraph/api",
9
+ "dump_configuration": true,
10
+ "configuration_name": "project.json",
11
+ "dump_schema": true,
12
+ "schema_name": "schema.graphql",
13
+ "generated_name": "schema.py",
14
+ "documents": "graphql/kraph/*/**.graphql",
15
+ "verbose": false,
16
+ "exit_on_error": true,
17
+ "allow_introspection": true,
18
+ "object_bases": [
19
+ "pydantic.BaseModel"
20
+ ],
21
+ "interface_bases": null,
22
+ "always_resolve_interfaces": true,
23
+ "exclude_typenames": true,
24
+ "scalar_definitions": {
25
+ "StructureString": "kraph.scalars.StructureString",
26
+ "StructureIdentifier": "kraph.scalars.StructureIdentifier",
27
+ "UntypedPlateChild": "typing.Any",
28
+ "Cypher": "kraph.scalars.Cypher",
29
+ "Any": "typing.Any",
30
+ "NodeID": "kraph.scalars.NodeID",
31
+ "ArrayLike": "kraph.scalars.ArrayLike",
32
+ "ParquetLike": "kraph.scalars.ParquetLike",
33
+ "FileLike": "kraph.scalars.FileLike",
34
+ "Vector": "kraph.scalars.Vector",
35
+ "TwoDVector": "kraph.scalars.TwoDVector",
36
+ "ThreeDVector": "kraph.scalars.ThreeDVector",
37
+ "FourDVector": "kraph.scalars.FourDVector",
38
+ "FiveDVector": "kraph.scalars.FiveDVector",
39
+ "Matrix": "kraph.scalars.Matrix",
40
+ "Metric": "typing.Any",
41
+ "Milliseconds": "kraph.scalars.Milliseconds",
42
+ "Micrometers": "kraph.scalars.Micrometers",
43
+ "MikroStore": "kraph.scalars.MikroStore",
44
+ "Micrograms": "kraph.scalars.Micrograms",
45
+ "Microliters": "kraph.scalars.Microliters",
46
+ "FourByFourMatrix": "kraph.scalars.FourByFourMatrix",
47
+ "ID": "rath.scalars.ID",
48
+ "RGBAColor": "kraph.scalars.RGBAColor",
49
+ "RemoteUpload": "kraph.scalars.RemoteUpload"
50
+ },
51
+ "freeze": {
52
+ "enabled": true,
53
+ "types": [
54
+ "input",
55
+ "fragment",
56
+ "object"
57
+ ],
58
+ "exclude": null,
59
+ "include": null,
60
+ "exclude_fields": [],
61
+ "include_fields": [],
62
+ "convert_list_to_tuple": true
63
+ },
64
+ "create_catchall": true,
65
+ "options": {
66
+ "enabled": true,
67
+ "extra": "forbid",
68
+ "allow_mutation": null,
69
+ "allow_population_by_field_name": true,
70
+ "orm_mode": null,
71
+ "use_enum_values": true,
72
+ "validate_assignment": null,
73
+ "types": [
74
+ "input"
75
+ ],
76
+ "exclude": null,
77
+ "include": null
78
+ },
79
+ "skip_forwards": false,
80
+ "additional_bases": {
81
+ "Ontology": [
82
+ "kraph.traits.OntologyTrait"
83
+ ],
84
+ "Graph": [
85
+ "kraph.traits.GraphTrait"
86
+ ],
87
+ "StructureCategory": [
88
+ "kraph.traits.StructureCategoryTrait"
89
+ ],
90
+ "EntityCategory": [
91
+ "kraph.traits.EntityCategoryTrait"
92
+ ],
93
+ "MetricCategory": [
94
+ "kraph.traits.MetricCategoryTrait"
95
+ ],
96
+ "MeasurementCategory": [
97
+ "kraph.traits.MeasurementCategoryTrait"
98
+ ],
99
+ "ProtocolEventCategory": [
100
+ "kraph.traits.ProtocolEventCategoryTrait"
101
+ ],
102
+ "NaturalEventCategory": [
103
+ "kraph.traits.NaturalEventCategoryTrait"
104
+ ],
105
+ "ReagentCategory": [
106
+ "kraph.traits.ReagentCategoryTrait"
107
+ ],
108
+ "RelationCategory": [
109
+ "kraph.traits.RelationCategoryTrait"
110
+ ],
111
+ "EntityRoleDefinitionInput": [
112
+ "kraph.traits.EntityRoleDefinitionInputTrait"
113
+ ],
114
+ "ReagentRoleDefinitionInput": [
115
+ "kraph.traits.ReagentRoleDefinitionInputTrait"
116
+ ],
117
+ "Entity": [
118
+ "kraph.traits.EntityTrait"
119
+ ],
120
+ "Structure": [
121
+ "kraph.traits.StructureTrait"
122
+ ],
123
+ "Metric": [
124
+ "kraph.traits.MetricTrait"
125
+ ],
126
+ "EntityRelation": [
127
+ "kraph.traits.EntityRelationTrait"
128
+ ],
129
+ "MediaStore": [
130
+ "kraph.traits.HasPresignedDownloadAccessor"
131
+ ],
132
+ "RelationCategoryInput": [
133
+ "kraph.traits.RelationCategoryInputTrait"
134
+ ],
135
+ "MeasurementCategoryInput": [
136
+ "kraph.traits.MeasurementCategoryInputTrait"
137
+ ],
138
+ "MetricCategoryInput": [
139
+ "kraph.traits.MetricCategoryInputTrait"
140
+ ]
141
+ },
142
+ "additional_config": {},
143
+ "force_plugin_order": true,
144
+ "parsers": [],
145
+ "plugins": [
146
+ {
147
+ "type": "turms.plugins.enums.EnumsPlugin"
148
+ },
149
+ {
150
+ "type": "turms.plugins.inputs.InputsPlugin"
151
+ },
152
+ {
153
+ "type": "turms.plugins.fragments.FragmentsPlugin"
154
+ },
155
+ {
156
+ "type": "turms.plugins.operations.OperationsPlugin"
157
+ },
158
+ {
159
+ "type": "turms.plugins.funcs.FuncsPlugin",
160
+ "expand_input_types": [
161
+ "input"
162
+ ],
163
+ "global_kwargs": [
164
+ {
165
+ "type": "kraph.rath.KraphRath",
166
+ "key": "rath",
167
+ "description": "The mikro rath client"
168
+ }
169
+ ],
170
+ "definitions": [
171
+ {
172
+ "type": "subscription",
173
+ "is_async": true,
174
+ "use": "kraph.funcs.asubscribe"
175
+ },
176
+ {
177
+ "type": "query",
178
+ "is_async": true,
179
+ "use": "kraph.funcs.aexecute"
180
+ },
181
+ {
182
+ "type": "mutation",
183
+ "is_async": true,
184
+ "use": "kraph.funcs.aexecute"
185
+ },
186
+ {
187
+ "type": "subscription",
188
+ "use": "kraph.funcs.subscribe"
189
+ },
190
+ {
191
+ "type": "query",
192
+ "use": "kraph.funcs.execute"
193
+ },
194
+ {
195
+ "type": "mutation",
196
+ "use": "kraph.funcs.execute"
197
+ }
198
+ ]
199
+ }
200
+ ],
201
+ "processors": [
202
+ {
203
+ "type": "turms.processors.black.BlackProcessor"
204
+ }
205
+ ],
206
+ "stylers": [
207
+ {
208
+ "type": "turms.stylers.default.DefaultStyler"
209
+ },
210
+ {
211
+ "type": "turms.stylers.appender.AppenderStyler",
212
+ "append_fragment": ""
213
+ }
214
+ ]
215
+ }
216
+ }
217
+ }