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:
        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.4.2.tar.gz (8.5 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.4.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: must_gather_parser-0.4.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for must_gather_parser-0.4.2.tar.gz
Algorithm Hash digest
SHA256 5ff7f784cd30908e453839d24130cd82215c39e384b262d69e4dd254a50f40b0
MD5 d1421ce582f2e928f60ba94851fdaa49
BLAKE2b-256 907045fcedd7186b6e74dd3ccd956485ead7045e9910784616a35b283ada1d6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: must_gather_parser-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for must_gather_parser-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3e3df79f4624374fb83c2f0d343a660936b26c24e125e9f811037051a1f0162
MD5 9d20ccf75e5978253805e9c9f6f28896
BLAKE2b-256 d8be6110c66677e097d4554ccd1737a06f1d2ff147678afad32f954305acee9a

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