Asynchronous (multi) must-gather parsing library.
Project description
must-gather-parser
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file must_gather_parser-0.4.1.tar.gz.
File metadata
- Download URL: must_gather_parser-0.4.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34f5e72bcfac8bf4545378981b5ba766c29e2ca7a0366ba73603b33129e1d272
|
|
| MD5 |
797444d5d43d3e9f9bae1cd52f6bcf02
|
|
| BLAKE2b-256 |
a1637675421cca9dcb06eaeedb3caadee55d6b6f0e31fc75d510b64928aaea75
|
File details
Details for the file must_gather_parser-0.4.1-py3-none-any.whl.
File metadata
- Download URL: must_gather_parser-0.4.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
653234b344282be6955cfab4287d5c09f70bb319efb43a9fe133cf028d35de34
|
|
| MD5 |
08e02ef6e41722f698b61d9d1f7f9d14
|
|
| BLAKE2b-256 |
a820b64f6d6dc42f4194071ac11461dbdd1fa42f7af79a1ad6d4eceaa967d5aa
|