tallyfy 1.0.3__py3-none-any.whl → 1.0.5__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.

Potentially problematic release.


This version of tallyfy might be problematic. Click here for more details.

Files changed (34) hide show
  1. tallyfy/__init__.py +8 -4
  2. tallyfy/core.py +8 -8
  3. tallyfy/form_fields_management/__init__.py +70 -0
  4. tallyfy/form_fields_management/base.py +109 -0
  5. tallyfy/form_fields_management/crud_operations.py +234 -0
  6. tallyfy/form_fields_management/options_management.py +222 -0
  7. tallyfy/form_fields_management/suggestions.py +411 -0
  8. tallyfy/task_management/__init__.py +81 -0
  9. tallyfy/task_management/base.py +125 -0
  10. tallyfy/task_management/creation.py +221 -0
  11. tallyfy/task_management/retrieval.py +211 -0
  12. tallyfy/task_management/search.py +196 -0
  13. tallyfy/template_management/__init__.py +85 -0
  14. tallyfy/template_management/analysis.py +1093 -0
  15. tallyfy/template_management/automation.py +469 -0
  16. tallyfy/template_management/base.py +56 -0
  17. tallyfy/template_management/basic_operations.py +477 -0
  18. tallyfy/template_management/health_assessment.py +763 -0
  19. tallyfy/user_management/__init__.py +69 -0
  20. tallyfy/user_management/base.py +146 -0
  21. tallyfy/user_management/invitation.py +286 -0
  22. tallyfy/user_management/retrieval.py +339 -0
  23. {tallyfy-1.0.3.dist-info → tallyfy-1.0.5.dist-info}/METADATA +120 -56
  24. tallyfy-1.0.5.dist-info/RECORD +28 -0
  25. tallyfy/BUILD.md +0 -5
  26. tallyfy/README.md +0 -634
  27. tallyfy/form_fields_management.py +0 -582
  28. tallyfy/task_management.py +0 -356
  29. tallyfy/template_management.py +0 -2607
  30. tallyfy/user_management.py +0 -235
  31. tallyfy-1.0.3.dist-info/RECORD +0 -14
  32. {tallyfy-1.0.3.dist-info → tallyfy-1.0.5.dist-info}/WHEEL +0 -0
  33. {tallyfy-1.0.3.dist-info → tallyfy-1.0.5.dist-info}/licenses/LICENSE +0 -0
  34. {tallyfy-1.0.3.dist-info → tallyfy-1.0.5.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,85 @@
1
+ """
2
+ Template Management Package
3
+
4
+ This package provides a refactored, modular approach to template management
5
+ functionality, breaking down the monolithic TemplateManagement class into
6
+ specialized components for better maintainability and separation of concerns.
7
+
8
+ Classes:
9
+ TemplateBasicOperations: CRUD operations for templates
10
+ TemplateAnalysis: Analysis and insights for templates
11
+ TemplateAutomation: Automation rule management
12
+ TemplateHealthAssessment: Comprehensive template health checks
13
+ TemplateManager: Unified interface combining all functionality
14
+ """
15
+
16
+ from .base import TemplateManagerBase
17
+ from .basic_operations import TemplateBasicOperations
18
+ from .analysis import TemplateAnalysis
19
+ from .automation import TemplateAutomation
20
+ from .health_assessment import TemplateHealthAssessment
21
+
22
+
23
+ class TemplateManager:
24
+ """
25
+ Unified interface for template management functionality.
26
+
27
+ This class provides access to all template management capabilities
28
+ through a single interface while maintaining the modular structure
29
+ underneath.
30
+ """
31
+
32
+ def __init__(self, sdk):
33
+ """
34
+ Initialize template manager with SDK instance.
35
+
36
+ Args:
37
+ sdk: Main SDK instance
38
+ """
39
+ self.basic_operations = TemplateBasicOperations(sdk)
40
+ self.analysis = TemplateAnalysis(sdk)
41
+ self.automation = TemplateAutomation(sdk)
42
+ self.health_assessment = TemplateHealthAssessment(sdk)
43
+
44
+ # For backward compatibility, expose common methods at the top level
45
+ self.search_templates_by_name = self.basic_operations.search_templates_by_name
46
+ self.get_template = self.basic_operations.get_template
47
+ self.get_all_templates = self.basic_operations.get_all_templates
48
+ self.update_template_metadata = self.basic_operations.update_template_metadata
49
+ self.get_template_with_steps = self.basic_operations.get_template_with_steps
50
+ self.duplicate_template = self.basic_operations.duplicate_template
51
+ self.get_template_steps = self.basic_operations.get_template_steps
52
+ self.edit_description_on_step = self.basic_operations.edit_description_on_step
53
+ self.add_step_to_template = self.basic_operations.add_step_to_template
54
+
55
+ # Analysis methods
56
+ self.get_step_dependencies = self.analysis.get_step_dependencies
57
+ self.suggest_step_deadline = self.analysis.suggest_step_deadline
58
+ self.get_step_visibility_conditions = self.analysis.get_step_visibility_conditions
59
+ self.suggest_kickoff_fields = self.analysis.suggest_kickoff_fields
60
+ self.suggest_automation_consolidation = self.analysis.suggest_automation_consolidation
61
+
62
+ # Automation methods
63
+ self.create_automation_rule = self.automation.create_automation_rule
64
+ self.update_automation_rule = self.automation.update_automation_rule
65
+ self.delete_automation_rule = self.automation.delete_automation_rule
66
+ self.consolidate_automation_rules = self.automation.consolidate_automation_rules
67
+ self.add_assignees_to_step = self.automation.add_assignees_to_step
68
+ self.analyze_template_automations = self.automation.analyze_template_automations
69
+
70
+ # Health assessment method
71
+ self.assess_template_health = self.health_assessment.assess_template_health
72
+
73
+
74
+ # For backward compatibility, create an alias
75
+ TemplateManagement = TemplateManager
76
+
77
+ __all__ = [
78
+ 'TemplateManagerBase',
79
+ 'TemplateBasicOperations',
80
+ 'TemplateAnalysis',
81
+ 'TemplateAutomation',
82
+ 'TemplateHealthAssessment',
83
+ 'TemplateManager',
84
+ 'TemplateManagement' # Backward compatibility alias
85
+ ]