Task: Implement the Python module at /app/projectparallelprogrammeren.py (as a single file module, not a package) with a simple greeting functionality and a small CLI, so that the tests importing projectparallelprogrammeren can rely on a defined API and behavior.
Requirements
File location
Create /app/projectparallelprogrammeren.py (importable as module via import projectparallelprogrammeren).
Public API
Function: greet(name: str) -> str
Behavior: Return the exact string "Hello {name}!" where {name} is the provided argument.
Input validation:
If name is not a string, raise TypeError with a clear message.
If name is an empty string or only whitespace after stripping, raise ValueError.
Example: greet("John") -> "Hello John!"
Optional (but recommended) CLI using Click:
Command: greet (or a CLI entry point) that prints the greeting to stdout.
Signature: a Click command that accepts one argument, name (str).
Behavior: When invoked, prints the same greeting produced by greet(name) using click.echo.
Example usage (via CLI): python -m projectparallelprogrammeren greet John
or via a function-based CLI entrypoint if desired.
Ensure the CLI code does not execute on import; it should be safe to import the module without side effects.
Code quality and constraints
Use type hints for greet(name: str) -> str.
Provide a small module docstring describing purpose.
Expose all = ["greet", "greet_cli"] (if a CLI function is provided).
Do not rely on the tests performing any external I/O beyond what is described; the core expectation from tests is the greet function returning "Hello John!" for greet("John").
Notes
The implementation goes in /app/projectparallelprogrammeren.py as the primary module to satisfy the tests.