Connectivity extractor and cleaner.
Project description
deped-connectivity
deped-connectivity extracts workbook rows and builds a standalone connectivity SQLite database. It consumes the lookup artifact from deped-template and the entity artifact from deped-entity.
What This Package Owns
- Extracting flattened CSV rows from the connectivity workbook
- Building the connectivity database from extracted rows
- Matching rows to governance entities using the upstream entity artifact
- Connectivity-specific views and audit commands
This package owns both the extractor contract and the connectivity database contract.
Inputs And Outputs
Required inputs:
- a connectivity workbook for extraction
- an extracted connectivity CSV for the build step
- a lookup database produced by
deped-template - an entity database produced by
deped-entity
Primary outputs:
- extracted connectivity CSV
connectivity.db
The connectivity database includes staging rows, matched submissions, option lookup tables, and unmatched-stage diagnostics.
CLI
Extract workbook rows:
uv run web extract \
--xlsx data/2026-04-01-connectivity.xlsx \
--csv artifacts/connectivity.csv
Build the connectivity database:
uv run web build \
--connectivity artifacts/connectivity.csv \
--lookups artifacts/lookups.db \
--entities-db artifacts/entities.db \
--db artifacts/connectivity.db
Run the lightweight audit command:
uv run web audit \
--db artifacts/connectivity.db
Nuances
- Extraction and build are intentionally separate. If the workbook header layout changes, the fix belongs in the extractor layer, not in the database loader.
- Entity loading is artifact-driven. This package imports entities from
entities.dband matches connectivity rows against that upstream dimension. - This package does not own school staffing or equipment enrichment views. Those were monolith surfaces and are no longer part of the supported contract.
Tests
Run the package tests from this directory:
uv run pytest -q
Package-local coverage is split between:
- tests/test_connectivity_extractor.py for workbook extraction
- tests/test_connectivity_build.py for governance matching and database build behavior
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deped_connectivity-0.1.0.tar.gz.
File metadata
- Download URL: deped_connectivity-0.1.0.tar.gz
- Upload date:
- Size: 31.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d0e40ade7e4401fada2e2ea8570b48119f176db61f6cbd742dda93abbbdfda8
|
|
| MD5 |
851de1654998a9c6162e20ca3273d333
|
|
| BLAKE2b-256 |
2f3884339dcaf26562e7fe11ef64139cf45f8605e72a9780fd1235138da04419
|
File details
Details for the file deped_connectivity-0.1.0-py3-none-any.whl.
File metadata
- Download URL: deped_connectivity-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29b9729eed0cba4cac6d299b18543a62ba5c4765a354e2435d90330b3768526f
|
|
| MD5 |
c8d160833ed2fd7f15a8b15878dde782
|
|
| BLAKE2b-256 |
b18c0057ca2de8cf30c9583d6c2982bb0fba64019ef4c0a1f8e1a48e93464225
|