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
import json

from must_gather_parser import MustGather


must_gather = MustGather()

async def main():
    try:
        await must_gather.use("/home/must-gather.local.1972254135986597168")
        out = await must_gather.get_resources(
            resource_kind_plural="pods",
            group="",
            all_namespaces=True
        )
        print(json.dumps(out))
    finally:
        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.1.tar.gz (8.6 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.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: must_gather_parser-0.5.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1020-azure

File hashes

Hashes for must_gather_parser-0.5.1.tar.gz
Algorithm Hash digest
SHA256 cf75d0c0f31463ec1f57d68dd65111f32c6fa60078fde1016071f5c405e68c14
MD5 b98a0eb7c74ecb6ec4d60fb19ad63665
BLAKE2b-256 75ec2212fe037f38e832877c1ea08d44db82b5ac5f6a0cf5755c0891d3917d20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: must_gather_parser-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1020-azure

File hashes

Hashes for must_gather_parser-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1804ffae12314e524c91dd068ee0887a1c8e295efd73363e29afc16b2c632182
MD5 4486deb0a90edd439b6959d96b55014f
BLAKE2b-256 5753a5687bcd52c93de6524afe6ca9a6e6cce8b6f54a79cda199b006bbd9e924

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