shinychat 0.0.1a0__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.
Files changed (29) hide show
  1. shinychat-0.0.1a0/.gitignore +14 -0
  2. shinychat-0.0.1a0/LICENSE +21 -0
  3. shinychat-0.0.1a0/PKG-INFO +36 -0
  4. shinychat-0.0.1a0/pkg-py/README.md +0 -0
  5. shinychat-0.0.1a0/pkg-py/src/shinychat/__init__.py +3 -0
  6. shinychat-0.0.1a0/pkg-py/src/shinychat/__version.py +21 -0
  7. shinychat-0.0.1a0/pkg-py/src/shinychat/_chat.py +1878 -0
  8. shinychat-0.0.1a0/pkg-py/src/shinychat/_chat_bookmark.py +110 -0
  9. shinychat-0.0.1a0/pkg-py/src/shinychat/_chat_normalize.py +350 -0
  10. shinychat-0.0.1a0/pkg-py/src/shinychat/_chat_provider_types.py +127 -0
  11. shinychat-0.0.1a0/pkg-py/src/shinychat/_chat_tokenizer.py +67 -0
  12. shinychat-0.0.1a0/pkg-py/src/shinychat/_chat_types.py +79 -0
  13. shinychat-0.0.1a0/pkg-py/src/shinychat/_html_deps_py_shiny.py +41 -0
  14. shinychat-0.0.1a0/pkg-py/src/shinychat/_markdown_stream.py +374 -0
  15. shinychat-0.0.1a0/pkg-py/src/shinychat/_typing_extensions.py +63 -0
  16. shinychat-0.0.1a0/pkg-py/src/shinychat/_utils.py +173 -0
  17. shinychat-0.0.1a0/pkg-py/src/shinychat/express/__init__.py +3 -0
  18. shinychat-0.0.1a0/pkg-py/src/shinychat/playwright/__init__.py +3 -0
  19. shinychat-0.0.1a0/pkg-py/src/shinychat/playwright/_chat.py +154 -0
  20. shinychat-0.0.1a0/pkg-py/src/shinychat/www/GIT_VERSION +1 -0
  21. shinychat-0.0.1a0/pkg-py/src/shinychat/www/chat/chat.css +2 -0
  22. shinychat-0.0.1a0/pkg-py/src/shinychat/www/chat/chat.css.map +7 -0
  23. shinychat-0.0.1a0/pkg-py/src/shinychat/www/chat/chat.js +87 -0
  24. shinychat-0.0.1a0/pkg-py/src/shinychat/www/chat/chat.js.map +7 -0
  25. shinychat-0.0.1a0/pkg-py/src/shinychat/www/markdown-stream/markdown-stream.css +2 -0
  26. shinychat-0.0.1a0/pkg-py/src/shinychat/www/markdown-stream/markdown-stream.css.map +7 -0
  27. shinychat-0.0.1a0/pkg-py/src/shinychat/www/markdown-stream/markdown-stream.js +149 -0
  28. shinychat-0.0.1a0/pkg-py/src/shinychat/www/markdown-stream/markdown-stream.js.map +7 -0
  29. shinychat-0.0.1a0/pyproject.toml +159 -0
@@ -0,0 +1,14 @@
1
+ .Rproj.user
2
+ .Rhistory
3
+ .RData
4
+ .Ruserdata
5
+ .Renviron
6
+ .venv
7
+ docs/r
8
+ docs/py
9
+ _dev
10
+ uv.lock
11
+ .coverage
12
+ README.html
13
+ README_files
14
+ shiny_bookmarks
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2024 Posit Software, PBC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: shinychat
3
+ Version: 0.0.1a0
4
+ Summary: Add your description here
5
+ Project-URL: Homepage, https://posit-dev.github.io/shinychat/
6
+ Project-URL: Documentation, https://posit-dev.github.io/shinychat/pkg/py/
7
+ Project-URL: Repository, https://github.com/posit-dev/shinychat
8
+ Project-URL: Issues, https://github.com/posit-dev/shinychat/issues/
9
+ Project-URL: Changelog, https://github.com/posit-dev/shinychat/blob/main/pkg-py/CHANGELOG.md
10
+ Author-email: Joe Cheng <joe@posit.co>, Carson Sievert <carson@posit.co>, Garrick Aden-Buie <garrick@posit.co>
11
+ License: MIT
12
+ License-File: LICENSE
13
+ Requires-Python: >=3.9
14
+ Requires-Dist: htmltools>=0.6.0
15
+ Requires-Dist: playwright>=1.43.0
16
+ Requires-Dist: shiny>=1.4.0
17
+ Provides-Extra: providers
18
+ Requires-Dist: anthropic; extra == 'providers'
19
+ Requires-Dist: chatlas>=0.6.1; extra == 'providers'
20
+ Requires-Dist: google-generativeai; (python_version >= '3.9') and extra == 'providers'
21
+ Requires-Dist: langchain-core; extra == 'providers'
22
+ Requires-Dist: ollama; extra == 'providers'
23
+ Requires-Dist: openai; extra == 'providers'
24
+ Requires-Dist: tokenizers; extra == 'providers'
25
+ Provides-Extra: test
26
+ Requires-Dist: coverage>=7.8.2; extra == 'test'
27
+ Requires-Dist: faicons; extra == 'test'
28
+ Requires-Dist: ipyleaflet; extra == 'test'
29
+ Requires-Dist: pandas; extra == 'test'
30
+ Requires-Dist: plotly; extra == 'test'
31
+ Requires-Dist: pyright>=1.1.398; extra == 'test'
32
+ Requires-Dist: pytest-playwright>=0.3.0; extra == 'test'
33
+ Requires-Dist: pytest>=6.2.4; extra == 'test'
34
+ Requires-Dist: shinylive; extra == 'test'
35
+ Requires-Dist: shinywidgets; extra == 'test'
36
+ Requires-Dist: tox-uv>=1; extra == 'test'
File without changes
@@ -0,0 +1,3 @@
1
+ from ._chat import Chat, ChatExpress, chat_ui
2
+
3
+ __all__ = ["Chat", "ChatExpress", "chat_ui"]
@@ -0,0 +1,21 @@
1
+ # file generated by setuptools-scm
2
+ # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
6
+ TYPE_CHECKING = False
7
+ if TYPE_CHECKING:
8
+ from typing import Tuple
9
+ from typing import Union
10
+
11
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
12
+ else:
13
+ VERSION_TUPLE = object
14
+
15
+ version: str
16
+ __version__: str
17
+ __version_tuple__: VERSION_TUPLE
18
+ version_tuple: VERSION_TUPLE
19
+
20
+ __version__ = version = '0.0.1a0'
21
+ __version_tuple__ = version_tuple = (0, 0, 1, 'a0')