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.3.tar.gz (23.5 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.3-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_sonarqube_api-0.1.3.tar.gz
  • Upload date:
  • Size: 23.5 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.3.tar.gz
Algorithm Hash digest
SHA256 98097780f006dec9ede6d109e57c305e27ed033d3c4032d7e781b7b3bf6b586b
MD5 12fc21af7f30eb02a39740b5f321e203
BLAKE2b-256 b4b200841a9870280e830412057b9d221c70b39c1a923d815db7682ab9797212

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_sonarqube_api-0.1.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_sonarqube_api-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87a276942baa04e75ccfa3d8b19643b906090f70d3a3ceaf6fe79cb0039343a0
MD5 e4121626bf701e0489dee3bc81ac1406
BLAKE2b-256 c47cde50c94733b7bd30352d3c989f8a295cde45342b26afbc8e77abe38f14a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_sonarqube_api-0.1.3-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