From 3e773630e2d9fe64e662ca1f3c84103f79a1da25 Mon Sep 17 00:00:00 2001 From: Christopher Gondek Date: Mon, 13 Oct 2025 16:10:50 +0200 Subject: [PATCH] chore: final touches for prod --- .env.example | 27 +++++++++++++++++++++++++++ .gitignore | 6 ++++++ pyproject.toml | 1 + src/pp-config.yaml | 4 ++-- uv.lock | 2 ++ 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..4ff550d --- /dev/null +++ b/.env.example @@ -0,0 +1,27 @@ +# Preprocessor Configuration +# Path to the preprocessor configuration YAML file +PP_CONFIG_PATH="/path/to/your/pp-config.yaml" + +# API Keys +# API key for the preprocessor service +PP_API_KEY="your-preprocessor-api-key-here" + +# API key for database endpoint access +DB_ENDPOINT_API_KEY="your-database-endpoint-api-key-here" + +# Database Configuration +# Path to the SQLite database file +DB_URL="/path/to/your/database.db" + +# Power BI Configuration +# Power BI dataset identifier +POWERBI_DATASET_ID="your-powerbi-dataset-id" + +# Power BI client ID for Azure AD authentication +POWERBI_CLIENT_ID="your-powerbi-client-id" + +# Power BI client secret for Azure AD authentication +POWERBI_CLIENT_SECRET="your-powerbi-client-secret" + +# Power BI tenant ID (Azure AD tenant) +POWERBI_TENANT_ID="your-powerbi-tenant-id" diff --git a/.gitignore b/.gitignore index 303cc54..9343a49 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,9 @@ wheels/ # Environment variables .env + +# Data files +data/ + +# System files +.DS_Store \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 546d703..6db03c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ requires-python = ">=3.13" dependencies = [ "aiosqlite>=0.20.0", "fastapi>=0.117.1", + "greenlet>=3.2.4", "httpx>=0.28.1", "msal>=1.34.0", "pandas>=2.3.2", diff --git a/src/pp-config.yaml b/src/pp-config.yaml index d651bba..1dee930 100644 --- a/src/pp-config.yaml +++ b/src/pp-config.yaml @@ -1,7 +1,7 @@ version: 1 tables: - - name: "inventory_table" - powerbi_table_name: "InventoryData" + - name: "Data" + powerbi_table_name: "data_full" steps: - keep: columns: diff --git a/uv.lock b/uv.lock index 2e1e780..393e9a2 100644 --- a/uv.lock +++ b/uv.lock @@ -691,6 +691,7 @@ source = { virtual = "." } dependencies = [ { name = "aiosqlite" }, { name = "fastapi" }, + { name = "greenlet" }, { name = "httpx" }, { name = "msal" }, { name = "pandas" }, @@ -707,6 +708,7 @@ dependencies = [ requires-dist = [ { name = "aiosqlite", specifier = ">=0.20.0" }, { name = "fastapi", specifier = ">=0.117.1" }, + { name = "greenlet", specifier = ">=3.2.4" }, { name = "httpx", specifier = ">=0.28.1" }, { name = "msal", specifier = ">=1.34.0" }, { name = "pandas", specifier = ">=2.3.2" },