Skip to main content

Asynchronous (multi) must-gather parsing library.

Project description

must-gather-parser

Python Version publish workflow version

Asynchronous (multi) must-gather parsing library.

INSTALL

pip install must-gather-parser

This module uses PyYAML for parsing YAML files.

For significantly better performance, PyYAML should be installed with libyaml support.
When available, PyYAML automatically uses its C-based loader, resulting in much faster YAML processing.

libyaml installation

# Debian / Ubuntu
sudo apt install libyaml-dev
# macOS
brew install libyaml
# Fedora
sudo dnf install libyaml-devel

USAGE

import asyncio
from must_gather_parser import MustGather
import json

must_gather = MustGather()

async def main():
    try:
        await must_gather.use("/home/must-gather.local.1972254135986597168")
        x = await must_gather.get_resources(resource_kind_plural="pods", group="core", all_namespaces=True)
        print(json.dumps(x))
    except:
        must_gather.close()


if __name__ == "__main__":
    asyncio.run(main())

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

must_gather_parser-0.5.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

must_gather_parser-0.5.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file must_gather_parser-0.5.0.tar.gz.

File metadata

  • Download URL: must_gather_parser-0.5.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.14.0-1017-azure

File hashes

Hashes for must_gather_parser-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2d897e79169f2e4a2d42216679af7af0c19e8e50dfa083460fadeb38afbb218f
MD5 ef3dcc70ccaa6d66d3067989ba4d8b82
BLAKE2b-256 a95c6f8bc792d8bcd97a607cd1442c2f4f29ae187315d1eb1ba4db2ff76e36dd

See more details on using hashes here.

File details

Details for the file must_gather_parser-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: must_gather_parser-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.14.0-1017-azure

File hashes

Hashes for must_gather_parser-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfc0048438ee9e83454219ee4a924a2fa9454db3ec557b5c317e4f329fd271c8
MD5 34828048e1e3d42098dad91e1f7acb29
BLAKE2b-256 31eb9bd0f26f55088c96fb134898f49f37fb5bb4428658b451d91d97e48fdf7b

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