Skip to main content

Git based metric store

Project description

Datagit

Datagit is a metric versionning library

>>> from datagit import query_builder, github_connector
>>> from github import Github
>>> query = query_builder.build_query(table_id = "mrr_table", unique_key_columns= ["organisation_id", "date"])
'SELECT CONCAT(organisation_id, '__', date) AS unique_key, * FROM mrr_table WHERE TRUE ORDER BY 1'

>>> dataframe = bigquery.Client().query(query).to_dataframe() # Get a dataframe anyway you want
>>> github_connector.store_metric(Github("Token"), dataframe=dataframe, filename="data/act_metrics_finance/mrr", assignee=["Samox"])
'data/act_metrics_finance/mrr.csv pushed on production branch'
'Historical data change detected'
'Pull request was open from production to main, Samox was assigned to it'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datagit-0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

datagit-0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page