panel-reactflow 0.0.1a1__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.
- panel_reactflow/__init__.py +12 -0
- panel_reactflow/__version.py +44 -0
- panel_reactflow/base.py +706 -0
- panel_reactflow/models/reactflow.jsx +561 -0
- panel_reactflow/py.typed +0 -0
- panel_reactflow-0.0.1a1.dist-info/METADATA +158 -0
- panel_reactflow-0.0.1a1.dist-info/RECORD +9 -0
- panel_reactflow-0.0.1a1.dist-info/WHEEL +4 -0
- panel_reactflow-0.0.1a1.dist-info/licenses/LICENSE.txt +30 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Accessible imports for the panel_reactflow package."""
|
|
2
|
+
|
|
3
|
+
from .__version import __version__ # noqa
|
|
4
|
+
from .base import EdgeSpec, NodeSpec, ParamNodeEditor, ReactFlow
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"EdgeSpec",
|
|
8
|
+
"NodeEditor",
|
|
9
|
+
"NodeSpec",
|
|
10
|
+
"ParamNodeEditor",
|
|
11
|
+
"ReactFlow",
|
|
12
|
+
]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Define the package version.
|
|
2
|
+
|
|
3
|
+
Called __version.py as setuptools_scm will create a _version.py
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import pathlib
|
|
7
|
+
|
|
8
|
+
PACKAGE = "panel_reactflow"
|
|
9
|
+
|
|
10
|
+
try:
|
|
11
|
+
# For performance reasons on imports, avoid importing setuptools_scm
|
|
12
|
+
# if not in a .git folder
|
|
13
|
+
if (pathlib.Path(__file__).parent.parent.parent / ".git").is_dir():
|
|
14
|
+
# If setuptools_scm is installed (e.g. in a development environment with
|
|
15
|
+
# an editable install), then use it to determine the version dynamically.
|
|
16
|
+
from setuptools_scm import get_version
|
|
17
|
+
|
|
18
|
+
# This will fail with LookupError if the package is not installed in
|
|
19
|
+
# editable mode or if Git is not installed.
|
|
20
|
+
__version__ = get_version(root="../..", relative_to=__file__, version_scheme="post-release")
|
|
21
|
+
else:
|
|
22
|
+
raise FileNotFoundError
|
|
23
|
+
except (ImportError, LookupError, FileNotFoundError):
|
|
24
|
+
# As a fallback, use the version that is hard-coded in the file.
|
|
25
|
+
try:
|
|
26
|
+
# __version__ was added in _version in setuptools-scm 7.0.0, we rely on
|
|
27
|
+
# the hopefully stable version variable.
|
|
28
|
+
from ._version import version as __version__ # type: ignore
|
|
29
|
+
except (ModuleNotFoundError, ImportError):
|
|
30
|
+
# Either _version doesn't exist (ModuleNotFoundError) or version isn't
|
|
31
|
+
# in _version (ImportError). ModuleNotFoundError is a subclass of
|
|
32
|
+
# ImportError, let's be explicit anyway.
|
|
33
|
+
|
|
34
|
+
# Try something else:
|
|
35
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
36
|
+
|
|
37
|
+
try:
|
|
38
|
+
__version__ = version(PACKAGE)
|
|
39
|
+
except PackageNotFoundError:
|
|
40
|
+
# The user is probably trying to run this without having installed
|
|
41
|
+
# the package.
|
|
42
|
+
__version__ = "0.0.0+unknown"
|
|
43
|
+
|
|
44
|
+
__all__ = ("__version__",)
|