fusion-function 0.2.1__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.
@@ -0,0 +1,9 @@
1
+ from .fusion import FusionDomainResult, annotate_fusion_domains
2
+ from .reference import ReferenceDatabase, close_default_reference
3
+
4
+ __all__ = [
5
+ "FusionDomainResult",
6
+ "annotate_fusion_domains",
7
+ "ReferenceDatabase",
8
+ "close_default_reference",
9
+ ]
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ raise SystemExit(main())
fusion_function/cli.py ADDED
@@ -0,0 +1,27 @@
1
+ """Command-line entry points."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import sys
7
+ from collections.abc import Sequence
8
+
9
+ from . import data
10
+
11
+
12
+ def main(argv: Sequence[str] | None = None) -> int:
13
+ arguments = list(sys.argv[1:] if argv is None else argv)
14
+ if arguments and arguments[0] == "prepare-data":
15
+ return data.main(arguments[1:])
16
+ if arguments and arguments[0] == "export-reference":
17
+ from . import prebuilt
18
+
19
+ return prebuilt.main(arguments[1:])
20
+ parser = argparse.ArgumentParser(prog="fusion-function")
21
+ parser.add_argument(
22
+ "command",
23
+ choices=["prepare-data", "export-reference"],
24
+ help="Install, build or export the human reference",
25
+ )
26
+ parser.parse_args(arguments)
27
+ return 0