Skip to main content

Simple Python client for SonarQube Web API

Project description

simple-sonarqube-api

Sonarqube api python module

Usage

Example

from simple_sonarqube_api 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.1.tar.gz (22.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.1-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_sonarqube_api-0.1.1.tar.gz
  • Upload date:
  • Size: 22.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.1.tar.gz
Algorithm Hash digest
SHA256 0d7e716a52dddc5afbba9148e8fb6c20c821b16bdc9516a03633b9e84fcc2ca9
MD5 be304298e4474902e8dbd503ef8147cb
BLAKE2b-256 39fb8c4b6d826a0ac83bc5e5694b1043ce224f33628b50644f3a974b5d22dceb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for simple_sonarqube_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbb21891b78b7250587ca2bcb608fe272029a5bb6d0658765447db3ea25786d0
MD5 c487df9f1acd00ac2f391fb71743f145
BLAKE2b-256 a23dc470a28cbc91841fa7c9b5c1457c95559a99c1337b78ee225a911e1b43ee

See more details on using hashes here.

Provenance

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