Kubejyg
Kubernetes Resource Extraction with Namespace Grouping.
How it works
kubejyg extracts Kubernetes resources across multiple namespaces, grouping them by namespace. The output is generated in either JSON or YAML, ready to be piped into well known processors like jq, yq, and grep.
Examples
Fetch all deployment manifests from all namespaces in YAML.
kubejyg | yq ".Namespaces.[].[].[].Deployments" -C
Fetch all deployment manifests across all namespaces in YAML and filter nulls.
kubejyg | yq ".Namespaces[].[].[].Deployments | select ( . != null ) | .[]" -C
Fetch all the annotations from all the Services across all Namespaces in JSON.
kubejyg -o json | jq ".Namespaces[].[].[].Services | select ( . != null) | .[].metadata.annotations" -C
Output structure
{
"Namespaces": [
{
"ns-1": [
{
"Deployments": [
{
deployment-manifest-1
}
...
]
"Services": [
{
service-manifest-1
}
...
]
"Ingress": [
{
ingress-manifest-1
}
...
]
}
]
...
}
]
}
Installation
pip install kubejyg
Features
Kubernetes resources:
- Deployments
- Services
- Ingresses
Output:
- YAML
- JSON
Naming
kubejyg is named after the following utilities:
kubectljqyqgrep
Gotchas
jq: error (at <stdin>:1): Cannot iterate over null (null).
Some namespaces might not contain resources of all kinds. If we apply filters over empty arrays, jq and yq will replaces those arrays with null values. Applying filters over them will error out. Use select ( . != null) to filter null expressions, see examples for details.
Contributing
- Create an issue
- Fork
- Change
- Open PR
- Profit!
Metadata
Release files for kubejyg 0.3.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kubejyg-0.3.17.tar.gz | 16.7 kB | With provenance | Details for kubejyg-0.3.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kubejyg-0.3.17-py3-none-any.whl | Python 3 | none | any | Details for kubejyg-0.3.17-py3-none-any.whl |
Total release size: 34.4 kB
Release files / kubejyg-0.3.17.tar.gz
| Download URL | kubejyg-0.3.17.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8890436f78011499a72ae33550e7f017083815b6c7f623540b2ba818d855942d
|
|
BLAKE2b-256 checksum How to use checksums |
6b816257699de8af1834a3b7727761a8449e4136fba53aaac4ce9eb0c08f7576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2025.
Transparency logRelease files / kubejyg-0.3.17-py3-none-any.whl
| Download URL | kubejyg-0.3.17-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
238fb0f8a62a1f0a1e81c003402e99357cc2bd85b6dac391b96f0999628a69e7
|
|
BLAKE2b-256 checksum How to use checksums |
739142d5ef10b97a0005506eec8013f428152d9303633dfa5b280ff527823821
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2025.
Transparency logSecurity for kubejyg 0.3.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kubejyg-0.3.17.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.