{"id":50454105,"url":"https://github.com/mizcausevic-dev/attribution-warehouse-lab","last_synced_at":"2026-06-01T01:05:39.027Z","repository":{"id":358387703,"uuid":"1240004376","full_name":"mizcausevic-dev/attribution-warehouse-lab","owner":"mizcausevic-dev","description":"Python FastAPI attribution lab for warehouse journey stitching, channel credit models, SQL contracts, and revenue reconciliation.","archived":false,"fork":false,"pushed_at":"2026-05-17T05:12:02.000Z","size":1335,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T07:25:46.744Z","etag":null,"topics":["analytics","attribution","backend","data-warehouse","fastapi","marketing-analytics","portfolio","python","revops","sql"],"latest_commit_sha":null,"homepage":"https://kineticgain.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-15T17:06:08.000Z","updated_at":"2026-05-17T05:12:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/attribution-warehouse-lab","commit_stats":null,"previous_names":["mizcausevic-dev/attribution-warehouse-lab"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/attribution-warehouse-lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fattribution-warehouse-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fattribution-warehouse-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fattribution-warehouse-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fattribution-warehouse-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/attribution-warehouse-lab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fattribution-warehouse-lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["analytics","attribution","backend","data-warehouse","fastapi","marketing-analytics","portfolio","python","revops","sql"],"created_at":"2026-06-01T01:05:38.960Z","updated_at":"2026-06-01T01:05:39.014Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Attribution Warehouse Lab\r\n\r\nWarehouse-first attribution lab for **journey stitching, channel credit modeling, weighted allocation, and SQL-visible revenue reconciliation**.\r\n\r\n\u003e **What this repo proves**\r\n\u003e\r\n\u003e Attribution gets more useful when it stops being a chart argument and starts being a warehouse contract with inspectable journey rows and model outputs.\r\n\r\n## Why this repo exists\r\n\r\nMost attribution debates fail for predictable reasons:\r\n\r\n- journeys are not stitched cleanly\r\n- sourced and influenced pipeline get mixed together\r\n- leadership sees one favored model but not the alternatives\r\n- SQL logic is hidden behind dashboards instead of being reviewable\r\n\r\n`attribution-warehouse-lab` models the warehouse layer directly. It keeps touchpoint journeys, conversion rows, channel credit models, and SQL assets visible in one small local-first repo.\r\n\r\n## Screenshots\r\n\r\n![Overview](./screenshots/01-overview.png)\r\n![Journeys](./screenshots/02-journeys.png)\r\n![Models](./screenshots/03-models.png)\r\n![Warehouse](./screenshots/04-warehouse.png)\r\n\r\n## What it includes\r\n\r\n- FastAPI service with HTML proof surfaces and JSON APIs\r\n- sample warehouse-friendly journey dataset\r\n- first-touch, last-touch, linear, and position-weighted channel allocation models\r\n- SQL model assets for staging, fact, and mart layers\r\n- real PNG screenshots generated from repo-owned HTML scenes\r\n- tests, CI, and one-command local validation\r\n\r\n## Local Run\r\n\r\n```powershell\r\ncd attribution-warehouse-lab\r\npy -3.11 -m venv .venv\r\n.\\.venv\\Scripts\\python.exe -m pip install -r requirements.txt\r\n.\\.venv\\Scripts\\python.exe -m app.main\r\n```\r\n\r\nOpen:\r\n\r\n- [http://127.0.0.1:5034/](http://127.0.0.1:5034/)\r\n- [http://127.0.0.1:5034/journeys](http://127.0.0.1:5034/journeys)\r\n- [http://127.0.0.1:5034/models](http://127.0.0.1:5034/models)\r\n- [http://127.0.0.1:5034/warehouse](http://127.0.0.1:5034/warehouse)\r\n- [http://127.0.0.1:5034/docs](http://127.0.0.1:5034/docs)\r\n\r\nIf that port is occupied:\r\n\r\n```powershell\r\n$env:PORT = \"5038\"\r\n.\\.venv\\Scripts\\python.exe -m app.main\r\n```\r\n\r\n## Validation\r\n\r\n```powershell\r\n.\\.venv\\Scripts\\python.exe -m unittest discover -s tests\r\n.\\.venv\\Scripts\\python.exe scripts\\run_demo.py\r\n.\\.venv\\Scripts\\python.exe scripts\\smoke_check.py\r\n.\\.venv\\Scripts\\python.exe scripts\\render_readme_assets.py\r\n```\r\n\r\n## API routes\r\n\r\n- `GET /api/dashboard/summary`\r\n- `GET /api/journeys`\r\n- `GET /api/models`\r\n- `GET /api/contracts`\r\n- `GET /api/sample`\r\n\r\n## Repo layout\r\n\r\n- `app/main.py`\r\n- `app/services/attribution_service.py`\r\n- `warehouse/models/`\r\n- `scripts/`\r\n- `tests/`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fattribution-warehouse-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Fattribution-warehouse-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fattribution-warehouse-lab/lists"}