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.0.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.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: must_gather_parser-0.4.0.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.0.tar.gz
Algorithm Hash digest
SHA256 0464df43c95b20f9840063ecb78f70f06505ca800294064cf0bb2b73357f647d
MD5 7482373c42e8de8b3c11a5e9bf3dff1d
BLAKE2b-256 ab6e776811e14b5b90b80fb3e5d00516cfcd22592bd9723b6780dcb7e60388b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: must_gather_parser-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c487eccd19ee1be7d4f094a11d37afcb4cd780cb72e915a0d6bf723c9a81e7a
MD5 e8be8e106df8c2c0bda68f7973b1de02
BLAKE2b-256 fcef294b2bdfd05a4809d8a2de343d2c7b9323faf41e0032375de305b9dbdede

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