Python Development and Technical Writing Assignment
Python Development and Technical Writing Assignment
The sphinx document should contain the following links with appropriate content
documenting each:
User Guide
Install
Command Line Tools
Process Text File
Objective:
Assignment Details:
Requirements:
Command-Line Options:
--file or -f: The path to the input text file (required).
--word-count or -wc: Display the total word count.
--char-count or -cc: Display the total character count.
--line-count or -lc: Display the total line count.
--find or -find: A specific word to search in the text file.
--replace or -r: Replace a word in the text file with another word.
Example usage: -r old_word new_word
Example:
The program should be run like this:
Output:
Based on the flags, the output should look like this:
Documentation Requirements:
Write documentation in reStructuredText format (.rst).
Use Sphinx autodoc to generate documentation for the Python code.
Document your functions with appropriate docstrings using the following
structure:
Parameters: List all input parameters with types.
Returns: What the function returns.
Raises: Any exceptions that the function may raise.
Deliverables:
Sphinx Documentation:
Evaluation Criteria:
Code Quality: Clean, modular code with proper error handling. PEP8 standards
With type hinting and comments
Command-line Interface: Proper usage of argparse and flexible input
options.
Documentation Quality: The Sphinx documentation should be clear,
structured, and provide useful information for users.
Functionality: The program should meet the requirements and run
correctly with different input files and commands.