kraph 3.0.1__tar.gz → 4.0.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.
@@ -1,13 +1,14 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: kraph
3
- Version: 3.0.1
3
+ Version: 4.0.0
4
4
  Summary: the arkitekt knowledge graph
5
5
  Author-email: jhnnsrs <jhnnsrs@gmail.com>
6
6
  License-Expression: GPL-3.0-or-later
7
7
  Requires-Python: <4.0,>=3.11
8
+ Requires-Dist: arkitekt-spec>=1.1.1
8
9
  Requires-Dist: dokker>=2.8
10
+ Requires-Dist: fakts>=4
9
11
  Requires-Dist: rath>=4
10
- Requires-Dist: rekuest>=4
11
12
  Requires-Dist: websockets>=15.0.1
12
13
  Description-Content-Type: text/markdown
13
14
 
@@ -0,0 +1,7 @@
1
+ from .kraph import Kraph
2
+
3
+
4
+ # The service is declared with arkitekt-spec, a core dependency: it is always there.
5
+ from .arkitekt import kraph as kraph_service
6
+
7
+ __all__ = ["Kraph", "kraph_service"]
@@ -35,8 +35,8 @@ from rath.links.graphql_ws import GraphQLWSLink
35
35
  from rath.links.shrink import ShrinkingLink
36
36
  from rath.links.split import SplitLink
37
37
 
38
- from rekuest.app import AppRegistry
39
- from rekuest.widgets import SearchWidget
38
+ from arkitekt_spec.declare.app import AppRegistry
39
+ from arkitekt_spec.declare.widgets import SearchWidget
40
40
 
41
41
  from kraph.api.schema import (
42
42
  EntityCategory,
@@ -32,7 +32,7 @@ from rath.turms.utils import get_attributes_or_error
32
32
  from kraph.client import client_of
33
33
 
34
34
  if TYPE_CHECKING:
35
- from rekuest.structures.registry import StructureRegistry
35
+ from arkitekt_spec.declare.structures.registry import StructureRegistry
36
36
 
37
37
  from kraph.kraph import Kraph
38
38
 
@@ -11,8 +11,11 @@ license = "GPL-3.0-or-later"
11
11
  dependencies = [
12
12
  "dokker>=2.8",
13
13
  "rath>=4",
14
- "rekuest>=4",
15
14
  "websockets>=15.0.1",
15
+ # The service and structures are declared with arkitekt-spec.
16
+ "arkitekt-spec>=1.1.1",
17
+ # The service wiring (Alias, Require, FaktsAuthLink); it came through rekuest before.
18
+ "fakts>=4",
16
19
  ]
17
20
 
18
21
  [project.optional-dependencies]
@@ -1,18 +0,0 @@
1
- from .kraph import Kraph
2
-
3
-
4
- try:
5
- from .arkitekt import kraph as kraph_service
6
- except ImportError as e:
7
- # Only "rekuest is not installed" may pass silently. Anything else that fails
8
- # to import here (a renamed query, a rekuest too old for what the module
9
- # needs) is a bug, and hiding it makes this package's service vanish
10
- # without a word. Whether it is installed is asked the plain way.
11
- try:
12
- import rekuest # noqa: F401 -- presence is the question
13
- except ImportError:
14
- pass
15
- else:
16
- raise e
17
-
18
- __all__ = ["Kraph", "kraph_service"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes