Repository navigation
0.1.1 Release
·
9 commits
to master
since this release
Release Description for PythonDocxAJM
Version: 0.1.1
Overview
This release introduces the PythonDocxAJM class, which provides essential functionalities for managing and manipulating DOCX files within the PythonDocxAJM project. The key features include error handling, configuration management, document saving, and logging.
Key Features:
-
PythonDocxAJM Class:
- Attributes:
file_template_path: Path to the DOCX template file.file_save_path: Path where the resultant DOCX file will be saved.Document: Represents the DOCX document being manipulated._logger: Logger instance for the class._config: Configuration settings for the class.
- Methods:
__init__: Initializes a new instance of thePythonDocxAJMclass with the provided configuration and template paths.save: Saves the current state of the document to the specified file path.
- Attributes:
-
Error Handling:
_TemplateLockedError: Custom error class to handle scenarios where the template is locked or unavailable.
Instructions for Maintainers:
-
Initialization:
- Ensure the appropriate DOCX template and save paths are provided during the initialization of the
PythonDocxAJMclass instance. - Example:
doc_manager = PythonDocxAJM(template_path="path/to/template", save_path="path/to/save")
- Ensure the appropriate DOCX template and save paths are provided during the initialization of the
-
Saving Document:
- Use the
savemethod to save the current document state. - Example:
doc_manager.save()
- Use the
-
Error Handling:
- Handle
_TemplateLockedErrorto manage template-related exceptions. - Example:
try: # some operation except _TemplateLockedError as e: print(f"Error: {e}")
- Handle
Notes:
- Ensure logging is configured to capture important events and errors.
- Follow the project guidelines for updating configuration settings and document templates.
Thank you for using PythonDocxAJM. We look forward to your feedback and contributions!