streamdown 0.30.0__tar.gz → 0.31.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.
- {streamdown-0.30.0 → streamdown-0.31.0}/PKG-INFO +1 -1
- {streamdown-0.30.0 → streamdown-0.31.0}/pyproject.toml +1 -1
- {streamdown-0.30.0 → streamdown-0.31.0}/streamdown/sd.py +9 -6
- streamdown-0.30.0/streamdown/dd.mv +0 -3
- {streamdown-0.30.0 → streamdown-0.31.0}/.gitignore +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/2q +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/LICENSE.MIT +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/README.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/requirements.txt +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/streamdown/__init__.py +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/streamdown/plugins/README.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/streamdown/plugins/latex.py +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/README.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/backtick-with-post-spaces.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/blankie.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/block.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/bold_reset_with_link.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/broken-code.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/broken-example.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/chunk-buffer.sh +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/cjk-table.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/cjk-wrap.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/code.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/dimcheck.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/example.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/fizzbuzz.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/inline.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/jimmy_webb.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/line-buffer.sh +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/line-wrap.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/links.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/list-test.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/managerie.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/mandlebrot.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/markdown.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/nested-example.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/outline.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/pvgo_512.jpg +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/pythonvgo.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/qwen3.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/rerun.zsh +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/slash.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/strip-chunks.sh +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/table-break.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/table_test.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/test.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/test_input.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/uline.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tests/wm.md +0 -0
- {streamdown-0.30.0 → streamdown-0.31.0}/tools/deploy.sh +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streamdown
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.31.0
|
|
4
4
|
Summary: A streaming markdown renderer for modern terminals with syntax highlighting
|
|
5
5
|
Project-URL: Homepage, https://github.com/day50-dev/Streamdown
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/day50-dev/Streamdown/issues
|
|
@@ -20,8 +20,10 @@ fi
|
|
|
20
20
|
import appdirs, toml
|
|
21
21
|
import logging, tempfile
|
|
22
22
|
import os, sys
|
|
23
|
-
import
|
|
24
|
-
|
|
23
|
+
import select
|
|
24
|
+
|
|
25
|
+
if os.name != 'nt':
|
|
26
|
+
import pty, termios, tty
|
|
25
27
|
|
|
26
28
|
import math
|
|
27
29
|
import re
|
|
@@ -128,7 +130,7 @@ def debug_write(text):
|
|
|
128
130
|
state.Logging.write(text)
|
|
129
131
|
|
|
130
132
|
def savebrace():
|
|
131
|
-
if state.Savebrace and state.code_buffer_raw:
|
|
133
|
+
if state.Savebrace and state.code_buffer_raw and os.name != 'nt':
|
|
132
134
|
path = os.path.join(gettmpdir(), 'savebrace')
|
|
133
135
|
with open(path, "a") as f:
|
|
134
136
|
f.write(state.code_buffer_raw + "\x00")
|
|
@@ -1134,10 +1136,11 @@ def main():
|
|
|
1134
1136
|
Style.Link = f"{FG}{Style.Symbol}{UNDERLINE[0]}"
|
|
1135
1137
|
|
|
1136
1138
|
logging.basicConfig(stream=sys.stdout, level=args.loglevel.upper(), format=f'%(message)s')
|
|
1137
|
-
|
|
1139
|
+
if os.name != 'nt':
|
|
1140
|
+
state.exec_master, state.exec_slave = pty.openpty()
|
|
1138
1141
|
try:
|
|
1139
1142
|
inp = sys.stdin
|
|
1140
|
-
if args.exec:
|
|
1143
|
+
if args.exec and os.name != 'nt':
|
|
1141
1144
|
state.terminal = termios.tcgetattr(sys.stdin)
|
|
1142
1145
|
state.is_exec = True
|
|
1143
1146
|
state.exec_sub = subprocess.Popen(args.exec.split(' '), stdin=state.exec_slave, stdout=state.exec_slave, stderr=state.exec_slave, close_fds=True)
|
|
@@ -1168,7 +1171,7 @@ def main():
|
|
|
1168
1171
|
state.exit = 130
|
|
1169
1172
|
|
|
1170
1173
|
except Exception as ex:
|
|
1171
|
-
if state.terminal:
|
|
1174
|
+
if state.terminal and os.name != 'nt':
|
|
1172
1175
|
termios.tcsetattr(sys.stdin, termios.TCSADRAIN, state.terminal)
|
|
1173
1176
|
logging.warning(f"Exception thrown: {type(ex)} {ex}")
|
|
1174
1177
|
traceback.print_exc()
|
|
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
|
|
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
|
|
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
|