dialoghelper 0.0.16__py3-none-any.whl → 0.0.17__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.
Potentially problematic release.
This version of dialoghelper might be problematic. Click here for more details.
- dialoghelper/__init__.py +1 -1
- dialoghelper/core.py +4 -4
- dialoghelper/db_dc.py +1 -0
- {dialoghelper-0.0.16.dist-info → dialoghelper-0.0.17.dist-info}/METADATA +1 -1
- dialoghelper-0.0.17.dist-info/RECORD +10 -0
- dialoghelper-0.0.16.dist-info/RECORD +0 -10
- {dialoghelper-0.0.16.dist-info → dialoghelper-0.0.17.dist-info}/WHEEL +0 -0
- {dialoghelper-0.0.16.dist-info → dialoghelper-0.0.17.dist-info}/entry_points.txt +0 -0
- {dialoghelper-0.0.16.dist-info → dialoghelper-0.0.17.dist-info}/licenses/LICENSE +0 -0
- {dialoghelper-0.0.16.dist-info → dialoghelper-0.0.17.dist-info}/top_level.txt +0 -0
dialoghelper/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.17"
|
|
2
2
|
from .core import *
|
dialoghelper/core.py
CHANGED
|
@@ -104,8 +104,7 @@ def add_html(
|
|
|
104
104
|
content:str, # The HTML to send to the client (generally should include hx-swap-oob)
|
|
105
105
|
):
|
|
106
106
|
"Send HTML to the browser to be swapped into the DOM"
|
|
107
|
-
|
|
108
|
-
xpost('http://localhost:5001/add_html_', data=dict(content=res))
|
|
107
|
+
xpost('http://localhost:5001/add_html_', data=dict(content=to_xml(content)))
|
|
109
108
|
|
|
110
109
|
# %% ../nbs/00_core.ipynb
|
|
111
110
|
def del_msg(
|
|
@@ -149,7 +148,8 @@ def add_msg(
|
|
|
149
148
|
try: json.loads(ot or '[]')
|
|
150
149
|
except: return "Code output must be valid json"
|
|
151
150
|
if not sid: sid = find_msg_id()
|
|
152
|
-
data = dict(
|
|
151
|
+
data = dict(placement=placement, sid=sid, **kwargs)
|
|
152
|
+
if content is not None: data['content'] = content
|
|
153
153
|
return xpost('http://localhost:5001/add_relative_', data=data).text
|
|
154
154
|
|
|
155
155
|
# %% ../nbs/00_core.ipynb
|
|
@@ -180,7 +180,7 @@ def _umsg(
|
|
|
180
180
|
@delegates(_umsg)
|
|
181
181
|
def update_msg(
|
|
182
182
|
sid:str=None, # sid (stable id -- pk) of message to update (if None, uses current message)
|
|
183
|
-
content:str|None
|
|
183
|
+
content:str|None=None, # Content of the message (i.e the message prompt, code, or note text)
|
|
184
184
|
msg:Optional[Dict]=None, # Dictionary of field keys/values to update
|
|
185
185
|
**kwargs):
|
|
186
186
|
"""Update an existing message. Provide either `msg` OR field key/values to update.
|
dialoghelper/db_dc.py
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
dialoghelper/__init__.py,sha256=iwcIRnY-hzTvlvcCnwyLfa-0GCtmC0fPSKlBQgXUyBo,43
|
|
2
|
+
dialoghelper/_modidx.py,sha256=il4I8H0rrleInprpaXaQ3Lyy4_C1ipPVQvaZ8WopN7I,3126
|
|
3
|
+
dialoghelper/core.py,sha256=2GdSvvEFWMAEJ_FNRUj9LoiB1x8zQZcYbMOJfFyvClM,12999
|
|
4
|
+
dialoghelper/db_dc.py,sha256=mi2Q2am_SoAPGpNQg7KPFS5pR9WEapRXT8ypkNmMfw0,2330
|
|
5
|
+
dialoghelper-0.0.17.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
6
|
+
dialoghelper-0.0.17.dist-info/METADATA,sha256=XET3SvzannEw7Hq_CP8Qs1rEzGwT2l16Xvwo2YGHFZo,2565
|
|
7
|
+
dialoghelper-0.0.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
dialoghelper-0.0.17.dist-info/entry_points.txt,sha256=wvDeX-XTS_XVjWiiPQe6yVfmyNwy9eCr36ewp9baFIg,46
|
|
9
|
+
dialoghelper-0.0.17.dist-info/top_level.txt,sha256=VXLlkgltFs_q-XB9imt2G64I_-MPm1RnxlpvUWPuLKM,13
|
|
10
|
+
dialoghelper-0.0.17.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
dialoghelper/__init__.py,sha256=EQiWUFoxrXghvJr_OC_Aq6XIWVNNQBYYPEmM1kQG0w8,43
|
|
2
|
-
dialoghelper/_modidx.py,sha256=il4I8H0rrleInprpaXaQ3Lyy4_C1ipPVQvaZ8WopN7I,3126
|
|
3
|
-
dialoghelper/core.py,sha256=2RhFkbnxUkMep4Imf_Qe3zEDxmd3QJk2uc0PZgmddzQ,12978
|
|
4
|
-
dialoghelper/db_dc.py,sha256=ieSie_K1HHXACEJVZ0rMkD_uo42GgmMqqKDYrodjhtM,2297
|
|
5
|
-
dialoghelper-0.0.16.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
6
|
-
dialoghelper-0.0.16.dist-info/METADATA,sha256=L2Uiv1P4Z5fSDltxetRrzvzThTuet-y9QKC4t2_Oh4E,2565
|
|
7
|
-
dialoghelper-0.0.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
dialoghelper-0.0.16.dist-info/entry_points.txt,sha256=wvDeX-XTS_XVjWiiPQe6yVfmyNwy9eCr36ewp9baFIg,46
|
|
9
|
-
dialoghelper-0.0.16.dist-info/top_level.txt,sha256=VXLlkgltFs_q-XB9imt2G64I_-MPm1RnxlpvUWPuLKM,13
|
|
10
|
-
dialoghelper-0.0.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|