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.3.tar.gz (48.2 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.3-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deped_entity-0.1.3.tar.gz
  • Upload date:
  • Size: 48.2 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.3.tar.gz
Algorithm Hash digest
SHA256 160e4d19d29eb005efdc4a3fd8e382ed08e479440ca4751af566d2fee86d903c
MD5 dd558e1b19e249c6e47b624202ee2355
BLAKE2b-256 eccd42bcf1e58c4648d67dc71713c46d833d1eebab07c025342a22b5222d47df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deped_entity-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1460f829a92557f5b0f330c9db656841a19dbf0b5087189edf790804de0ceacd
MD5 d7be837ce2805ddb25afee741ede13ec
BLAKE2b-256 6719390b8894169378c9a594167cbdd8b7741b0be73b525f5648ec635d5a4afc

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