def _generate_commit(self, msg: Optional[str]=None, author: Optional[str]=None) -> dict:
    'Pack the specified commit info into a dict format expected by the server.\n\n        Parameters\n        ----------\n        msg : str\n            Commit message.\n        author : str\n            Commit author.\n\n        Returns\n        -------\n        dict\n            Formatted commit info.\n\n        Examples\n        --------\n        >>> client = WOQLClient("https://127.0.0.1:6363/")\n        >>> client._generate_commit("<message>", "<author>")\n        {\'author\': \'<author>\', \'message\': \'<message>\'}\n        '
    if author:
        mes_author = author
    else:
        mes_author = self._author
    if (not msg):
        msg = f'Commit via python client {__version__}'
    return {'author': mes_author, 'message': msg}
Pack the specified commit info into a dict format expected by the server.

Parameters
----------
msg : str
    Commit message.
author : str
    Commit author.

Returns
-------
dict
    Formatted commit info.

Examples
--------
>>> client = WOQLClient("https://127.0.0.1:6363/")
>>> client._generate_commit("<message>", "<author>")
{'author': '<author>', 'message': '<message>'}
def _generate_commit(self, msg: Optional[str]=None, author: Optional[str]=None) -> dict:
    'Pack the specified commit info into a dict format expected by the server.\n\n        Parameters\n        ----------\n        msg : str\n            Commit message.\n        author : str\n            Commit author.\n\n        Returns\n        -------\n        dict\n            Formatted commit info.\n\n        Examples\n        --------\n        >>> client = WOQLClient("https://127.0.0.1:6363/")\n        >>> client._generate_commit("<message>", "<author>")\n        {\'author\': \'<author>\', \'message\': \'<message>\'}\n        '
    if author:
        mes_author = author
    else:
        mes_author = self._author
    if (not msg):
        msg = f'Commit via python client {__version__}'
    return {'author': mes_author, 'message': msg}