{"categories":[{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking"}],"enrichment":{"capability":"Provides Python bindings for Kubernetes port-forwarding, allowing you to forward local ports to pods or services in a cluster using your kubeconfig file.","skillfed_tags":["kubernetes","port-forwarding","devops"],"use_cases":["Integration tests that need to reach Kubernetes services from a test runner without spawning kubectl subprocesses.","Local development workflows where you want to proxy a remote service to localhost within a Python application.","Automated deployment or health-check scripts that need to temporarily access cluster services.","Multi-service testing setups where you forward several pods to different local ports in a single test session."],"what_it_does":"portforward is a Python library that wraps Kubernetes port-forwarding functionality, letting you programmatically tunnel local ports to pods or services in a cluster without invoking kubectl as a subprocess. It reads your kubeconfig (or a path you provide) and establishes the same kind of port-forward connection that kubectl port-forward would create, but from within Python code.\n\nThe library is built on Rust via PyO3 for performance and reliability. It supports both synchronous context-manager usage and async clients, can forward to either pods or services (trying pods first), and handles multiple forwards per target. It's useful for integration testing, local development against staging clusters, or any scenario where you need programmatic access to remote services without manual kubectl commands.","worth_installing":"Yes, if you need programmatic Kubernetes port-forwarding in Python. The package is actively maintained, has no known vulnerabilities, supports modern Python versions with pre-built wheels, and solves a real problem for developers and CI/CD pipelines. The MIT license is permissive. Install friction is moderate due to Rust compilation, but wheels cover most platforms. Start with the quickstart example in the documentation."},"id":"portforward","links":{"html":"https://skillfed.io/packages/portforward","md":"https://skillfed.io/packages/portforward.md","pypi":"https://pypi.org/project/portforward/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-29","license_spdx":null,"license_treatment":"permissive","name":"portforward","python_support":"supports_current","summary":"Easy Kubernetes Port-Forward For Python"},"popularity":{"monthly_downloads":275535,"position":8174,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7.6"}
