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.0.tar.gz (6.2 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.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apar_parser-1.0.0.tar.gz
Algorithm Hash digest
SHA256 85d0f4f96fbc4069adbfd9544fce004425197e3b97c4017c84558d2685099a80
MD5 1cf0bb802658a322318acc97e3b69114
BLAKE2b-256 b2f300d8b07915718a31f9ac69c8317f461403f8f552ccc3f2ed91b9421ee52c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apar_parser-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a38fa6c764327352827a397b92217dfcc74364dcf171eb86cfb21d0cb89ce894
MD5 22549fb6fc8f694542513dce71eea99f
BLAKE2b-256 7f69f85b6f31a4a3b452e7698088da9d8a9747439a18d665d88a46da07041172

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