Skip to main content

Python Sonarqube Client

This library provide a programmatic interface to interact with SonarQube. It exposes both a client class and a CLI.

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.

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)

Source distribution for sonar-client 0.0.5
File Size Uploaded
sonar-client-0.0.5.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sonar-client 0.0.5
File Interpreter ABI Platform
sonar_client-0.0.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.5 This release

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