vmecdash 0.1.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.
vmecdash/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """VMECdash package.
2
+
3
+ The package exposes a Dash-free backend surface for VS Code integration while
4
+ keeping the existing Dash app available through the optional ``dash`` extra.
5
+ """
6
+
7
+ __version__ = "0.1.0"
8
+
vmecdash/cli.py ADDED
@@ -0,0 +1,26 @@
1
+ from __future__ import annotations
2
+
3
+ import argparse
4
+
5
+
6
+ def main(argv: list[str] | None = None) -> int:
7
+ parser = argparse.ArgumentParser(prog="vmecdash")
8
+ subparsers = parser.add_subparsers(dest="command")
9
+ serve_parser = subparsers.add_parser("serve", help="Run the standalone Dash app")
10
+ serve_parser.add_argument("--host", default="127.0.0.1")
11
+ serve_parser.add_argument("--port", type=int, default=8050)
12
+ serve_parser.add_argument("--debug", action="store_true")
13
+
14
+ args = parser.parse_args(argv)
15
+ if args.command == "serve":
16
+ from vmecdash.dash_app.app import app
17
+
18
+ app.run(host=args.host, port=args.port, debug=args.debug)
19
+ return 0
20
+ parser.print_help()
21
+ return 2
22
+
23
+
24
+ if __name__ == "__main__":
25
+ raise SystemExit(main())
26
+
@@ -0,0 +1,4 @@
1
+ from .vmec_jax import VMECJaxProcessor, VmecPostProcessor
2
+
3
+ __all__ = ["VMECJaxProcessor", "VmecPostProcessor"]
4
+