retentioneering-tools
Python toolkit, MCP server, and agent skills for reproducible, auditable clickstream and event log analytics. Helps AI agents, data scientists and analysts build, validate, and cross-check product ana
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Scot-LAND — 苏格兰每个地点的年度地租 (scot-land.scot)
AI 翻译
Scot-LAND — Annual Ground Rent at every place in Scotland (scot-land.scot)
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Scot-LAND
Annual Ground Rent assessment at the core of a free, public, open land information system for Scotland.
Scot-LAND is a professional, SLRG-aligned platform that estimates Annual Ground Rent (the rental value of land alone, excluding buildings and improvements) for every location in Scotland. It transforms complex valuation logic into a free public resource for education, research, policy analysis, and journalism.查看完整 README ↗Annual Ground Rent assessment at the core of a free, public, open land information system for Scotland.
Scot-LAND is a professional, SLRG-aligned platform that estimates Annual Ground Rent (the rental value of land alone, excluding buildings and improvements) for every location in Scotland. It transforms complex valuation logic into a free public resource for education, research, policy analysis, and journalism.
The platform is permanently free for everyone to view, explore, and download (where licenses allow), designed to help the public understand both who holds land and what the land is worth under Georgist principles.
Live Site: https://www.scot-land.scot
The repository powers a multi-layered information system:
The analytical heart of the project. It provides residual site-value estimates and Annual Ground Rent calculations on a 3×3 m What3Words grid, ensuring that land rent is treated as a location-based value.
A spatial aggregation system that sums three distinct forms of economic rent to show the "Total Wealth" of a location:
la-calc model using socio-economic proxies.Expanding the platform into a broader land information system by integrating:
| Layer | Technology |
|---|---|
| Frontend | Next.js 16, MapLibre GL JS, Tailwind CSS |
| Backend | Python FastAPI, Pydantic |
| Data/Spatial | PostgreSQL + PostGIS (National Wealth Engine) |
| Valuation | SLRG-aligned residual method (Wightman $\rightarrow$ Pickard $\rightarrow$ Sandilands) |
| Grid | What3Words 3 m grid (via W3W_API_KEY) |
The backend handles the valuation engine and the National Wealth Engine (via PostGIS).
cd backend
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
Database Requirement: The National Wealth Engine requires a PostgreSQL database with the PostGIS extension installed. Ensure your connection strings are configured in your environment.
Initial Data Build:
# Build baseline valuation data (HPI, Boundaries)
python -m etl.build_processed
python -m etl.build_boundaries
python -m etl.build_wards
Run API:
uvicorn api.main:app --reload --app-dir .
http://127.0.0.1:8000 | Docs: http://127.0.0.1:8000/docscd frontend
npm install
$env:NEXT_PUBLIC_API_URL="http://127.0.0.1:8000"
npm run dev
http://localhost:3000| Endpoint | Method | Description |
|---|---|---|
/georgist/wealth | GET | Wealth Inspector. Sums Surface, Resource, and Eco rents for a point. |
/layers/georgist/surface-rent | GET | Surface rent layer based on la-calc (Data Zone proxies). |
/layers/georgist/resource-rent | GET | GeoJSON of resource polygons. |
/layers/georgist/eco-rent | GET | GeoJSON of ecological polygons. |
/sync/ros | POST | Syncs the wealth engine with Registers of Scotland open data. |
| Endpoint | Method | Description |
|---|---|---|
/square | GET | AGR for a point / W3W cell. |
/assessment/report | GET | Professional assessment pack (JSON/Markdown). |
/layers/w3w-grid | GET | Viewport W3W cells with AGR. |
/layers/parcels/at | GET | Cadastral parcel polygon under a point (ROS INSPIRE). |
/fiscal/summary | GET | National fiscal dashboard (Tax basket vs AGR). |
Scot-LAND adheres to a strict professional standard to ensure all research is defensible and legal.
The platform implements the lineage of Georgist land value theory: Adam Smith $\rightarrow$ David Ricardo $\rightarrow$ Henry George $\rightarrow$ Mason Gaffney $\rightarrow$ Fred Harrison $\rightarrow$ Roger Sandilands $\rightarrow$ Andy Wightman (Residual) $\rightarrow$ Duncan Pickard (Economic Rent).
The public site is hosted on a local machine and published via a Cloudflare Tunnel:
https://www.scot-land.scot / https://scot-land.scotdocker-compose.home.yml) serves the app on port 3000.scripts/ops/deploy-home.ps1 builds images first, health-checks a canary, then swaps; never stops cloudflared. See docs/HOME_DEPLOY.md.scripts/ops/uptime-check.ps1 / .sh) — no paid vendor.