ansible-output-parser-0.1.0
توضیحات
Parser for Ansible output
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ansible-output-parser-0.1.0 |
| نام | ansible-output-parser |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Peter McDonald |
| ایمیل نویسنده | admin@rockprofile.com |
| آدرس صفحه اصلی | https://github.com/RockProfile/Ansible-Output-Parser |
| آدرس اینترنتی | https://pypi.org/project/ansible-output-parser/ |
| مجوز | - |
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | wheel |
| - | build |
| - | black |
| - | flake8 |
| - | isort |
| - | mypy |
| - | pytest |
| - | twine |
| - | wheel |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl ansible-output-parser-0.1.0:
pip install ansible-output-parser-0.1.0.whl
نصب پکیج tar.gz ansible-output-parser-0.1.0:
pip install ansible-output-parser-0.1.0.tar.gz