Skip to main content

Builds a canonical stakeholder entity SQLite database from the StakeholderProfile workbook.

Project description

deped-entity

deped-entity builds the canonical stakeholder entity SQLite database from the StakeholderProfile workbook. It owns entity identity for schools, division offices, and regional offices so downstream packages can join against a shared natural_key contract instead of rebuilding their own entity tables.

What This Package Owns

  • Header-driven extraction from StakeholderProfile
  • Canonical entities.db artifact creation
  • Travel-time, coordinate, and transportation alias normalization
  • Canonical relation tables for nearby institutions, road conditions, and transportation modes
  • Build provenance through build_runs

This package is the source of truth for the entities.db artifact only.

Inputs And Outputs

Required input:

  • A stakeholder workbook under data/ with the expected StakeholderProfile headers

Primary output:

  • artifacts/entities.db

CLI

Build the entity database:

uv run entity build \
  --input data/2026-04-02-entities.xlsx \
  --db artifacts/entities.db

Audit a built database:

uv run entity audit \
  --db artifacts/entities.db

Notes

  • The loader maps columns by header text, not by Excel column letter.
  • Blank business-key rows are skipped.
  • All nonblank stakeholder rows are retained, including rows whose Type Of Transaction is not Beginning Inventory.
  • natural_key generation intentionally matches the shared helpers from deped-dcp-template.
  • Multiple source rows may share the same natural_key; source_row_id remains the unique row-level provenance key.

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

deped_entity-0.1.2.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deped_entity-0.1.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file deped_entity-0.1.2.tar.gz.

File metadata

  • Download URL: deped_entity-0.1.2.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for deped_entity-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fd0e9f6701b61c18698a1734391068596c968e77f23385aa9f5be440fbc09116
MD5 22cc316bd06d33c67d7176c080f2e42f
BLAKE2b-256 d8b0fd46226a32177649cdd7701d251bb8c3025d2fd18469485b67cfd6c92df2

See more details on using hashes here.

File details

Details for the file deped_entity-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: deped_entity-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for deped_entity-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d50f6b5097f853d1b1df2a9e08fc7d9c63ac18df0f0cf674a10b2fc041c6d1e6
MD5 20b5c56850d2018b600a03922b6e0c2f
BLAKE2b-256 12d69e298725f0e6bbecb7d27463416d6b3105159bab8edc118d70646e421a7c

See more details on using hashes here.

Supported by

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