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.
Files changed (53) hide show
  1. cotyper/__init__.py +15 -0
  2. cotyper/__version__.py +0 -0
  3. cotyper/compose/__init__.py +0 -0
  4. cotyper/compose/decompile.py +1016 -0
  5. cotyper/compose/default_factory.py +15 -0
  6. cotyper/compose/fold.py +113 -0
  7. cotyper/dagtyping/__init__.py +1 -0
  8. cotyper/dagtyping/dag/__init__.py +0 -0
  9. cotyper/dagtyping/dag/compose.py +199 -0
  10. cotyper/dagtyping/dag/dag_typer.py +47 -0
  11. cotyper/dagtyping/dag/help.py +179 -0
  12. cotyper/dagtyping/dag/parse.py +30 -0
  13. cotyper/dagtyping/dag/rerun.py +77 -0
  14. cotyper/dagtyping/render/__init__.py +0 -0
  15. cotyper/dagtyping/render/graph.py +44 -0
  16. cotyper/dagtyping/render/stylize_text.py +35 -0
  17. cotyper/log/__init__.py +40 -0
  18. cotyper/log/logging.py +40 -0
  19. cotyper/log/progress.py +147 -0
  20. cotyper/methods/__init__.py +0 -0
  21. cotyper/methods/doc.py +60 -0
  22. cotyper/methods/parse.py +127 -0
  23. cotyper/parser/__init__.py +0 -0
  24. cotyper/parser/app.py +235 -0
  25. cotyper/tests/__init__.py +0 -0
  26. cotyper/tests/test_decompile_function.py +495 -0
  27. cotyper/type_system/custom_click_types.py +360 -0
  28. cotyper/type_system/extract_types.py +175 -0
  29. cotyper/type_system/type_checking.py +189 -0
  30. cotyper/utils/__init__.py +0 -0
  31. cotyper/utils/base_model.py +37 -0
  32. cotyper/utils/deprecated_warning.py +75 -0
  33. cotyper/utils/dictionary.py +31 -0
  34. cotyper/utils/file_io.py +9 -0
  35. cotyper/utils/string.py +31 -0
  36. cotyper/utils/tp.py +44 -0
  37. cotyper-0.6.0.dist-info/METADATA +155 -0
  38. cotyper-0.6.0.dist-info/RECORD +53 -0
  39. cotyper-0.6.0.dist-info/WHEEL +5 -0
  40. cotyper-0.6.0.dist-info/licenses/LICENSE +21 -0
  41. cotyper-0.6.0.dist-info/top_level.txt +1 -0
  42. tests/__init__.py +0 -0
  43. tests/check_dict_parsing.py +144 -0
  44. tests/test_cli.py +491 -0
  45. tests/test_custom_click_types.py +393 -0
  46. tests/test_decompile_function.py +53 -0
  47. tests/test_extract_types.py +127 -0
  48. tests/test_recompile.py +313 -0
  49. tests/test_resolve_func_args.py +359 -0
  50. tests/test_type_checking.py +282 -0
  51. tests/test_utils_dict.py +226 -0
  52. tests/test_utils_file_io.py +20 -0
  53. 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