Skip to main content

Asynchronous (multi) must-gather parsing library.

Project description

must-gather-parser

Asynchronous (multi) must-gather parser 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.2.4.tar.gz (8.9 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.2.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for must_gather_parser-0.2.4.tar.gz
Algorithm Hash digest
SHA256 81057d58d4a8e31a9fa808438e5c5a61ab4b2794022b2dd2807591cc9fc0732e
MD5 660a90da1e3e92488167dc7c096eaefc
BLAKE2b-256 24408b2e9bf2e3680a1c2dbc504a6ccd2aa53b86fdedc5bc27270bcb3b6eec34

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for must_gather_parser-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a8dec0cccf6a76fede71dceff3a092db570eec47c795e39fe3b9612ba7bf38
MD5 073f2d9cf71b974e5de9449a1a4c193d
BLAKE2b-256 e808341addcd01b59040e2efa79a656dab83aa1692a9f2e67c73b88dc94d0321

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