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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pygrafanaapi-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 604d41d5cced7cd5e580747d664d47a8a418987c4058c49dae06994236cf4f2a |
|
MD5 | 3dca8a1d1b346d8dbd13b6d799c43c54 |
|
BLAKE2b-256 | d610317c2d37695efd18e64ba8bfc0c0e51ffb510405fdaf8e8c65c26df0ae7d |