Metadata-Version: 2.1
Name: pygrafanaapi
Version: 1.0.0
Summary: pygrafanaapi facilitates the usage of grafana apis inside a python module
Home-page: https://github.com/stormalf/grafana_apis
Author: Stormalf
Author-email: stormalf.dev@gmail.com
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/stormalf/grafana_apis/issues
Project-URL: Source, https://github.com/stormalf/grafana_apis/
Keywords: pygrafanaapi
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.6, <4
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: cryptography
Requires-Dist: requests

# pygrafanaapi

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

[The source for this project is available here][src].

---

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)

---

[packaging guide]: https://packaging.python.org
[distribution tutorial]: https://packaging.python.org/tutorials/packaging-projects/
[src]: https://github.com/stormalf/grafana_apis
[rst]: http://docutils.sourceforge.net/rst.html
[md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
[md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional


