From e94292cf6f25fa2387e3980b8c456cd0a71068e5 Mon Sep 17 00:00:00 2001 From: retoor Date: Mon, 2 Dec 2024 12:02:33 +0100 Subject: [PATCH] New version. Fixed package. --- .gitignore | 2 +- Makefile | 18 +++++++++++++ dist/yura-14.3.7/src/yura/__init__.py | 0 dist/yura-14.3.7/src/yura/__main__.py | 0 dist/yura-14.3.9-py3-none-any.whl | Bin 1599 -> 4428 bytes dist/yura-14.3.9.tar.gz | Bin 2442 -> 3514 bytes dist/yura-14.4.0-py3-none-any.whl | Bin 0 -> 4427 bytes dist/yura-14.4.0.tar.gz | Bin 0 -> 3508 bytes setup.cfg | 2 +- src/yura.egg-info/PKG-INFO | 7 ++++-- src/yura.egg-info/SOURCES.txt | 4 +++ src/yura.egg-info/top_level.txt | 2 +- src/yura/__init__.py | 0 src/yura/__main__.py | 0 src/yura/client.py | 35 ++++++++++++++++++++------ 15 files changed, 58 insertions(+), 12 deletions(-) create mode 100644 Makefile create mode 100644 dist/yura-14.3.7/src/yura/__init__.py create mode 100644 dist/yura-14.3.7/src/yura/__main__.py create mode 100644 dist/yura-14.4.0-py3-none-any.whl create mode 100644 dist/yura-14.4.0.tar.gz create mode 100644 src/yura/__init__.py create mode 100644 src/yura/__main__.py diff --git a/.gitignore b/.gitignore index 1fb9556..bea6411 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .venv -__* +__pycache__ .pypirc .history diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0f9389c --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +PYTHON=.venv/bin/python +PIP=.venv/bin/pip + +all: build + +ensure_env: + -@python3 -m venv .venv + +build: ensure_env + $(PIP) install -e . + $(PIP) install build + $(PIP) install shed + $(PYTHON) -m shed + $(PYTHON) -m build + + + + diff --git a/dist/yura-14.3.7/src/yura/__init__.py b/dist/yura-14.3.7/src/yura/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dist/yura-14.3.7/src/yura/__main__.py b/dist/yura-14.3.7/src/yura/__main__.py new file mode 100644 index 0000000..e69de29 diff --git a/dist/yura-14.3.9-py3-none-any.whl b/dist/yura-14.3.9-py3-none-any.whl index b57e98254891222c44d33a6eb39bc0b6bdadacd6..16ac913b88cf3db76106684de39c2a67b2876940 100644 GIT binary patch literal 4428 zcmZ`-bzGBO8=k<((OoKxNq6^%(Iq_@odby%M|TMd2+|A%Mhk+#00So=ilRs>C?%;# z2#A2>H}x}KUVVPMpFMw^>pJ&&e)qY~bw4KhghUJg0Du$_R1pTpKL7~6-tZRS2y}gKE2qD1a=lGDnkN0*&`ut}+Jv0UmrEIA$!1KPx2gMJ5=krKBwV|;% zRh$@T{D3@}pOxGR_F)u5{XU-Na(llHM9rvpZW}_>jO%`f?Q>Utk)tfYY)~ouUeneO zKsZL$`B31a9XjQS**LsF0nk4beV>I(u${9|Lx9_Dz9=}=?e5G!wa*vQJ(fJSf@PJx zW!;`fvENK(e%*QFYW1wlD_<){SUrV3$GYCQ%Z8$H!B&aEemGYeGLjYs;(~<#wq|y# zSa>VB;F?^uMPENutS$Z4uu})JFSuRg9RuINybOqe}8Qf829%*_u4}0L2>b07|2P1s) zN(ERrWgqV-n+0b(H_}47hsFORkLuy)!w4|+P3z0cZ)fVkuKZ>7uKBDUf$W2eZV~Tf zC;Xc@bj$qM`R^*R@*H7!h+NxFHY>!oxF0PDeVuf4nL+LLknQxW2DfyOMyPlVX z>lTDS%w^b@&!s6yj~YEs-t=^W!Ak`CaYa{?*?P|E62^%VDoeC4ahUJo&PhR47O6~! zNNmg9DhI+dy{b-PKXVH<-nHpre|)Fg3CMp0hjxmZb~9;RD1H}K&pQ8}#I~~HZu84_ zs`VFOS*)eKhF%>!cCJs7x_cW~19TRr)SX-r>4K z%+tpNAK&Phw+)jT2^rtjvZ-&L+3eMJ)TsJII~6-5wUhF3db%w&nPQ2}hNb3~r=94k zkXb3Ia;{t_d9HlG4Z30iChE5OqTbzuX@{&Z5QlblMLVo3 zQEMbWFaV@Kf<4CMmm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QfUjbwW?|KDhA zAH@I0kpFcQXv;E^Pfp?2tK}sXk9^A!LMrn}<@OXwK!R=e*+43(NIAc@+#qaqJ+~HF z6}@q3BJg?S(VMr7#Y}6Fr4My}SNT-=^#eT5(v`Mx%KCXa+M>u(%DeJK*V3|<%1omj z@m)nkuLlAR^grl-(EkAU)&DBj^RY~TJM{l#IyLM1e>#Eq-%+4hxog3#qU0~W&rr@) zzZ($F_0-}S$`r9O2^`0deBn4$ z8hKsC!G@QH3GbF2SBNZ9-D`ZdS^ELS7c8aK^(pZkMmGDMJot}_~fn0UOa zcTmMIwy8vzcRWc@XHgwr!PcjNx5KMc(}2^%2A6Wnu5@M@P5*=M>z>4m#YV78MAIh;20|^y1i2@1z8Ur zbXdIMlwDj%^GZ&m_O7FY%46`Olr~o8n|9}3H0)|S=V*O4-ykVOM~NTAaiSf4IeUj* ztIP{kp>JQ-S$03@HmRmA5AEt__ujpN2gud(LAj8$PSbSKmA_M}Z>mg~@K;QHHku3Ze)2hQbZL-+UQ?Pg)8!-0^I2U^J( z?cUOV(L}$Cwf8^VY5LsfXl0d7<8`jRks+Q%{v8J zXK^ZRAn&ZxImOvb&eTF^!xyflPOorUg~Z=^t#YHYahDFgS~>DVoLbUMzRg3Wc2H5} zE3;YU;5iOHljJy#qS0|Wc~?2XkN##3@qdW_L;g4Te{}zkL07B3$}}B3-uZu6{C_gB zOo;!3{~zT4asB_f{0IL($p2jaKh75cAO8Kn>C}Yy|4{(G{|Dc=fp6Tv_y55D1N#r` zKd}F*_TT5mY)FHyIkl-IReszsbQ0llWdS8_M_e?b3({s;IT z^?#Eveti8eAFKL*XiX+l(ErB(IO@+EK>vgO2mKHFzghp+-?E-t|d0R4Xq znAg5Pwm?lEAA@rO`XBT^=zoCcrT=vo>erqBTlK#@>{b1*Bmn6DV}O diff --git a/dist/yura-14.4.0-py3-none-any.whl b/dist/yura-14.4.0-py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..d02987e7b8e9ae82715b3773a0e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+;CsM&qN&?4lC#@=Km<8ZiwitK;hH`bw*Rpt!O zn!fFuu{HM!4Z3I2au*eFg=~D7x1rWu~k@PDYG$=3I~e5LTC$4t|G9+T2LuH5hKg``}w+>A;?;652<^so9rWL=Q6aEO0m zXhCOEw;9yowwd0=#DiEA(D z8*T@euoa=q|E)aopt(5Wb>lN9m3!W`yJE&hbBkZlC0fO~O)Iw4xBMN;2F6pVgw10& z&M`u`_$g;yOtrqIzWfCvM?6>7w0@ultLrD5XM?q330Y;^&Nn$hC}nN_v^+z+(X!fa zO@an1=H{dKfVe+$Qs}Iso<>GT*&ipEkPR;lw->28Ha+{dO1=9>Mbfcn<{RCdIA(Ub zdIxsx7guY|ny%d$i{sNe)DJ>kI!v~08ch1F&HeRg^U}ctDZ*Ei?WJ`4 ztU6``BGL~GIERAwMDT-bzd#wDA6Sx_l?~k8Sq3q9AkCX}-48JR-Bz{56Z-<-PD$R! zjsw`A_-YuHGO_c-kfa7XyF#woPn0?7<_QI9r)s;P7YKr?EkM~{80LB`5mvL9b6QI! zsFJZd6rWD;j#+0BTt17jpD00625+dHbFQ;xa<9X4xXFsYkqTf<N-g^a*PQM_=u zFaovH8BZl`{s=!rUOxMzOwAMizrs#|05Ty&>_nCbjy?}JQHVy}E`XIbJ&|ZUl!!?- z{;BeRW-ru$F}Yzi1wgC^l2d$#SOrWU6-Fye7J4H6=D$1sKmJdFWZuz`KnilS4urn@ c3jC^fidXNc|9{#3?^&g>V|?`;(hGt72Pm2_>i_@% literal 0 HcmV?d00001 diff --git a/setup.cfg b/setup.cfg index f65956c..806f1bb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = yura -version = 14.3.9 +version = 14.4.0 description = Yura async AI client author = retoor author_email = retoor@retoor.io diff --git a/src/yura.egg-info/PKG-INFO b/src/yura.egg-info/PKG-INFO index bee3e6f..4dbfa7b 100644 --- a/src/yura.egg-info/PKG-INFO +++ b/src/yura.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: yura -Version: 14.3.9 +Version: 14.4.0 Summary: Yura async AI client Author: retoor Author-email: retoor@retoor.io @@ -31,12 +31,15 @@ yura ws://[host]:[port]/[path]/ ## Python ```python import asyncio + from yura.client import AsyncClient + async def communicate(): client = AsyncClient("ws://[host]:[port]/[path]/") async for response in client.chat("Your prompt"): - print(response) + print(response) + asyncio.run(communicate()) ``` diff --git a/src/yura.egg-info/SOURCES.txt b/src/yura.egg-info/SOURCES.txt index 4e52371..350f83c 100644 --- a/src/yura.egg-info/SOURCES.txt +++ b/src/yura.egg-info/SOURCES.txt @@ -1,8 +1,12 @@ README.md pyproject.toml setup.cfg +src/yura/__init__.py +src/yura/__main__.py src/yura/cli.py src/yura/client.py +src/yura/model.py +src/yura/server.py src/yura.egg-info/PKG-INFO src/yura.egg-info/SOURCES.txt src/yura.egg-info/dependency_links.txt diff --git a/src/yura.egg-info/top_level.txt b/src/yura.egg-info/top_level.txt index 8b13789..6951fbf 100644 --- a/src/yura.egg-info/top_level.txt +++ b/src/yura.egg-info/top_level.txt @@ -1 +1 @@ - +yura diff --git a/src/yura/__init__.py b/src/yura/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/yura/__main__.py b/src/yura/__main__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/yura/client.py b/src/yura/client.py index 92e2d23..9359697 100644 --- a/src/yura/client.py +++ b/src/yura/client.py @@ -15,7 +15,6 @@ class AsyncRPCClient: async def ws(self): if not self._ws: - print("HIER") self._ws = await websockets.connect(self.url) return self._ws @@ -34,16 +33,35 @@ class AsyncRPCClient: def __getattr__(self, name): async def call(*args, **kwargs): ws = await self.ws - await ws.send( - json.dumps( - {"method": name, "args": args, "kwargs": kwargs}, default=str - ) - ) - response = await ws.recv() + response = None + while True: + try: + await ws.send( + json.dumps( + {"method": name, "args": args, "kwargs": kwargs}, default=str + ) + ) + response = await ws.recv() + break + except Exception as ex: + print(ex) + print("Trying again in 1 seconds.") + self.close() + await asyncio.sleep(1) + finally: + return json.loads(response) return call + async def close(): + if self._ws: + self._ws.close() + self._ws = None + + def __del__(self): + self.close() + class AsyncClient: @@ -75,6 +93,9 @@ class AsyncClient: async def connect(self, name): return await self.client.connect(name) + def __del__(self): + sefl.client = None + async def cli_client(url="ws://127.0.0.1:8470"):