python-sonarqube-api
Python wrapper for the SonarQube and SonarCloud API.
Decision gist · record as of 2026-08-14
Yes, if you need a lightweight Python wrapper for SonarQube or SonarCloud APIs and can accept AGPLv3 licensing constraints. The low install friction and stable API make it suitable for read-only workflows. However, the 740-day dormancy means no active maintenance—evaluate whether you need the Professional Edition's broader API coverage or can work within the Community Edition's 40 endpoints, and verify compatibility with your SonarQube version.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running SonarQube or SonarCloud instance accessible at the specified URL; authentication token or username/password credentials must be available.
- Low install friction with a single runtime dependency (requests).
- Maintenance is dormant—no release in 740 days—so expect no active bug fixes or feature updates, though the package is marked as production-stable.
License · maintenance · safety
AGPLv3 (agpl) — Licensed under AGPLv3, which requires derivative works and modifications to be released under the same license and prohibits commercial use without source disclosure. This is a significant constraint for proprietary applications.
last release 2024-08-04 (740 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 399,067 downloads/mo, #6,952 on PyPI
Alternatives
Verify before relying
pip install python-sonarqube-api
from sonarqube import SonarQubeClient
sonar = SonarQubeClient(sonarqube_url="http://localhost:9000", token='your_token')
# Now call API methods on sonar object- Whether the 40 supported APIs in Community Edition cover your specific SonarQube use cases.
- Current compatibility with SonarQube versions beyond 8.9.x LTS given the dormant maintenance status.
- Whether dormancy affects real-world reliability for stable, read-only API interactions.
What it is and what it does
python-sonarqube-api is a Python wrapper around SonarQube and SonarCloud's REST APIs. It abstracts HTTP request handling and authentication, allowing developers to interact with code quality analysis data via simple Python method calls instead of raw HTTP. The Community Edition (free, AGPLv3) supports approximately 40 API endpoints and is compatible with SonarQube 7.9.x through 8.9.x; a paid Professional Edition offers over 280 endpoints and broader version support.
The library is initialized with a SonarQube URL and either a token or username/password credentials, then used to query project metrics, issues, and other analysis results. It depends only on requests for HTTP communication. The package has been in production-stable status but has not received updates in 740 days, so it is suitable for stable, read-only workflows but may lag behind newer SonarQube features or security patches.
Use it for
- Automate retrieval of code quality metrics and issue reports from SonarQube for CI/CD pipelines.
- Build dashboards or reports that aggregate SonarQube analysis data across multiple projects.
- Query SonarCloud results programmatically to enforce quality gates in development workflows.
- Integrate SonarQube findings into custom alerting or notification systems.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a lightweight Python wrapper for SonarQube or SonarCloud APIs and can accept AGPLv3 licensing constraints.
The low install friction and stable API make it suitable for read-only workflows. However, the 740-day dormancy means no active maintenance—evaluate whether you need the Professional Edition's broader API coverage or can work within the Community Edition's 40 endpoints, and verify compatibility with your SonarQube version.
Install
python-sonarqube-api on PyPI
Before you install
Low install friction with a single runtime dependency (requests). Maintenance is dormant—no release in 740 days—so expect no active bug fixes or feature updates, though the package is marked as production-stable.
Requires a running SonarQube or SonarCloud instance accessible at the specified URL; authentication token or username/password credentials must be available.
License in practice
Licensed under AGPLv3, which requires derivative works and modifications to be released under the same license and prohibits commercial use without source disclosure. This is a significant constraint for proprietary applications.
Quickstart
pip install python-sonarqube-api
from sonarqube import SonarQubeClient
sonar = SonarQubeClient(sonarqube_url="http://localhost:9000", token='your_token')
# Now call API methods on sonar object
Verify before relying
- Whether the 40 supported APIs in Community Edition cover your specific SonarQube use cases.
- Current compatibility with SonarQube versions beyond 8.9.x LTS given the dormant maintenance status.
- Whether dormancy affects real-world reliability for stable, read-only API interactions.
Package facts
| License | AGPLv3 agpl |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Dormant 740 days since the last release |
| First released | |
| Downloads | 399,067 / month, #6,952 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: PluginsIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Affero General Public License v3Operating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development |
Evidence: python_sonarqube_api-2.0.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sonarqube api client”
- python-sonarqube-apiProvides a Python client library for interacting with SonarQube and…
- pysonarA command-line scanner that integrates Python projects with SonarQube…
- fastcovFastcov generates code coverage reports in JSON, LCOV, and SonarQube…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also pysonar · python-gerrit-api · perplexityai · atlassian-python-api · kanboard · swimlane · p4python · WooCommerce · brave-search-python-client · google_api