$npx skillfedfor your agent

grafana-foundation-sdk

A set of tools, types and libraries for building and manipulating Grafana objects.

Worth itPyPI LibrariesReleased Jan 2026356.0K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — grafana_foundation_sdk-1769699998!10.1.0-py3-none-any.whl
v1769699998!10.1.0 · released 2026-01-29 · Python >=3.11

Yes. The package is actively maintained, has no security vulnerabilities, installs with zero dependencies, and is permissively licensed. It is well-suited for anyone building Grafana dashboards programmatically or managing them as code. The main consideration is that it targets Grafana v10.1.x specifically; if you use a different Grafana version, you will need the corresponding SDK branch.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later.
  • Low install friction; pure Python wheel with no runtime dependencies.
  • Actively maintained with recent commits and a stable release cadence.

License · maintenance · safety

permissive license (permissive) — Permissive license (Apache Software License) allows commercial and private use with minimal restrictions.

last release 2026-01-29 (197 days) · last repo commit 2026-08-14 · 252 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 356,035 downloads/mo, #7,285 on PyPI

Verify before relying

pip install 'grafana_foundation_sdk==1769699998!10.1.0'

from grafana_foundation_sdk.builders.dashboard import Dashboard
from grafana_foundation_sdk.builders.timeseries import Panel as Timeseries
from grafana_foundation_sdk.cog.encoder import JSONEncoder

dashboard = Dashboard("My Dashboard").with_panel(
    Timeseries().title("Metric")
).build()

print(JSONEncoder().encode(dashboard))
  • Whether the generated types cover all Grafana v10.1.x panel and datasource types, or if custom extensions are often needed.
  • Performance characteristics when building or unmarshaling large dashboards with many panels and queries.
  • Compatibility guarantees when upgrading between Grafana versions or SDK releases.
Same gist for agents: .md · .json

What it is and what it does

The Grafana Foundation SDK is a Python library that provides generated types and builder classes for constructing Grafana objects—dashboards, panels, queries, and their configurations—in code rather than through the UI. It ships with support for all core Grafana datasources (Prometheus, Loki, etc.) and panel types, and can be extended with custom query and panel types for third-party plugins.

The library is organized around a builder pattern: you chain method calls to configure objects, then call `.build()` to produce a JSON-serializable representation. It also supports unmarshaling: reading existing Grafana JSON and converting it back into typed Python objects. The types are generated from Grafana v10.1.x schemas, so the SDK is version-specific; other Grafana versions have separate branches in the repository.

Use it for

  • Generate Grafana dashboards programmatically from infrastructure definitions or monitoring requirements.
  • Build dashboard templates that can be instantiated with different parameters for different environments.
  • Parse and modify existing Grafana dashboards exported as JSON without manual editing.
  • Integrate Grafana dashboard creation into CI/CD pipelines or infrastructure-as-code workflows.
  • Define custom query types or panel options for private Grafana plugins.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no security vulnerabilities, installs with zero dependencies, and is permissively licensed. It is well-suited for anyone building Grafana dashboards programmatically or managing them as code. The main consideration is that it targets Grafana v10.1.x specifically; if you use a different Grafana version, you will need the corresponding SDK branch.

Install

grafana-foundation-sdk on PyPI

Before you install

Low install friction; pure Python wheel with no runtime dependencies. Actively maintained with recent commits and a stable release cadence.

Requires Python 3.11 or later.

License in practice

Permissive license (Apache Software License) allows commercial and private use with minimal restrictions.

Quickstart

pip install 'grafana_foundation_sdk==1769699998!10.1.0'

from grafana_foundation_sdk.builders.dashboard import Dashboard
from grafana_foundation_sdk.builders.timeseries import Panel as Timeseries
from grafana_foundation_sdk.cog.encoder import JSONEncoder

dashboard = Dashboard("My Dashboard").with_panel(
    Timeseries().title("Metric")
).build()

print(JSONEncoder().encode(dashboard))

Verify before relying

  • Whether the generated types cover all Grafana v10.1.x panel and datasource types, or if custom extensions are often needed.
  • Performance characteristics when building or unmarshaling large dashboards with many panels and queries.
  • Compatibility guarantees when upgrading between Grafana versions or SDK releases.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 197 days since the last release
Last repo commit
First released
Downloads356,035 / month, #7,285 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Topic :: Software Development :: LibrariesTopic :: System :: Monitoring

Evidence: grafana_foundation_sdk-1769699998!10.1.0-py3-none-any.whl

Tags

Capabilities
grafana dashboard builder pythongrafana sdk pythonprogrammatic grafana dashboardgrafana object typesgrafana panel buildergrafana query builderinfrastructure as code grafana
Topics
infrastructure-as-codegrafanabuilder-pattern
PyPI keywords
grafanalogsmetricsobservabilitysdktraces

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “grafana dashboard builder python”

  • grafana-foundation-sdkProvides Python types, builders, and tools for programmatically…
  • grafanalibGenerates Grafana dashboards from Python code, letting you…
  • grafana-clientA Python client library for the Grafana HTTP API, supporting both…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also grafanalib · grafana-client · mcp-grafana · pulumiverse-grafana · mypy-boto3-grafana · panel · panel-material-ui · grafana-django-saml2-auth · sphinx-panels · wandb-workspaces