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.3.0.tar.gz (9.1 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.3.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: must_gather_parser-0.3.0.tar.gz
  • Upload date:
  • Size: 9.1 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.3.0.tar.gz
Algorithm Hash digest
SHA256 18d39d7b9e16508b51ddb1d7a804dcd58e7c21fd4e06a4e0a0ec634edd9c3c12
MD5 5691428fa1921cd12e0661af753cb2e2
BLAKE2b-256 a471930c7140b87b5eb247959a661f5b1edcff892840f9f7666ddbee5165d3a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: must_gather_parser-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdec3a6e562126a38e2dfa4c328205c3575848c3b51ef2d157c390e7299d65c1
MD5 fd6401e936fd015d3492a8ae1fcc2aef
BLAKE2b-256 e5450d849f21fab1d90bd8b673182fee76a431ebca1ace3a7b3c404fbe923050

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