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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygrafanaapi-1.0.0.tar.gz.
File metadata
- Download URL: pygrafanaapi-1.0.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.57.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be7aa858d75085f38ec4fff854cbac6f35458e60a4dd5316ec3984fc4028ca56
|
|
| MD5 |
ec03eb7515d32aa0ed9f92572c8dd7e8
|
|
| BLAKE2b-256 |
a5701bc689d388fb12eddd94e00afe0205cd745722691c067c491960578893df
|
File details
Details for the file pygrafanaapi-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pygrafanaapi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.57.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
604d41d5cced7cd5e580747d664d47a8a418987c4058c49dae06994236cf4f2a
|
|
| MD5 |
3dca8a1d1b346d8dbd13b6d799c43c54
|
|
| BLAKE2b-256 |
d610317c2d37695efd18e64ba8bfc0c0e51ffb510405fdaf8e8c65c26df0ae7d
|