lovekit 1.3.0__tar.gz → 2.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,11 +1,12 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: lovekit
3
- Version: 1.3.0
3
+ Version: 2.0.0
4
4
  Author-email: jhnnsrs <jhnnsrs@gmail.com>
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: aiohttp<4,>=3.9.5
7
7
  Requires-Dist: livekit>=0.16.3
8
- Requires-Dist: rath>=3.12
8
+ Requires-Dist: rath>=4
9
+ Requires-Dist: rekuest>=4
9
10
  Description-Content-Type: text/markdown
10
11
 
11
12
  # lovekit
@@ -0,0 +1,14 @@
1
+ try:
2
+ from .arkitekt import lovekit as lovekit_service
3
+ except ImportError as e:
4
+ # Only "rekuest is not installed" may pass silently. Anything else that fails
5
+ # to import here (a renamed query, a rekuest too old for what the module
6
+ # needs) is a bug, and hiding it makes this package's service vanish
7
+ # without a word. Whether it is installed is asked the plain way.
8
+ try:
9
+ import rekuest # noqa: F401 -- presence is the question
10
+ except ImportError:
11
+ pass
12
+ else:
13
+ raise e
14
+
@@ -82,48 +82,16 @@
82
82
  "type": "turms.plugins.operations.OperationsPlugin"
83
83
  },
84
84
  {
85
- "type": "turms.plugins.funcs.FuncsPlugin",
85
+ "type": "turms.plugins.client.ClientPlugin",
86
+ "client_class": "LovekitApi",
87
+ "reserved_from": [
88
+ "lovekit.lovekit.Lovekit"
89
+ ],
86
90
  "coercible_scalars": {
87
91
  "ID": "rath.scalars.IDCoercible"
88
92
  },
89
93
  "expand_input_types": [
90
94
  "input"
91
- ],
92
- "global_kwargs": [
93
- {
94
- "type": "lovekit.rath.LovekitRath",
95
- "key": "rath",
96
- "description": "The client we want to use (defaults to the currently active client)"
97
- }
98
- ],
99
- "definitions": [
100
- {
101
- "type": "subscription",
102
- "is_async": true,
103
- "use": "lovekit.funcs.asubscribe"
104
- },
105
- {
106
- "type": "query",
107
- "is_async": true,
108
- "use": "lovekit.funcs.aexecute"
109
- },
110
- {
111
- "type": "mutation",
112
- "is_async": true,
113
- "use": "lovekit.funcs.aexecute"
114
- },
115
- {
116
- "type": "subscription",
117
- "use": "lovekit.funcs.subscribe"
118
- },
119
- {
120
- "type": "query",
121
- "use": "lovekit.funcs.execute"
122
- },
123
- {
124
- "type": "mutation",
125
- "use": "lovekit.funcs.execute"
126
- }
127
95
  ]
128
96
  }
129
97
  ],
@@ -13,7 +13,6 @@ type Client @key(fields: "id", resolvable: true) {
13
13
  id: ID!
14
14
  release: Release
15
15
  clientId: String!
16
- name: String!
17
16
  }
18
17
 
19
18
  type CollaborativeBroadcast {