knetvis - Kubernetes Network Policy Visualizer
A powerful CLI tool for visualizing and testing Kubernetes Network Policies.
Features
- 🎯 Visual Network Policy Analysis: Generate clear visualizations of your network policies
- 🔍 Policy Testing: Test connectivity between pods and services
- ✅ Policy Validation: Validate network policies before applying them
- 🌐 Cross-Namespace Support: Analyze policies across multiple namespaces
Demo
Quick Start
# Install knetvis
pip install knetvis
# Visualize network policies in a namespace
knetvis visualize my-namespace
# Test connectivity between pods
knetvis test pod/frontend pod/backend
# Validate a policy file
knetvis validate policy.yaml
Installation
Prerequisites
- Python 3.8 or higher
- Access to a Kubernetes cluster
- kubectl configured with cluster access
Install Methods
# Via pip
pip install knetvis
# From source
git clone https://github.com/yourusername/knetvis.git
cd knetvis
pip install -e .
Usage Examples
Visualizing Network Policies
# Basic visualization
knetvis visualize production -o network.png
# Show cross-namespace connections
knetvis visualize production --show-external
Testing Connectivity
# Test pod-to-pod connectivity
knetvis test pod/frontend pod/backend
# Test with namespace specification
knetvis test namespace/front/pod/web namespace/back/pod/api
Validating Policies
# Validate a single policy
knetvis validate policy.yaml
# Validate multiple policies
knetvis validate -d policies/
Documentation
Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- 📫 GitHub Issues
- 💬 Discussions
- 📖 Wiki
Acknowledgments
- The Kubernetes community
- All contributors and maintainers
Metadata
Release files for knetvis 0.1.1
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 |
|---|---|---|---|---|
| knetvis-0.1.1.tar.gz | 14.4 kB | With provenance | Details for knetvis-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| knetvis-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for knetvis-0.1.1-py3-none-any.whl |
Total release size: 26.4 kB
Release files / knetvis-0.1.1.tar.gz
| Download URL | knetvis-0.1.1.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1c06f0a58f650ac4e8e5a5950ebc6c8ab45d731819851dc0871210c41a3179d
|
|
BLAKE2b-256 checksum How to use checksums |
7a14bf23cd45f45c044e311525aac890535415ad72d9a2b3b0a944df262d00cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Jan 11, 2025.
Transparency logRelease files / knetvis-0.1.1-py3-none-any.whl
| Download URL | knetvis-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29c21d5eb9d46d3f88a4d9966943e16997d05a63da51ac9035a1ebd027d38ee1
|
|
BLAKE2b-256 checksum How to use checksums |
ed835db8d83043bbed12f33d5110e8b23069455d6767184c1607c051ce2ab352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Jan 11, 2025.
Transparency logSecurity for knetvis 0.1.1
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 knetvis-0.1.1.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 Jan 11, 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.