elektro 0.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 (45) hide show
  1. elektro/__init__.py +24 -0
  2. elektro/api/__init__.py +3 -0
  3. elektro/api/project.json +195 -0
  4. elektro/api/schema.graphql +3285 -0
  5. elektro/api/schema.py +6714 -0
  6. elektro/arkitekt.py +127 -0
  7. elektro/builder.py +13 -0
  8. elektro/cli/__init__.py +0 -0
  9. elektro/cli/main.py +108 -0
  10. elektro/cli/schemas/v1.graphql +5323 -0
  11. elektro/cli/utils.py +7 -0
  12. elektro/contrib/__init__.py +0 -0
  13. elektro/contrib/arkitekt/assignation_link.py +0 -0
  14. elektro/contrib/arkitekt/link.py +17 -0
  15. elektro/contrib/fakts/__init__.py +0 -0
  16. elektro/contrib/fakts/datalayer.py +39 -0
  17. elektro/datalayer.py +68 -0
  18. elektro/deployments/test/configs/mikro_next.yaml +36 -0
  19. elektro/deployments/test/configs/minio.yaml +10 -0
  20. elektro/deployments/test/docker-compose.yml +45 -0
  21. elektro/deployments/test/public_key.pem +9 -0
  22. elektro/errors.py +14 -0
  23. elektro/funcs.py +77 -0
  24. elektro/helpers.py +196 -0
  25. elektro/io/__init__.py +0 -0
  26. elektro/io/download.py +132 -0
  27. elektro/io/errors.py +22 -0
  28. elektro/io/types.py +62 -0
  29. elektro/io/upload.py +205 -0
  30. elektro/links/__init__.py +6 -0
  31. elektro/links/errors.py +0 -0
  32. elektro/links/upload.py +231 -0
  33. elektro/mikro_next.py +36 -0
  34. elektro/rath.py +60 -0
  35. elektro/rekuest.py +135 -0
  36. elektro/scalars.py +522 -0
  37. elektro/testing/__init__.py +0 -0
  38. elektro/testing/datalayer.py +45 -0
  39. elektro/traits.py +451 -0
  40. elektro/utils.py +111 -0
  41. elektro/vars.py +5 -0
  42. elektro/widgets.py +69 -0
  43. elektro-0.2.dist-info/METADATA +22 -0
  44. elektro-0.2.dist-info/RECORD +45 -0
  45. elektro-0.2.dist-info/WHEEL +4 -0
