Skip to main content

Parse IBM APAR information from web pages

Project description

APAR Parser

Parse IBM APAR (Authorized Program Analysis Report) information from IBM support pages.

Installation

Using uvx (Recommended)

Note: If you don't have uvx installed, see Installing uv/uvx below.

# Run directly
uvx apar-parser -i apar_list.txt -o output_dir

# Or run from local directory
uvx --from . apar-parser -i apar_list.txt -o output_dir

Using pip

# Install from PyPI
pip install apar-parser

# Or install from local directory
pip install .

Usage

Process APAR list from file

apar-parser -i apar_list.txt -o output_dir

Process single APAR

apar-parser -a OA41368 -o output_dir

Output formats

Text format (default):

apar-parser -i apar_list.txt -o output_dir

JSON format (structured data):

apar-parser -i apar_list.txt -o output_dir -f json

GUI mode (Windows only, requires tkinter)

apar-parser --gui

Input File Format

Plain text file with one APAR number per line:

OA41368
OA36415
OA12345

Output

Text format

Creates text files in the output directory:

  • {APAR}.txt - Successfully parsed APAR
  • {APAR}.notfound.txt - APAR not found
  • {APAR}.logon.txt - Requires IBM ID login

JSON format

Creates JSON files with structured data:

{
  "apar_number": "OA41368",
  "title": "ABEND0C4-11 IN EDGFLTS...",
  "modified_date": "21 May 2013",
  "apar_information": {
    "apar_number": "OA41368",
    "reported_component_name": "DFSMSRMM",
    ...
  },
  "problem_summary": "...",
  "problem_conclusion": "..."
}

Options

  • -i, --input: Input file with APAR numbers (one per line)
  • -o, --output: Output directory (required unless using --gui)
  • -a, --apar: Single APAR number to process
  • -f, --format: Output format: txt or json (default: txt)
  • --gui: Use GUI for file selection (Windows only, requires tkinter)

Installing uv/uvx

macOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Or with pip:

pip install uv

Disclaimer

This is an unofficial tool and is not affiliated with or endorsed by IBM. This tool parses publicly available APAR information from IBM support pages for convenience purposes only. Users are responsible for complying with IBM's terms of service and acceptable use policies when using this tool.

Acknowledgments

Special thanks to Tom Tsai, the original author of this function.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apar_parser-1.0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apar_parser-1.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file apar_parser-1.0.1.tar.gz.

File metadata

  • Download URL: apar_parser-1.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.8

File hashes

Hashes for apar_parser-1.0.1.tar.gz
Algorithm Hash digest
SHA256 badabbabdee869c80db764d9adac8236568188346c23dda2169dcce92ee06181
MD5 d91cd79f62239c2906a1ff0e6a1eb3c1
BLAKE2b-256 2b6f643d5813476f59313b3fa797961e56fbe545fcae2f413aecd964970e343b

See more details on using hashes here.

File details

Details for the file apar_parser-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for apar_parser-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 402632ceff302c45240f37192616dcf4f537a6193edd31f2124f22e6604f1644
MD5 824fc2466fc7d2dd1b1e293eda5f84ae
BLAKE2b-256 c50aca3f5061c3722449484b30adc2ec073bdd4017fc39662050e9eac82a63b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page