Skip to main content
https://img.shields.io/pypi/pyversions/python-sonarqube-api.svg https://img.shields.io/pypi/v/python-sonarqube-api.svg https://pepy.tech/badge/python-sonarqube-api https://static.pepy.tech/badge/python-sonarqube-api/month https://sonarcloud.io/api/project_badges/measure?project=shijl0925_python-sonarqube-api&metric=alert_status https://img.shields.io/github/license/shijl0925/python-sonarqube-api.svg https://img.shields.io/badge/code%20style-black-000000.svg

Python Client library for interacting with Community, Developer, and Enterprise Editions SonarQube’s REST APIs and SonarCloud’s REST APIs.

python-sonarqube-api provides a simple interface for clients to interact with SonarQube via the REST API.

Editions

There are two editions of python-sonarqube-api:

Notice: Professional Edition’s extra features have been remarked by using Only available on the professional edition in API Document.

Differences

Community Edition

Professional Edition

License

GNU AGPLv3 License

MIT License

Commercial Use

No

Yes

Supported APIs (SonarQube Web APIs)

40

more than 280

Compatibility (SonarQube Versions)

7.9.x - 8.9.x

7.9.x - 10.x

Payment only needs to be made once, and library updates will be provided for free.

Change Log

Community Edition

See the CHANGELOG-CE.md file for Community Edition.

Professional Edition

See the CHANGELOG-PE.md file for Professional Edition.

Installation

Community Edition

The easiest way to install the latest version is by using pip to pull it from PyPI:

pip install  --upgrade python-sonarqube-api

Professional Edition

Use command pip to install the Python wheel or source package, Use –force-reinstall to force an installation If necessary:

pip install python_sonarqube_pro_api-x.y.z-py3-none-any.whl

where x, y, and z should be replaced by the current version number.

Documentation

The full documentation for API is available on readthedocs.

Compatibility

  • This package is compatible Python versions 2.7, 3.3+.

  • Tested with SonarQube Community Edition 8.9.x LTS and SonarCloud Server.

Donate

donations are not mandatory but very welcomed If you like my work and want to support development or buy me a coffee PayPal Donate

Usage

The Client is easy to use, you just need to initialize it with the connection parameters (default sonarqube url is http://localhost:9000).

Example:

from sonarqube import SonarQubeClient

sonar = SonarQubeClient(sonarqube_url="http://localhost:9000", username='admin', password='admin')

Sonar authentication tokens can also be used in place of username and password:

sonar = SonarQubeClient(sonarqube_url="http://localhost:9000", token='*****************')

API example

The example documentation for SonarQubeClient APIs is available on API examples.

Licensing

See the LICENSE file for licensing information as it pertains to files in this repository.

Metadata

Release files for python-sonarqube-api 2.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-sonarqube-api 2.0.5
File Size Uploaded
python_sonarqube_api-2.0.5.tar.gz 31.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-sonarqube-api 2.0.5
File Interpreter ABI Platform
python_sonarqube_api-2.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 73.4 kB

Release files / python_sonarqube_api-2.0.5.tar.gz

Download URL python_sonarqube_api-2.0.5.tar.gz
Size 31.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b7a785c10d4ae3532c592f6dfe3b5cc4cf489888c2995d822e5f80fdb8259219
BLAKE2b-256 checksum
How to use checksums
c4155190c9ef8ddfc91df47cc3b42bace763e7eeca59e96be07e6f7545901a87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / python_sonarqube_api-2.0.5-py3-none-any.whl

Download URL python_sonarqube_api-2.0.5-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95466a214d543b3ef0739a403448908a746d78f26766e031be3cd60463e319ef
BLAKE2b-256 checksum
How to use checksums
bbf8b20591532f40d93eaa086e0d43998d8d5f24fc02a5bd8034ffc8cb841c80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

2.0.5 This release

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page