Sisyphus-api-engine 1.0.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.
Files changed (56) hide show
  1. apirun/__init__.py +59 -0
  2. apirun/cli.py +1345 -0
  3. apirun/cli_help_i18n.py +173 -0
  4. apirun/core/__init__.py +21 -0
  5. apirun/core/models.py +411 -0
  6. apirun/core/retry.py +287 -0
  7. apirun/core/template_functions.py +505 -0
  8. apirun/core/variable_manager.py +571 -0
  9. apirun/data_driven/__init__.py +22 -0
  10. apirun/data_driven/data_source.py +291 -0
  11. apirun/data_driven/iterator.py +195 -0
  12. apirun/executor/__init__.py +21 -0
  13. apirun/executor/api_executor.py +252 -0
  14. apirun/executor/concurrent_executor.py +366 -0
  15. apirun/executor/database_executor.py +415 -0
  16. apirun/executor/loop_executor.py +350 -0
  17. apirun/executor/script_executor.py +459 -0
  18. apirun/executor/step_executor.py +548 -0
  19. apirun/executor/test_case_executor.py +293 -0
  20. apirun/executor/wait_executor.py +530 -0
  21. apirun/extractor/__init__.py +15 -0
  22. apirun/extractor/cookie_extractor.py +37 -0
  23. apirun/extractor/extractor_factory.py +60 -0
  24. apirun/extractor/header_extractor.py +42 -0
  25. apirun/extractor/jsonpath_extractor.py +56 -0
  26. apirun/extractor/regex_extractor.py +51 -0
  27. apirun/mock/__init__.py +16 -0
  28. apirun/mock/models.py +439 -0
  29. apirun/mock/server.py +461 -0
  30. apirun/parser/__init__.py +5 -0
  31. apirun/parser/v2_yaml_parser.py +520 -0
  32. apirun/result/__init__.py +25 -0
  33. apirun/result/allure_exporter.py +916 -0
  34. apirun/result/html_exporter.py +831 -0
  35. apirun/result/json_exporter.py +564 -0
  36. apirun/result/junit_exporter.py +446 -0
  37. apirun/utils/__init__.py +5 -0
  38. apirun/utils/error_utils.py +381 -0
  39. apirun/utils/hooks.py +160 -0
  40. apirun/utils/json_optimized.py +285 -0
  41. apirun/utils/performance.py +375 -0
  42. apirun/utils/template.py +208 -0
  43. apirun/validation/__init__.py +11 -0
  44. apirun/validation/comparators.py +433 -0
  45. apirun/validation/engine.py +323 -0
  46. apirun/websocket/__init__.py +20 -0
  47. apirun/websocket/broadcaster.py +435 -0
  48. apirun/websocket/events.py +334 -0
  49. apirun/websocket/notifier.py +240 -0
  50. apirun/websocket/progress.py +175 -0
  51. apirun/websocket/server.py +209 -0
  52. sisyphus_api_engine-1.0.1.dist-info/METADATA +703 -0
  53. sisyphus_api_engine-1.0.1.dist-info/RECORD +56 -0
  54. sisyphus_api_engine-1.0.1.dist-info/WHEEL +5 -0
  55. sisyphus_api_engine-1.0.1.dist-info/entry_points.txt +3 -0
  56. sisyphus_api_engine-1.0.1.dist-info/top_level.txt +1 -0
apirun/__init__.py ADDED
@@ -0,0 +1,59 @@
1
+ """Sisyphus API Engine - Enterprise-grade API Automation Testing Engine.
2
+
3
+ This package provides the core functionality for executing YAML-based API tests.
4
+ """
5
+
6
+ __version__ = "1.0.0"
7
+ __author__ = "koco-co"
8
+
9
+ from apirun.core.models import (
10
+ TestCase,
11
+ TestStep,
12
+ GlobalConfig,
13
+ ProfileConfig,
14
+ ValidationRule,
15
+ Extractor,
16
+ StepResult,
17
+ TestCaseResult,
18
+ ErrorInfo,
19
+ PerformanceMetrics,
20
+ HttpMethod,
21
+ ErrorCategory,
22
+ )
23
+
24
+ from apirun.core.variable_manager import VariableManager, VariableScope
25
+ from apirun.parser.v2_yaml_parser import V2YamlParser, parse_yaml_file, parse_yaml_string
26
+ from apirun.executor.test_case_executor import TestCaseExecutor
27
+ from apirun.executor.api_executor import APIExecutor
28
+ from apirun.validation.engine import ValidationEngine
29
+ from apirun.result.json_exporter import JSONExporter
30
+
31
+ __all__ = [
32
+ # Models
33
+ "TestCase",
34
+ "TestStep",
35
+ "GlobalConfig",
36
+ "ProfileConfig",
37
+ "ValidationRule",
38
+ "Extractor",
39
+ "StepResult",
40
+ "TestCaseResult",
41
+ "ErrorInfo",
42
+ "PerformanceMetrics",
43
+ "HttpMethod",
44
+ "ErrorCategory",
45
+ # Core
46
+ "VariableManager",
47
+ "VariableScope",
48
+ # Parser
49
+ "V2YamlParser",
50
+ "parse_yaml_file",
51
+ "parse_yaml_string",
52
+ # Executor
53
+ "TestCaseExecutor",
54
+ "APIExecutor",
55
+ # Validation
56
+ "ValidationEngine",
57
+ # Result
58
+ "JSONExporter",
59
+ ]