{"id":13935536,"url":"https://github.com/dbt-labs/metricflow","last_synced_at":"2025-05-13T21:05:28.110Z","repository":{"id":37841572,"uuid":"477826645","full_name":"dbt-labs/metricflow","owner":"dbt-labs","description":"MetricFlow allows you to define, build, and maintain metrics in code.","archived":false,"fork":false,"pushed_at":"2025-04-26T01:16:13.000Z","size":34696,"stargazers_count":1202,"open_issues_count":119,"forks_count":99,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-04-26T01:19:27.190Z","etag":null,"topics":["analytics","business-intelligence","data","data-modeling","metrics","pypi","semantic-layer"],"latest_commit_sha":null,"homepage":"https://docs.getdbt.com/docs/build/about-metricflow","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbt-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-04T18:33:06.000Z","updated_at":"2025-04-26T01:16:15.000Z","dependencies_parsed_at":"2023-09-22T04:07:50.794Z","dependency_job_id":"7f46ef80-7b65-45a0-8a90-4d71924b15b6","html_url":"https://github.com/dbt-labs/metricflow","commit_stats":{"total_commits":2208,"total_committers":49,"mean_commits":45.06122448979592,"dds":0.7332427536231885,"last_synced_commit":"8c2e0641fb7f5d4ca02f9246df122a4382bcfc1a"},"previous_names":["transform-data/metricflow"],"tags_count":83,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbt-labs%2Fmetricflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbt-labs%2Fmetricflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbt-labs%2Fmetricflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbt-labs%2Fmetricflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbt-labs","download_url":"https://codeload.github.com/dbt-labs/metricflow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251114131,"owners_count":21538360,"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","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":["analytics","business-intelligence","data","data-modeling","metrics","pypi","semantic-layer"],"created_at":"2024-08-07T23:01:51.462Z","updated_at":"2025-04-28T15:25:13.186Z","avatar_url":"https://github.com/dbt-labs.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://transform.co/metricflow\"\u003e\n    \u003cpicture\u003e\n      \u003cimg  alt=\"metricflow logo\" src=\"https://github.com/dbt-labs/metricflow/raw/main/assets/MetricFlow_logo.png\" width=\"auto\" height=\"120\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\u003cbr /\u003e\n  \u003cb\u003eBuild and maintain all of your metric logic in code.\u003c/b\u003e\n  \u003cbr /\u003e\u003cbr /\u003e\n  \u003ca target=\"_blank\" href=\"https://twitter.com/dbt_labs\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/follow/dbt_labs?labelColor=image.png\u0026color=163B36\u0026logo=twitter\u0026style=flat\"\u003e\n  \u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"https://www.getdbt.com/community/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Slack-join-163B36\"\u003e\n  \u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"https://github.com/dbt-labs/metricflow\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/dbt-labs/metricflow?labelColor=image.png\u0026color=163B36\u0026logo=github\"\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n  \u003ca target=\"_blank\" href=\"https://github.com/dbt-labs/metricflow/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/l/metricflow?color=163B36\u0026logo=AGPL-3.0\"\u003e\n  \u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"https://pypi.org/project/metricflow/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/metricflow?labelColor=\u0026color=163B36\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/pypi/pyversions/metricflow?labelColor=\u0026color=163B36\"\u003e\n\u003c/p\u003e\n\n# Welcome to MetricFlow\n\nSee our latest updates in the [Metricflow Changelog](https://github.com/dbt-labs/metricflow/blob/main/CHANGELOG.md)!\n\nMetricFlow is a semantic layer that makes it easy to organize metric definitions. It takes those definitions and generates legible and reusable SQL. This makes it easy to get consistent metrics output broken down by attributes (dimensions) of interest.\n\nThe name comes from the approach taken to generate metrics. A query is compiled into a query plan (represented below) called a dataflow that constructs metrics. The plan is then optimized and rendered to engine-specific SQL.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/dbt-labs/metricflow/raw/main/assets/example_plan.svg\" height=\"500\"/\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\u003c/p\u003e\n\nMetricFlow provides a set of abstractions that help you construct complicated logic and dynamically generate queries to handle:\n\n- Multi-hop joins between fact and dimension sources\n- Complex metric types such as ratio, expression, and cumulative\n- Metric aggregation to different time granularities\n- And so much more\n\nTo get up and running with your own metrics, you should rely on [MetricFlow’s documentation](https://docs.getdbt.com/docs/build/build-metrics-intro).\n\n## Licensing\n\nMetricFlow is distributed under a Business Source License (BUSL-1.1). For details on our additional use grant, change license, and change date please refer to our [licensing agreement](https://github.com/dbt-labs/metricflow/blob/main/LICENSE).\n\n## Getting Started\n\n### Install MetricFlow\n\nMetricFlow can be installed from PyPi for use as a Python library with the following command:\n\n```\npip install dbt-metricflow\n```\n\nMetricFlow currently serves as a query compilation and SQL rendering library, built to work in conjunction with a dbt project. As such, using MetricFlow requires a working dbt project and a dbt adapter. We provide the `dbt-metricflow` bundle for this purpose. You may choose to install other adapters as optional extras from dbt-metricflow.\n\nYou may need to install Postgres or Graphviz. You can do so by following the install instructions for [Postgres](https://www.postgresql.org/download/) or [Graphviz](https://www.graphviz.org/download/). Mac users may prefer to use brew: `brew install postgresql` or `brew install graphviz`.\n\n### Tutorial\n\nThe best way to get started is to follow the tutorial steps, which you can access by running:\n\n```\nmf tutorial\n```\n\nNote: this must be run from a dbt project root directory.\n\n## Resources\n\n- [Website](https://transform.co/metricflow)\n- [Documentation](https://docs.getdbt.com/docs/build/build-metrics-intro)\n- [Slack Community](https://www.getdbt.com/community/)\n- [MetricFlow Git Repository](https://github.com/dbt-labs/metricflow)\n- [CHANGELOG.md](https://github.com/dbt-labs/metricflow/blob/main/CHANGELOG.md)\n- [TENETS.md](https://github.com/dbt-labs/metricflow/blob/main/TENETS.md)\n\n## Contributing and Code of Conduct\n\nThis project will be a place where people can easily contribute high-quality updates in a supportive environment.\n\nPlease read our [code of conduct](https://docs.getdbt.com/community/resources/code-of-conduct) before diving in.\n\nTo get started on direct contributions, head on over to our [contributor guide](https://github.com/dbt-labs/metricflow/blob/main/CONTRIBUTING.md).\n\n## License\n\nMetricFlow is source-available software.\n\nVersion 0 to 0.140.0 was covered by the Affero GPL license.\nVersion 0.150.0 and greater is covered by the BSL license..\n\nMetricFlow is built by [dbt Labs](https://www.getdbt.com/).\n","funding_links":[],"categories":["Semantic Layers \u0026 Metrics","Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbt-labs%2Fmetricflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbt-labs%2Fmetricflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbt-labs%2Fmetricflow/lists"}