Supportfile library for support file analysis
Project description
Supportfile Python wrapper
This crate exposes the Supportfile library core as a native Python extension.
Install for local development
From the lib folder:
- python3 -m venv .venv
- . .venv/bin/activate
- python -m pip install -e ./supportfile_py
Build a wheel for distribution
From the wrapper folder:
- ./build-wheel.sh
The script creates a local build virtual environment automatically and writes the built wheel under the dist folder.
GitHub publishing
The repository CI now builds the Rust crate and Python wheels for both amd64 and arm64, and publishes them on release tags.
Then import it normally in Python:
import supportfile
result_json = supportfile.parse_high_cpu_events(log_text)
Current exported functions:
- parse_high_cpu_events
- parse_cluster_events
- parse_cluster_status
- parse_corosync_config
- parse_cluster_maintenance_mode
- parse_automation_events
- parse_azure_vm_properties
- parse_suse_cloud_register
- parse_waagent_config
- parse_waagent_log
- parse_hv_balloon
- parse_extfrag
- parse_emergency_mode
- parse_kernel_reboots
- parse_oom_killer
- parse_xfs_errors
- parse_firewall_rules
- parse_network_interfaces
- parse_distro_packages
- parse_ssh_service_issues
- parse_dlm_service
- parse_azure_site_recovery
- parse_guardicore_agent
- parse_illumio
- parse_trend_micro
- parse_falcon_sensor
- parse_falcon_sensor_config
- parse_ms_defender
- parse_ms_defender_config
- parse_involflt_version
- parse_involflt_kernel_version
- parse_azure_extensions
- parse_lvm_config
- parse_raid_config
- parse_btrfs_config
- parse_block_devices
- parse_fstab_analysis
- parse_df_output
- parse_mtab_analysis
- parse_basic_environment
- parse_os_release
- parse_fstab
- parse_inspect_disk_results
- parse_kernel_tuning
- parse_huge_pages
- parse_time_sync
- parse_ptp_clock_source
- parse_time_sync_service
- parse_timedatectl
- parse_ptp_device
- parse_chrony_tracking
- parse_chrony_makestep
- parse_rhui_config
- parse_eus_version_lock
- parse_rhel_rhui_check
- parse_crypto_policies
- parse_fips_mode_setup
- parse_kernel_cmdline
- parse_rhui_errors
- parse_leapp_report
- parse_leapp_log
- parse_vmcore_dmesg
- parse_kdump_status
- parse_crash_listing
- parse_kdump_conf
- parse_vmcore_summary
It depends on the shared parser implementation in the sibling supportfile_core crate.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supportfile-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: supportfile-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8edb2395d5feee5131be7c848ec32f4f0c297affe6b9215b885be9d961b2559
|
|
| MD5 |
6ebe594c2349e031f1c6c768528994ec
|
|
| BLAKE2b-256 |
1a9ea0ddff857cbfbdba8252beb0e1ff730f59b96b1357daf13bb5393b7fb15b
|
Provenance
The following attestation bundles were made for supportfile-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
rust-python-packages.yml on fede2cr/azure-support-scripts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
supportfile-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
b8edb2395d5feee5131be7c848ec32f4f0c297affe6b9215b885be9d961b2559 - Sigstore transparency entry: 1634435157
- Sigstore integration time:
-
Permalink:
fede2cr/azure-support-scripts@df37f9e271a86f780fb488b051b446b5d292f330 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/fede2cr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
rust-python-packages.yml@df37f9e271a86f780fb488b051b446b5d292f330 -
Trigger Event:
push
-
Statement type:
File details
Details for the file supportfile-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: supportfile-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53654ae2f17fd9383aa0d60669b7c94f6a4d33989c4453d6051d955e130be43e
|
|
| MD5 |
f9237143489790dc94a661cd68e81458
|
|
| BLAKE2b-256 |
fe722b358ae5704e44eaa783c85f41c2490cb3d08714254035f8b938035b3c03
|
Provenance
The following attestation bundles were made for supportfile-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
rust-python-packages.yml on fede2cr/azure-support-scripts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
supportfile-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
53654ae2f17fd9383aa0d60669b7c94f6a4d33989c4453d6051d955e130be43e - Sigstore transparency entry: 1634435078
- Sigstore integration time:
-
Permalink:
fede2cr/azure-support-scripts@df37f9e271a86f780fb488b051b446b5d292f330 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/fede2cr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
rust-python-packages.yml@df37f9e271a86f780fb488b051b446b5d292f330 -
Trigger Event:
push
-
Statement type: