Skip to main content

Ansible Parser

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

Installation

Simply install using:

pip install ansible-output-parser

Usage

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:

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.

Metadata

Release files for ansible-output-parser 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansible-output-parser 0.1.0
File Size Uploaded
ansible-output-parser-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansible-output-parser 0.1.0
File Interpreter ABI Platform
ansible_output_parser-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / ansible-output-parser-0.1.0.tar.gz

Download URL ansible-output-parser-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d1cf5fc10ba3a0cbeff962e103ba5d4c17f3146cdad4a783fc90fc122fe7f2a6
BLAKE2b-256 checksum
How to use checksums
d7ff4b2385a82dec10f38357d622cda91753343b459ed6aace0685e1d7bf585d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / ansible_output_parser-0.1.0-py3-none-any.whl

Download URL ansible_output_parser-0.1.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0d44163b6f13bf30de6c2a89c2fdef8ff3ba205130f1e967874a0f39a0247e0
BLAKE2b-256 checksum
How to use checksums
cb878a9958811b2e9064372b73b5388610f12916b9b8d5fbf2e068f21b2db497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page