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.
trame/__init__.py ADDED
@@ -0,0 +1 @@
1
+ __path__ = __import__("pkgutil").extend_path(__path__, __name__)
@@ -0,0 +1 @@
1
+ __path__ = __import__("pkgutil").extend_path(__path__, __name__)
trame/modules/code.py ADDED
@@ -0,0 +1 @@
1
+ from trame_code.module import *
@@ -0,0 +1 @@
1
+ __path__ = __import__("pkgutil").extend_path(__path__, __name__)
trame/widgets/code.py ADDED
@@ -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)
trame_code/__init__.py ADDED
@@ -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