Skip to main content

pygrafanaapi facilitates the usage of grafana apis inside a python module

Project description

pygrafanaapi

pygrafanaapi contains some functions to facilitate the usage of grafana apis inside python modules.

The source for this project is available here.


Example of importing grafanaapi inside a python module :

import os from pygrafanaapi import GrafanaApi

url = "http://localhost:3000" json = "apikey2.json" itoken = os.environ.get("GRAFANA_TOKEN") key, message= GrafanaApi.createApiKey(url, json, token=itoken) print(key) print(message) keys = GrafanaApi.listApiKeys(url, token=itoken) for key in keys: print(key)


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

pygrafanaapi-1.0.0.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

pygrafanaapi-1.0.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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