trame-code 1.0.0__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.
File without changes
@@ -0,0 +1,28 @@
1
+ from trame_client.widgets.core import AbstractElement
2
+ from .. import module
3
+
4
+
5
+ class HtmlElement(AbstractElement):
6
+ def __init__(self, _elem_name, children=None, **kwargs):
7
+ super().__init__(_elem_name, children, **kwargs)
8
+ if self.server:
9
+ self.server.enable_module(module)
10
+
11
+
12
+ # Expose your vue component(s)
13
+ class Editor(HtmlElement):
14
+ def __init__(self, **kwargs):
15
+ super().__init__(
16
+ "vs-editor",
17
+ **kwargs,
18
+ )
19
+ self._attr_names += [
20
+ "options",
21
+ "value",
22
+ "theme",
23
+ "language",
24
+ "textmate",
25
+ ]
26
+ self._event_names += [
27
+ "input",
28
+ ]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022, Kitware Inc.
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,50 @@
1
+ Metadata-Version: 2.1
2
+ Name: trame-code
3
+ Version: 1.0.0
4
+ Summary: Widget for Monaco VS code editor for trame
5
+ Author: Kitware Inc.
6
+ License: MIT License
7
+ Keywords: Python,Interactive,Web,Application,Framework
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Environment :: Web Environment
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Natural Language :: English
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: JavaScript
15
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Description-Content-Type: text/x-rst
18
+ License-File: LICENSE
19
+ Requires-Dist: trame-client
20
+
21
+ ==========
22
+ trame-code
23
+ ==========
24
+
25
+ Widget for Monaco VS code editor for trame
26
+
27
+
28
+ License
29
+ -----------------------------------------------------------
30
+
31
+ This library is distributed under the MIT License (Same as monaco/vscode-editor)
32
+
33
+
34
+ Development
35
+ -----------------------------------------------------------
36
+
37
+ Build and install the Vue components
38
+
39
+ .. code-block:: console
40
+
41
+ cd vue-components
42
+ npm i
43
+ npm run build
44
+ cd -
45
+
46
+ Install the python library
47
+
48
+ .. code-block:: console
49
+
50
+ pip install -e .
@@ -0,0 +1,21 @@
1
+ trame/__init__.py,sha256=ED6jHcYiuYpr_0vjGz0zx2lrrmJT9sDJCzIljoDfmlM,65
2
+ trame/modules/__init__.py,sha256=ED6jHcYiuYpr_0vjGz0zx2lrrmJT9sDJCzIljoDfmlM,65
3
+ trame/modules/code.py,sha256=-504WKFSyf_BF4gVOaIvmnMRSUhWQqiyrMhf2hWcoYk,32
4
+ trame/widgets/__init__.py,sha256=ED6jHcYiuYpr_0vjGz0zx2lrrmJT9sDJCzIljoDfmlM,65
5
+ trame/widgets/code.py,sha256=3u4Csk6Afxz1XCugZdTFFZhvf4A1Q3sEGiQDADn-oig,132
6
+ trame_code/__init__.py,sha256=xBoInyIwmu0aFuhFigA8aA1mT1gawV4g_fk3RTJt4rs,92
7
+ trame_code/module/__init__.py,sha256=4A9VwQTD1a-h4avQ5hWgAzYy2snQPo_MwSEGeSPuBlE,720
8
+ trame_code/module/serve/style.css,sha256=sA-1A16ir8XC46FLuXMiMmyaTWcP9DBtLlzKphm8eG0,202482
9
+ trame_code/module/serve/trame-code.umd.js,sha256=Q1ej_-QgdP2Jzp01bXgt6ZevhzKlFss5uy7OgLOoDqY,4301370
10
+ trame_code/module/serve/monacoeditorwork/css.worker.bundle.js,sha256=7jdMq_X5o5Syqdb5__ukfvB5V6zGgnX2wkP8kI7TfIg,1744026
11
+ trame_code/module/serve/monacoeditorwork/editor.worker.bundle.js,sha256=IiXMOxJWP8ERsY_pf19ILiJnT3WutpvmUcAOZRf-Opk,442482
12
+ trame_code/module/serve/monacoeditorwork/html.worker.bundle.js,sha256=codk-Mb_iY6g7tkDrlyKWf6E24Jcfl6IE7T2XVaAKN4,1143853
13
+ trame_code/module/serve/monacoeditorwork/json.worker.bundle.js,sha256=4aTauifzan0qahiV0skXeG1ma0YtqyLH5l_i04ULPb0,722224
14
+ trame_code/module/serve/monacoeditorwork/ts.worker.bundle.js,sha256=1XCyI82jSZ1C_GHqFtkekybhyuokiKGW0r_7Pi_40Dk,9626642
15
+ trame_code/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ trame_code/widgets/code.py,sha256=l7dE9VUuTYI_uLjXQAC9tL7JCDA3tr5rK-3OEe5Md-U,694
17
+ trame_code-1.0.0.dist-info/LICENSE,sha256=EQR3dxsYZ7OSMc0ibJVhOR_CU490EIqZmndD87z8izc,1070
18
+ trame_code-1.0.0.dist-info/METADATA,sha256=bX5VBgZ-PoD3eMcYjkkpKWmqhLFKtpsrhH-e57ra-D0,1286
19
+ trame_code-1.0.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
20
+ trame_code-1.0.0.dist-info/top_level.txt,sha256=VHGDq5ngZWfakspMlQIgHmTLA4r7FhuC041njv1GyYU,17
21
+ trame_code-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.40.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ trame
2
+ trame_code