python-gvm
Library to communicate with remote servers over GMP or OSP
What it is and what it does
python-gvm is a Python library that wraps the Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP) to enable remote control of Greenbone vulnerability management systems. It abstracts the underlying XML-based communication protocols, allowing developers to authenticate, retrieve vulnerability data, manage tasks, and interact with Greenbone Community Edition installations and Enterprise Appliances through straightforward Python method calls. The library uses lxml for XML parsing and httpx for HTTP communication, with paramiko available for SSH-based connections.
The package is actively maintained by Greenbone AG, supports Python 3.10 through 3.14, and is classified as Production/Stable. It handles the complexity of GMP/OSP protocol details so users can focus on vulnerability management workflows rather than protocol mechanics. The library is typically used by security teams and automation platforms that need programmatic access to Greenbone scanning and reporting capabilities.
Use it for:
- Automate vulnerability scanning workflows by remotely creating, scheduling, and retrieving results from Greenbone tasks.
- Build custom dashboards or reporting tools that aggregate vulnerability data from Greenbone installations.
- Integrate Greenbone scanning into CI/CD pipelines to perform automated security assessments on deployments.
- Develop security orchestration scripts that coordinate vulnerability management across multiple Greenbone instances.
- Query and export vulnerability data in custom formats for compliance reporting or third-party analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python library that abstracts the Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP) to remotely control Greenbone vulnerability management systems.
Yes. The package is actively maintained (release 11 days old), has no known vulnerabilities, supports current Python versions (3.10–3.14), and carries low install friction. The copyleft GPL-3.0-or-later license is a consideration only if you plan to distribute derivative works. Install if you need to programmatically control Greenbone vulnerability management systems; skip if you have no Greenbone infrastructure to manage.
Install
python-gvm on PyPI
pip
pip install python-gvmuv
uv add python-gvmpoetry
poetry add python-gvmInstalling python-gvm
Before you install
Low friction installation with three straightforward runtime dependencies (httpx, lxml, paramiko). Actively maintained with a release 11 days old and last commit on 2026-08-10, indicating steady development.
License in practice
Licensed under GPL-3.0-or-later (copyleft). Any derivative work or modification must be distributed under the same license terms, and source code must be made available to users.
Quickstart
pip install python-gvm
from gvm.connections import UnixSocketConnection
from gvm.protocols.gmp import GMP
from gvm.transforms import EtreeTransform
connection = UnixSocketConnection()
transform = EtreeTransform()
with GMP(connection, transform=transform) as gmp:
gmp.authenticate('user', 'pass')
tasks = gmp.get_tasks()
Requires Python 3.10 or later. Requires a running Greenbone Management daemon accessible via Unix socket or network connection.
Verify before relying
- Whether the package works with all Greenbone Community Edition and Enterprise Appliance versions currently in use, given the documented version compatibility constraints.
- Performance characteristics and typical response times for large-scale vulnerability queries.
- Whether paramiko is used for SSH transport or only for specific connection types.
Package facts
| License | GPL-3.0-or-later (copyleft) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — httpx, lxml, paramiko |
| Maintenance | actively maintained — 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,212/month — #13,942 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_gvm-27.6.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pontosPontos is a collection of Python utilities and…
copyleft · top 15,000 on PyPI
pyghmiPyghmi provides Python bindings for IPMI…
permissive · top 15,000 on PyPI
safetySafety CLI scans Python project dependencies…
permissive · top 5,000 on PyPI
uv-secureScans uv.lock, pylock.toml, and…
permissive · top 15,000 on PyPI
zaproxyPython client library for the OWASP ZAP…
permissive · top 15,000 on PyPI
cisco-ai-mcp-scannerScans MCP (Model Context Protocol) servers and…
unclear · top 15,000 on PyPI
clamav-clientA Python client library for the ClamAV…
copyleft · top 15,000 on PyPI
pigpioProvides Python access to the pigpio daemon for…
permissive · top 15,000 on PyPI
ibm-platform-servicesPython client library for IBM Cloud Platform…
permissive · top 5,000 on PyPI