cotyper 0.6.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.
- cotyper/__init__.py +15 -0
- cotyper/__version__.py +0 -0
- cotyper/compose/__init__.py +0 -0
- cotyper/compose/decompile.py +1016 -0
- cotyper/compose/default_factory.py +15 -0
- cotyper/compose/fold.py +113 -0
- cotyper/dagtyping/__init__.py +1 -0
- cotyper/dagtyping/dag/__init__.py +0 -0
- cotyper/dagtyping/dag/compose.py +199 -0
- cotyper/dagtyping/dag/dag_typer.py +47 -0
- cotyper/dagtyping/dag/help.py +179 -0
- cotyper/dagtyping/dag/parse.py +30 -0
- cotyper/dagtyping/dag/rerun.py +77 -0
- cotyper/dagtyping/render/__init__.py +0 -0
- cotyper/dagtyping/render/graph.py +44 -0
- cotyper/dagtyping/render/stylize_text.py +35 -0
- cotyper/log/__init__.py +40 -0
- cotyper/log/logging.py +40 -0
- cotyper/log/progress.py +147 -0
- cotyper/methods/__init__.py +0 -0
- cotyper/methods/doc.py +60 -0
- cotyper/methods/parse.py +127 -0
- cotyper/parser/__init__.py +0 -0
- cotyper/parser/app.py +235 -0
- cotyper/tests/__init__.py +0 -0
- cotyper/tests/test_decompile_function.py +495 -0
- cotyper/type_system/custom_click_types.py +360 -0
- cotyper/type_system/extract_types.py +175 -0
- cotyper/type_system/type_checking.py +189 -0
- cotyper/utils/__init__.py +0 -0
- cotyper/utils/base_model.py +37 -0
- cotyper/utils/deprecated_warning.py +75 -0
- cotyper/utils/dictionary.py +31 -0
- cotyper/utils/file_io.py +9 -0
- cotyper/utils/string.py +31 -0
- cotyper/utils/tp.py +44 -0
- cotyper-0.6.0.dist-info/METADATA +155 -0
- cotyper-0.6.0.dist-info/RECORD +53 -0
- cotyper-0.6.0.dist-info/WHEEL +5 -0
- cotyper-0.6.0.dist-info/licenses/LICENSE +21 -0
- cotyper-0.6.0.dist-info/top_level.txt +1 -0
- tests/__init__.py +0 -0
- tests/check_dict_parsing.py +144 -0
- tests/test_cli.py +491 -0
- tests/test_custom_click_types.py +393 -0
- tests/test_decompile_function.py +53 -0
- tests/test_extract_types.py +127 -0
- tests/test_recompile.py +313 -0
- tests/test_resolve_func_args.py +359 -0
- tests/test_type_checking.py +282 -0
- tests/test_utils_dict.py +226 -0
- tests/test_utils_file_io.py +20 -0
- tests/test_utils_string.py +37 -0
cotyper/__init__.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
CoTyper.
|
|
3
|
+
|
|
4
|
+
wrapper lib for Typer to use recursive nested pydantic.BaseModels as parameters
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from .compose.fold import unfold_cls
|
|
8
|
+
from .methods.parse import parse_json_fields
|
|
9
|
+
from .parser.app import App as App
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"unfold_cls",
|
|
13
|
+
"parse_json_fields",
|
|
14
|
+
"App",
|
|
15
|
+
]
|
cotyper/__version__.py
ADDED
|
File without changes
|
|
File without changes
|