{
"info": {
"author": "Rahul Ranjan",
"author_email": "rahul.rrixe@gmail.com",
"bugtrack_url": null,
"classifiers": [],
"description": "Parinx\r\n======\r\nParinx implements a basic Sphinx docstring parser language which provides\r\na interface to extract the relavant parameter. You might find\r\nit most useful for tasks involving automated data extraction from sphinx\r\ndocs. Typical usage often looks like this::\r\n```python\r\n #!/usr/bin/env python\r\n\r\n from parinx import parser\r\n\r\n def test_parse_docstring(self):\r\n docstring = \"\"\"\r\n Return a dict.\r\n\r\n :type zone_id: ``str``\r\n :param zone_id: Required zone id (required)\r\n :keyword auth: Initial authentication information for the node\r\n (optional)\r\n\r\n :rtype: ``dict``\r\n \"\"\"\r\n result = parser.parse_docstring(docstring)\r\n print (result)\r\n```\r\n(Note parse_docstrings return a dictionary)\r\n\r\n\r\n`Parinx` is a Python module that makes working with Sphinx feel like you are working with [JSON](http://docs.python.org/library/json.html):\r\n\r\nparse_docstring\r\n===============\r\n\r\n`parse_docstring` takes `docstring` and `cls` i.e. class name as argument.\r\n Default value for cls is `None`.\r\n\r\nIt returns dict which contains
\r\n
\r\n `description` of method\r\n\r\n### When `cls=None`\r\n\r\n\r\n```python\r\n>>> from parinx.parser import parse_docstring\r\n>>> docstring = \"\"\"\r\n... Return a Zone instance.\r\n... Second line docsting.\r\n...\r\n... :type zone_id: ``str``\r\n... :param zone_id: Required zone id (required)\r\n...\r\n... :keyword auth: Initial authentication information for the node\r\n... (optional)\r\n... :type auth: :class:`NodeAuthSSHKey` or `NodeAuthPassword`\r\n...\r\n... :return: instance\r\n... :rtype: :class:`Zone` or `Node`\r\n... \"\"\"\r\n>>> result = parse_docstring(docstring)\r\n>>> result\r\n{'return':\r\n {\r\n 'type_name': 'class:`Zone` or `Node`',\r\n 'description': 'instance'\r\n },\r\n 'description': 'Return a Zone instance. Second line docsting.',\r\n 'arguments':defaultdict(
\r\n `arguments` contains dict of dict: zone_id{type_name, desciption and required}
\r\n `return` contains dict: {type_name, class, description}
\r\n