{"id":15009932,"url":"https://github.com/m0nhawk/grafana_api","last_synced_at":"2025-10-03T19:30:23.880Z","repository":{"id":27311979,"uuid":"113315571","full_name":"m0nhawk/grafana_api","owner":"m0nhawk","description":"Yet another Python library for Grafana API","archived":true,"fork":false,"pushed_at":"2022-07-22T06:29:35.000Z","size":285,"stargazers_count":109,"open_issues_count":15,"forks_count":68,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-08-27T00:13:47.745Z","etag":null,"topics":["api-client","grafana-api","pypi","python","python-3"],"latest_commit_sha":null,"homepage":"https://m0nhawk.github.io/grafana_api/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m0nhawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2017-12-06T12:49:10.000Z","updated_at":"2025-08-19T09:13:33.000Z","dependencies_parsed_at":"2022-08-07T12:16:04.221Z","dependency_job_id":null,"html_url":"https://github.com/m0nhawk/grafana_api","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/m0nhawk/grafana_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0nhawk%2Fgrafana_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0nhawk%2Fgrafana_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0nhawk%2Fgrafana_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0nhawk%2Fgrafana_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m0nhawk","download_url":"https://codeload.github.com/m0nhawk/grafana_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0nhawk%2Fgrafana_api/sbom","scorecard":{"id":608200,"data":{"date":"2025-08-11","repo":{"name":"github.com/m0nhawk/grafana_api","commit":"85751f553bea5c273faf84d860d53f84842c72dc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 2/12 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/m0nhawk/grafana_api/test.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:18","Warn: goCommand not pinned by hash: .github/workflows/release.yml:24","Warn: goCommand not pinned by hash: .github/workflows/release.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:29","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned","Info:   0 out of   2 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.9.3 not signed: https://api.github.com/repos/m0nhawk/grafana_api/releases/23058490","Warn: release artifact 0.9.3 does not have provenance: https://api.github.com/repos/m0nhawk/grafana_api/releases/23058490"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T02:05:03.331Z","repository_id":27311979,"created_at":"2025-08-21T02:05:03.331Z","updated_at":"2025-08-21T02:05:03.331Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277261230,"owners_count":25788578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-27T02:00:08.978Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","grafana-api","pypi","python","python-3"],"created_at":"2024-09-24T19:29:10.714Z","updated_at":"2025-10-03T19:30:23.570Z","avatar_url":"https://github.com/m0nhawk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This project is not supported anymore. Prefer using other options.\n\n---\n\n# grafana_api [![Github Actions Test](https://github.com/m0nhawk/grafana_api/workflows/Test/badge.svg)](https://github.com/m0nhawk/grafana_api/actions?query=workflow%3ATest) [![GitHub license](https://img.shields.io/github/license/m0nhawk/grafana_api.svg?style=flat-square)](https://github.com/m0nhawk/grafana_api/blob/master/LICENSE)  [![Codecov](https://img.shields.io/codecov/c/gh/m0nhawk/grafana_api.svg?style=flat-square)](https://codecov.io/gh/m0nhawk/grafana_api/)\n\n[![PyPI](https://img.shields.io/pypi/v/grafana_api.svg?style=flat-square)](https://pypi.org/project/grafana-api/) [![Conda](https://img.shields.io/conda/v/m0nhawk/grafana_api.svg?style=flat-square)](https://anaconda.org/m0nhawk/grafana_api)\n\n## What is this library for?\n\nYet another Grafana API library for Python. Support Python 3 only.\n\n## Requirements\n\nYou need Python 3 and only the `requests` library installed.\n\n## Quick start\n\nInstall the pip package:\n\n```\npip install -U grafana_api\n```\n\nAnd then connect to your Grafana API endpoint:\n\n```python\nfrom grafana_api.grafana_face import GrafanaFace\n\ngrafana_api = GrafanaFace(auth='abcde....', host='api.my-grafana-host.com')\n\n# Create user\nuser = grafana_api.admin.create_user({\"name\": \"User\", \"email\": \"user@domain.com\", \"login\": \"user\", \"password\": \"userpassword\", \"OrgId\": 1})\n\n# Change user password\nuser = grafana_api.admin.change_user_password(2, \"newpassword\")\n\n# Search dashboards based on tag\ngrafana_api.search.search_dashboards(tag='applications')\n\n# Find a user by email\nuser = grafana_api.users.find_user('test@test.com')\n\n# Add user to team 2\ngrafana_api.teams.add_team_member(2, user[\"id\"])\n\n# Create or update a dashboard\ngrafana_api.dashboard.update_dashboard(dashboard={'dashboard': {...}, 'folderId': 0, 'overwrite': True})\n\n# Delete a dashboard by UID\ngrafana_api.dashboard.delete_dashboard(dashboard_uid='abcdefgh')\n\n# Create organization\ngrafana_api.organization.create_organization({\"name\":\"new_organization\"})\n```\n\n\n## Authentication\n\nThere are two ways to autheticate to grafana api. Either use api token or basic auth.\n\nTo use admin API you need to use basic auth [as stated here](https://grafana.com/docs/grafana/latest/http_api/admin/)\n\n```python\n# Use basic authentication:\n\ngrafana_api = GrafanaFace(\n          auth=(\"username\",\"password\"),\n          host='api.my-grafana-host.com'\n          )\n\n# Use token\ngrafana_api = GrafanaFace(\n          auth='abcdetoken...',\n          host='api.my-grafana-host.com'\n          )\n```\n\n\n## Status of REST API realization\n\nWork on API implementation still in progress.\n\n| API | Status |\n|---|---|\n| Admin | + |\n| Alerting | - |\n| Alerting Notification Channels | + |\n| Annotations | + |\n| Authentication | +- |\n| Dashboard | + |\n| Dashboard Versions | - |\n| Dashboard Permissions | + |\n| Data Source | + |\n| Folder | + |\n| Folder Permissions | + |\n| Folder/Dashboard Search | +- |\n| Organisation | + |\n| Other | + |\n| Preferences | + |\n| Snapshot | + |\n| Teams | + |\n| User | + |\n\n## Issue tracker\n\nPlease report any bugs and enhancement ideas using the `grafana_api` issue tracker:\n\n  https://github.com/m0nhawk/grafana_api/issues\n\nFeel free to also ask questions on the tracker.\n\n## License\n\n`grafana_api` is licensed under the terms of the MIT License (see the file\n[LICENSE](LICENSE)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0nhawk%2Fgrafana_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0nhawk%2Fgrafana_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0nhawk%2Fgrafana_api/lists"}