New package.

This commit is contained in:
retoor 2024-12-02 12:28:53 +01:00
parent 1c72b96b59
commit 81cbe351d6
9 changed files with 8 additions and 7 deletions

BIN
dist/yura-14.4.3-py3-none-any.whl vendored Normal file

Binary file not shown.

BIN
dist/yura-14.4.3.tar.gz vendored Normal file

Binary file not shown.

BIN
dist/yura-14.4.4-py3-none-any.whl vendored Normal file

Binary file not shown.

BIN
dist/yura-14.4.4.tar.gz vendored Normal file

Binary file not shown.

BIN
dist/yura-14.4.5-py3-none-any.whl vendored Normal file

Binary file not shown.

BIN
dist/yura-14.4.5.tar.gz vendored Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
[metadata]
name = yura
version = 14.4.4
version = 14.4.5
description = Yura async AI client
author = retoor
author_email = retoor@retoor.io

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: yura
Version: 14.4.4
Version: 14.4.5
Summary: Yura async AI client
Author: retoor
Author-email: retoor@retoor.io

View File

@ -53,14 +53,14 @@ class AsyncRPCClient:
return call
def close(self):
async def close(self):
if self._ws:
self._ws.close()
await self._ws.close()
self._ws = None
def __del__(self):
self.close()
if self._ws:
raise Exception("ASyncRPCClient destructed without closing connection properly.")
class AsyncClient:
@ -92,7 +92,8 @@ class AsyncClient:
async def connect(self, name):
return await self.client.connect(name)
def __del__(self):
async def close(self):
await self.client.close()
self.client = None