elektro/__init__.py ADDED
@@ -0,0 +1,24 @@
1
+ from .mikro_next import MikroNext
2
+ from .utils import v, e, m, rm, rechunk
3
+ try:
4
+ from .arkitekt import MikroService
5
+ except ImportError:
6
+ pass
7
+ try:
8
+ from .rekuest import structure_reg
9
+ print("Imported structure_reg")
10
+ except ImportError as e:
11
+ print("Could not import structure_reg", e)
12
+ pass
13
+
14
+
15
+ __all__ = [
16
+ "MikroNext",
17
+ "v",
18
+ "e",
19
+ "m",
20
+ "rm",
21
+ "rechunk",
22
+ "structure_reg",
23
+ "MikroService",
24
+ ]
@@ -0,0 +1,3 @@
1
+ from .schema import *
2
+
3
+ __all__ = ["*"]
@@ -0,0 +1,195 @@
1
+ {
2
+ "schema_url": "http://jhnnsrs-lab/mikro/graphql",
3
+ "documents": "graphql/mikro-next/*/**.graphql",
4
+ "extensions": {
5
+ "turms": {
6
+ "pydantic_version": "v2",
7
+ "domain": null,
8
+ "out_dir": "mikro_next/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/mikro-next/*/**.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
+ "Any": "typing.Any",
26
+ "StructureString": "str",
27
+ "ArrayLike": "mikro_next.scalars.ArrayLike",
28
+ "ParquetLike": "mikro_next.scalars.ParquetLike",
29
+ "FileLike": "mikro_next.scalars.FileLike",
30
+ "MeshLike": "mikro_next.scalars.MeshLike",
31
+ "Upload": "mikro_next.scalars.Upload",
32
+ "Vector": "mikro_next.scalars.Vector",
33
+ "TwoDVector": "mikro_next.scalars.TwoDVector",
34
+ "ThreeDVector": "mikro_next.scalars.ThreeDVector",
35
+ "FourDVector": "mikro_next.scalars.FourDVector",
36
+ "FiveDVector": "mikro_next.scalars.FiveDVector",
37
+ "Matrix": "mikro_next.scalars.Matrix",
38
+ "Metric": "typing.Any",
39
+ "Milliseconds": "mikro_next.scalars.Milliseconds",
40
+ "Micrometers": "mikro_next.scalars.Micrometers",
41
+ "MikroStore": "mikro_next.scalars.MikroStore",
42
+ "Micrograms": "mikro_next.scalars.Micrograms",
43
+ "Microliters": "mikro_next.scalars.Microliters",
44
+ "FourByFourMatrix": "mikro_next.scalars.FourByFourMatrix",
45
+ "ID": "rath.scalars.ID",
46
+ "RGBAColor": "mikro_next.scalars.RGBAColor"
47
+ },
48
+ "freeze": {
49
+ "enabled": true,
50
+ "types": [
51
+ "input",
52
+ "fragment",
53
+ "object"
54
+ ],
55
+ "exclude": null,
56
+ "include": null,
57
+ "exclude_fields": [],
58
+ "include_fields": [],
59
+ "convert_list_to_tuple": true
60
+ },
61
+ "options": {
62
+ "enabled": true,
63
+ "extra": "forbid",
64
+ "allow_mutation": null,
65
+ "allow_population_by_field_name": true,
66
+ "orm_mode": null,
67
+ "use_enum_values": true,
68
+ "validate_assignment": null,
69
+ "types": [
70
+ "input"
71
+ ],
72
+ "exclude": null,
73
+ "include": null
74
+ },
75
+ "skip_forwards": false,
76
+ "additional_bases": {
77
+ "Image": [
78
+ "mikro_next.traits.HasZarrStoreTrait"
79
+ ],
80
+ "Table": [
81
+ "mikro_next.traits.HasParquestStoreTrait"
82
+ ],
83
+ "ZarrStore": [
84
+ "mikro_next.traits.HasZarrStoreAccessor"
85
+ ],
86
+ "ParquetStore": [
87
+ "mikro_next.traits.HasParquetStoreAccesor"
88
+ ],
89
+ "BigFileStore": [
90
+ "mikro_next.traits.HasDownloadAccessor"
91
+ ],
92
+ "MediaStore": [
93
+ "mikro_next.traits.HasPresignedDownloadAccessor"
94
+ ],
95
+ "ROI": [
96
+ "mikro_next.traits.IsVectorizableTrait"
97
+ ],
98
+ "TransformationView": [
99
+ "mikro_next.traits.PixelTranslatable"
100
+ ],
101
+ "Expression": [
102
+ "mikro_next.traits.ExpressionTrait"
103
+ ],
104
+ "Graph": [
105
+ "mikro_next.traits.GraphTrait"
106
+ ],
107
+ "LinkedExpression": [
108
+ "mikro_next.traits.LinkedExpressionTrait"
109
+ ],
110
+ "Entity": [
111
+ "mikro_next.traits.EntityTrait"
112
+ ],
113
+ "EntityRelation": [
114
+ "mikro_next.traits.EntityRelationTrait"
115
+ ],
116
+ "Ontology": [
117
+ "mikro_next.traits.OntologyTrait"
118
+ ]
119
+ },
120
+ "additional_config": {},
121
+ "force_plugin_order": true,
122
+ "parsers": [],
123
+ "plugins": [
124
+ {
125
+ "type": "turms.plugins.enums.EnumsPlugin"
126
+ },
127
+ {
128
+ "type": "turms.plugins.inputs.InputsPlugin"
129
+ },
130
+ {
131
+ "type": "turms.plugins.fragments.FragmentsPlugin"
132
+ },
133
+ {
134
+ "type": "turms.plugins.operations.OperationsPlugin"
135
+ },
136
+ {
137
+ "type": "turms.plugins.funcs.FuncsPlugin",
138
+ "expand_input_types": [
139
+ "input"
140
+ ],
141
+ "global_kwargs": [
142
+ {
143
+ "type": "mikro_next.rath.MikroNextRath",
144
+ "key": "rath",
145
+ "description": "The mikro rath client"
146
+ }
147
+ ],
148
+ "definitions": [
149
+ {
150
+ "type": "subscription",
151
+ "is_async": true,
152
+ "use": "mikro_next.funcs.asubscribe"
153
+ },
154
+ {
155
+ "type": "query",
156
+ "is_async": true,
157
+ "use": "mikro_next.funcs.aexecute"
158
+ },
159
+ {
160
+ "type": "mutation",
161
+ "is_async": true,
162
+ "use": "mikro_next.funcs.aexecute"
163
+ },
164
+ {
165
+ "type": "subscription",
166
+ "use": "mikro_next.funcs.subscribe"
167
+ },
168
+ {
169
+ "type": "query",
170
+ "use": "mikro_next.funcs.execute"
171
+ },
172
+ {
173
+ "type": "mutation",
174
+ "use": "mikro_next.funcs.execute"
175
+ }
176
+ ]
177
+ }
178
+ ],
179
+ "processors": [
180
+ {
181
+ "type": "turms.processors.black.BlackProcessor"
182
+ }
183
+ ],
184
+ "stylers": [
185
+ {
186
+ "type": "turms.stylers.default.DefaultStyler"
187
+ },
188
+ {
189
+ "type": "turms.stylers.appender.AppenderStyler",
190
+ "append_fragment": ""
191
+ }
192
+ ]
193
+ }
194
+ }
195
+ }