Skip to main content

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

supportfile-0.1.14-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

supportfile-0.1.14-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

supportfile-0.1.14-cp39-abi3-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file supportfile-0.1.14-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for supportfile-0.1.14-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0aa48a60baa0146cdd568c700fd3322688d902ab816c443e5caf9006f0da1362
MD5 6fe2049a19868c50783908327b33eeec
BLAKE2b-256 e123b1749f591b73b7ee048b8dea914cd42475bccef15558abebdee5de4a0ffd

See more details on using hashes here.

Provenance

The following attestation bundles were made for supportfile-0.1.14-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: rust-python-packages.yml on fede2cr/azure-support-scripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supportfile-0.1.14-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for supportfile-0.1.14-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5abc9b166cf8b07a7a1e8280b51c1461d0a39b798b6e2e67d061b58ae46ae989
MD5 81507b201421622be8207bc8b844baa6
BLAKE2b-256 3a8b7885dee34cbd1ff1f979cd02338cfa1d74113b5d3f30d4d94830b6d7b255

See more details on using hashes here.

Provenance

The following attestation bundles were made for supportfile-0.1.14-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: rust-python-packages.yml on fede2cr/azure-support-scripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supportfile-0.1.14-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for supportfile-0.1.14-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10fcc139f6d5a1698d0b76394ec6e25af8bac2b0a241c0995851fda65aca928b
MD5 988b12389b7fe5a535fb02d70f3d52e1
BLAKE2b-256 20b82bf534526c2e29aed1f84bbf469e584a07892513162b2f18bab9341efeb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for supportfile-0.1.14-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: rust-python-packages.yml on fede2cr/azure-support-scripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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