trame-code 1.0.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.
Files changed (27) hide show
  1. trame-code-1.0.0/LICENSE +21 -0
  2. trame-code-1.0.0/MANIFEST.in +1 -0
  3. trame-code-1.0.0/PKG-INFO +49 -0
  4. trame-code-1.0.0/README.rst +30 -0
  5. trame-code-1.0.0/setup.cfg +38 -0
  6. trame-code-1.0.0/setup.py +3 -0
  7. trame-code-1.0.0/trame/__init__.py +1 -0
  8. trame-code-1.0.0/trame/modules/__init__.py +1 -0
  9. trame-code-1.0.0/trame/modules/code.py +1 -0
  10. trame-code-1.0.0/trame/widgets/__init__.py +1 -0
  11. trame-code-1.0.0/trame/widgets/code.py +7 -0
  12. trame-code-1.0.0/trame_code/__init__.py +3 -0
  13. trame-code-1.0.0/trame_code/module/__init__.py +25 -0
  14. trame-code-1.0.0/trame_code/module/serve/monacoeditorwork/css.worker.bundle.js +47100 -0
  15. trame-code-1.0.0/trame_code/module/serve/monacoeditorwork/editor.worker.bundle.js +10318 -0
  16. trame-code-1.0.0/trame_code/module/serve/monacoeditorwork/html.worker.bundle.js +26349 -0
  17. trame-code-1.0.0/trame_code/module/serve/monacoeditorwork/json.worker.bundle.js +17578 -0
  18. trame-code-1.0.0/trame_code/module/serve/monacoeditorwork/ts.worker.bundle.js +181666 -0
  19. trame-code-1.0.0/trame_code/module/serve/style.css +1 -0
  20. trame-code-1.0.0/trame_code/module/serve/trame-code.umd.js +1885 -0
  21. trame-code-1.0.0/trame_code/widgets/__init__.py +0 -0
  22. trame-code-1.0.0/trame_code/widgets/code.py +28 -0
  23. trame-code-1.0.0/trame_code.egg-info/PKG-INFO +49 -0
  24. trame-code-1.0.0/trame_code.egg-info/SOURCES.txt +26 -0
  25. trame-code-1.0.0/trame_code.egg-info/dependency_links.txt +1 -0
  26. trame-code-1.0.0/trame_code.egg-info/requires.txt +1 -0
  27. trame-code-1.0.0/trame_code.egg-info/top_level.txt +2 -0
@@ -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 @@
1
+ graft trame_code/module/serve
@@ -0,0 +1,49 @@
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
+
20
+ ==========
21
+ trame-code
22
+ ==========
23
+
24
+ Widget for Monaco VS code editor for trame
25
+
26
+
27
+ License
28
+ -----------------------------------------------------------
29
+
30
+ This library is distributed under the MIT License (Same as monaco/vscode-editor)
31
+
32
+
33
+ Development
34
+ -----------------------------------------------------------
35
+
36
+ Build and install the Vue components
37
+
38
+ .. code-block:: console
39
+
40
+ cd vue-components
41
+ npm i
42
+ npm run build
43
+ cd -
44
+
45
+ Install the python library
46
+
47
+ .. code-block:: console
48
+
49
+ pip install -e .
@@ -0,0 +1,30 @@
1
+ ==========
2
+ trame-code
3
+ ==========
4
+
5
+ Widget for Monaco VS code editor for trame
6
+
7
+
8
+ License
9
+ -----------------------------------------------------------
10
+
11
+ This library is distributed under the MIT License (Same as monaco/vscode-editor)
12
+
13
+
14
+ Development
15
+ -----------------------------------------------------------
16
+
17
+ Build and install the Vue components
18
+
19
+ .. code-block:: console
20
+
21
+ cd vue-components
22
+ npm i
23
+ npm run build
24
+ cd -
25
+
26
+ Install the python library
27
+
28
+ .. code-block:: console
29
+
30
+ pip install -e .
@@ -0,0 +1,38 @@
1
+ [metadata]
2
+ name = trame-code
3
+ version = 1.0.0
4
+ description = Widget for Monaco VS code editor for trame
5
+ long_description = file: README.rst
6
+ long_description_content_type = text/x-rst
7
+ author = Kitware Inc.
8
+ license = MIT License
9
+ classifiers =
10
+ Development Status :: 5 - Production/Stable
11
+ Environment :: Web Environment
12
+ License :: OSI Approved :: MIT License
13
+ Natural Language :: English
14
+ Operating System :: OS Independent
15
+ Programming Language :: Python :: 3 :: Only
16
+ Programming Language :: JavaScript
17
+ Topic :: Software Development :: Libraries :: Application Frameworks
18
+ Topic :: Software Development :: Libraries :: Python Modules
19
+ keywords =
20
+ Python
21
+ Interactive
22
+ Web
23
+ Application
24
+ Framework
25
+
26
+ [options]
27
+ packages = find:
28
+ include_package_data = True
29
+ install_requires =
30
+ trame_client
31
+
32
+ [semantic_release]
33
+ version_pattern = setup.cfg:version = (\d+\.\d+\.\d+)
34
+
35
+ [egg_info]
36
+ tag_build =
37
+ tag_date = 0
38
+
@@ -0,0 +1,3 @@
1
+ from setuptools import setup
2
+
3
+ setup()
@@ -0,0 +1 @@
1
+ __path__ = __import__("pkgutil").extend_path(__path__, __name__)
@@ -0,0 +1 @@
1
+ __path__ = __import__("pkgutil").extend_path(__path__, __name__)
@@ -0,0 +1 @@
1
+ from trame_code.module import *
@@ -0,0 +1 @@
1
+ __path__ = __import__("pkgutil").extend_path(__path__, __name__)
@@ -0,0 +1,7 @@
1
+ from trame_code.widgets.code import *
2
+
3
+
4
+ def initialize(server):
5
+ from trame_code import module
6
+
7
+ server.enable_module(module)
@@ -0,0 +1,3 @@
1
+ from trame_client.utils.version import get_version
2
+
3
+ __version__ = get_version("trame-code")
@@ -0,0 +1,25 @@
1
+ from pathlib import Path
2
+
3
+ # Compute local path to serve
4
+ serve_path = str(Path(__file__).with_name("serve").resolve())
5
+
6
+ # Serve directory for JS/CSS files
7
+ serve = {"__trame_code": serve_path}
8
+
9
+ # List of JS files to load (usually from the serve path above)
10
+ scripts = ["__trame_code/trame-code.umd.js"]
11
+
12
+ # List of CSS files to load (usually from the serve path above)
13
+ styles = ["__trame_code/style.css"]
14
+
15
+ # List of Vue plugins to install/load
16
+ vue_use = ["trame_code"]
17
+
18
+ # Uncomment to add entries to the shared state
19
+ # state = {}
20
+
21
+
22
+ # Optional if you want to execute custom initialization at module load
23
+ def setup(app, **kwargs):
24
+ """Method called at initialization with possibly some custom keyword arguments"""
25
+ pass