Python Sonarqube Client
This library provide a programmatic interface to interact with SonarQube. It exposes both a client class and a CLI.
- Fore more information, checkout sonar-client documentation
Installation
pip install sonar-client
Example Usage
Using python interface
from sonar_client import SonarClient
sonar_token = "fake-token"
sonar = SonarClient(sonar_token, sonar_url="https://sonarcloud.io")
projects = sonar.search_project(organization="myorg")
Using CLI interface
You can discover available CLI commands by using --help options.
$ sonar-cli --help
Usage: sonar-cli [OPTIONS] COMMAND [ARGS]...
SonarQube CLI
Options:
--token TEXT Sonar access token
--help Show this message and exit.
Commands:
project Sonar project management
$ sonar-cli project create --help
Usage: sonar-cli project create [OPTIONS]
Create sonarqube project
Options:
--org TEXT Sonar organization [required]
--key TEXT Sonar project key [required]
--title TEXT Sonar project title [required]
--help Show this message and exit.
Metadata
Release files for sonar-client 0.0.5
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 |
|---|---|---|---|---|
| sonar-client-0.0.5.tar.gz | 4.0 kB | Without provenance | Details for sonar-client-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sonar_client-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for sonar_client-0.0.5-py3-none-any.whl |
Total release size: 9.6 kB
Release files / sonar-client-0.0.5.tar.gz
| Download URL | sonar-client-0.0.5.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbce52cdc42cd4184694b1f0eb38bb716c2364016d56cd694ce1c8fbe6811532
|
|
BLAKE2b-256 checksum How to use checksums |
9bffc1e28a33357b12e212b485ef5e13006951b47d5898d9f62a5d3464fb6afa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / sonar_client-0.0.5-py3-none-any.whl
| Download URL | sonar_client-0.0.5-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c84160d577e3713b997cfa289cb4a815f57514af23e570345eaf87fbd545f957
|
|
BLAKE2b-256 checksum How to use checksums |
1745fa8abe4b88ba39118f62af0b902d89bd2f713b7ef3125a0e5653ff7f713a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Security for sonar-client 0.0.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.