Skip to main content

Simple Python client for SonarQube Web API

Project description

simple-sonarqube-api

Sonarqube api python module

Usage

Example

Install module

$ pip install simple-sonarqube-api

Code example

from simple_sonarqube_api.client import SonarQubeClient

client = SonarQubeClient(
    base_url="https://sonar.midominio",
    token="squ_xxxxxxxxx"
)

assert client.is_authenticated()

issues = list(client.iter_issues(types="VULNERABILITY", resolved=False))
evidence = client.get_issue_code_evidence(issues[0]["key"], context_lines=3)

print(evidence["snippet"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_sonarqube_api-0.1.4.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_sonarqube_api-0.1.4-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file simple_sonarqube_api-0.1.4.tar.gz.

File metadata

  • Download URL: simple_sonarqube_api-0.1.4.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for simple_sonarqube_api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cc2f9c36e8cbbff9e07e6735f2903ad5dd4f3b6b6f9267486aaad1447134d228
MD5 e89a101a5432e1321450ff39eeaa2dfa
BLAKE2b-256 8fdca1e9c5ba65f9e70c588ad9879b7d32339ac68aa8876a2b7d4a84670a9e33

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_sonarqube_api-0.1.4.tar.gz:

Publisher: publish.yml on Mikehenrytech/simple-sonarqube-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simple_sonarqube_api-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_sonarqube_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f282e3a74010cdc62b22648a08cdacca27903c5988f6e3ef52f7881c513d66
MD5 a1d353c1652f0d4297f6c93624d4cd95
BLAKE2b-256 9cdd94f621adb49fac288bf6d3b02f5a84d6faf20211849b53880038c9cd82c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_sonarqube_api-0.1.4-py3-none-any.whl:

Publisher: publish.yml on Mikehenrytech/simple-sonarqube-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page