ansible-output-parser


Nameansible-output-parser JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/RockProfile/Ansible-Output-Parser
SummaryParser for Ansible output
upload_time2023-02-05 20:33:08
maintainer
docs_urlNone
authorPeter McDonald
requires_python>=3.9
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Ansible Parser
==============

The Ansible Parser is intended to parse the output that Ansible returns.

Installation
------------

Simply install using:

.. code-block:: sh

    pip install ansible-output-parser

Usage
-----

.. code-block:: python

    from ansible_parser.play import Play
    play = "" # populate with play output
    ansible = Play(play_output=play)
    failures = ansible.failures()

Alternatively the following can be executed to read from a log file:

.. code-block:: python

    from ansible_parser.logs import Logs
    log_file = "" # path to log file
    log_plays = Logs(log_file=log_file)

Reading from a log file will result in multiple plays as it may process plays with the same
name.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/RockProfile/Ansible-Output-Parser",
    "name": "ansible-output-parser",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "",
    "author": "Peter McDonald",
    "author_email": "admin@rockprofile.com",
    "download_url": "https://files.pythonhosted.org/packages/d7/ff/4b2385a82dec10f38357d622cda91753343b459ed6aace0685e1d7bf585d/ansible-output-parser-0.1.0.tar.gz",
    "platform": null,
    "description": "Ansible Parser\n==============\n\nThe Ansible Parser is intended to parse the output that Ansible returns.\n\nInstallation\n------------\n\nSimply install using:\n\n.. code-block:: sh\n\n    pip install ansible-output-parser\n\nUsage\n-----\n\n.. code-block:: python\n\n    from ansible_parser.play import Play\n    play = \"\" # populate with play output\n    ansible = Play(play_output=play)\n    failures = ansible.failures()\n\nAlternatively the following can be executed to read from a log file:\n\n.. code-block:: python\n\n    from ansible_parser.logs import Logs\n    log_file = \"\" # path to log file\n    log_plays = Logs(log_file=log_file)\n\nReading from a log file will result in multiple plays as it may process plays with the same\nname.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Parser for Ansible output",
    "version": "0.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb878a9958811b2e9064372b73b5388610f12916b9b8d5fbf2e068f21b2db497",
                "md5": "1f67b64b40501b2bdbe62c28b16a5c0d",
                "sha256": "b0d44163b6f13bf30de6c2a89c2fdef8ff3ba205130f1e967874a0f39a0247e0"
            },
            "downloads": -1,
            "filename": "ansible_output_parser-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1f67b64b40501b2bdbe62c28b16a5c0d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8338,
            "upload_time": "2023-02-05T20:33:07",
            "upload_time_iso_8601": "2023-02-05T20:33:07.313872Z",
            "url": "https://files.pythonhosted.org/packages/cb/87/8a9958811b2e9064372b73b5388610f12916b9b8d5fbf2e068f21b2db497/ansible_output_parser-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d7ff4b2385a82dec10f38357d622cda91753343b459ed6aace0685e1d7bf585d",
                "md5": "68dc9daf3e44ace04e2578dbc5e7b2dc",
                "sha256": "d1cf5fc10ba3a0cbeff962e103ba5d4c17f3146cdad4a783fc90fc122fe7f2a6"
            },
            "downloads": -1,
            "filename": "ansible-output-parser-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "68dc9daf3e44ace04e2578dbc5e7b2dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6267,
            "upload_time": "2023-02-05T20:33:08",
            "upload_time_iso_8601": "2023-02-05T20:33:08.867029Z",
            "url": "https://files.pythonhosted.org/packages/d7/ff/4b2385a82dec10f38357d622cda91753343b459ed6aace0685e1d7bf585d/ansible-output-parser-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-05 20:33:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "RockProfile",
    "github_project": "Ansible-Output-Parser",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "ansible-output-parser"
}
        
Elapsed time: 0.10402s