deped-runtime
deped-runtime collects reusable file, database, download, console, and
notebook helpers used across DepEd data repositories. Install only the optional
features a project needs. Each project still defines its own schemas, source
rules, data meaning, published formats, and application state.
Install
The base package includes artifact, CSV, OOXML, text, SQL, SQLite, console, and
profile-table support:
uv add deped-runtime
Install only the optional integration your project needs:
uv add 'deped-runtime[excel]' # openpyxl workbook helpers
uv add 'deped-runtime[polars]' # SQLite query/source frames
uv add 'deped-runtime[geoparquet]' # GeoParquet and WKB polygon mechanics
uv add 'deped-runtime[geodesy]' # NumPy point distance and candidate search
uv add 'deped-runtime[r2]' # Cloudflare R2 API and CLI
uv add 'deped-runtime[marimo]' # standalone Marimo UI helpers
uv add 'deped-runtime[marimo-sql]' # standalone Marimo SQL integration
uv add 'deped-runtime[charts]' # standalone Altair and Polars chart helpers
uv add 'deped-runtime[maps]' # standalone Folium map helpers
uv add 'deped-runtime[notebooks]' # Marimo and generic Altair components
uv add 'deped-runtime[notebooks-sql]' # notebook components plus Marimo SQL
uv add 'deped-runtime[notebooks-maps]' # notebook components plus Folium maps
uv add 'deped-runtime[all]' # all optional integrations
Start by task
- Hash files, count or write CSV rows, and fingerprint sources: see files and workbooks.
- Verify a bundle-relative file or publish a directory with rollback: see artifact integrity and publication.
- Implement explicit, progress-aware network fetch commands while keeping provider policy local: see source fetching.
- Publish and integrity-check hash-backed source artifacts: see source-product manifests.
- Record build inputs, outputs, hashes, and production/review classification: see build receipts.
- Inspect SQLite, attach sources read-only, validate raw source tables, or return Polars frames: see SQL and SQLite.
- Read and write WKB GeoParquet or simplify polygon batches without breaking valid shared-edge coverages: see GeoParquet and geometry.
- Rank bounded point-distance candidates: see point distance and candidate search.
- Render consistent command status and build progress: see console and progress.
- Transfer namespaced artifacts with the API or CLI: see R2 transfers.
- Produce a Markdown quality report for a SQLite table: see
profile-table. - Calculate a page window or slice an in-memory sequence without taking over labels and URLs: see pagination.
- Compose consistent Marimo sidebars, stats, tables, callouts, and charts: see notebook design system.
- Move a consumer from
deped-dcp-template 0.9.0: see the migration guide.
The documentation routes to the complete module map, installation matrix, capability guides, and ownership boundary.
Quick examples
from deped_runtime.artifacts import file_identity, file_sha256
from deped_runtime.sqlite import fetch_required_int, open_readonly_sqlite, relation_columns
with open_readonly_sqlite("artifacts/example.db") as conn:
print(file_sha256("artifacts/example.db"))
print(file_identity("artifacts/example.db"))
print(relation_columns(conn, "example"))
print(fetch_required_int(conn, "SELECT COUNT(*) FROM example", label="example rows"))
uv run --extra r2 deped-runtime r2 download --target data --prefix deped-example
uv run profile-table artifacts/example.db example
Development
just docs # serve documentation on http://localhost:8002
just check # lint, type-check, test, build docs, and build the wheel
Release files for deped-runtime 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deped_runtime-0.7.0.tar.gz | 61.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deped_runtime-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 139.2 kB
Release files / deped_runtime-0.7.0.tar.gz
| Download URL | deped_runtime-0.7.0.tar.gz |
|---|---|
| Size | 61.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae979439f358aba18b84784e7f2465de46a34f858adaa58119410a8ae24a0ec5
|
|
BLAKE2b-256 checksum How to use checksums |
4ff45adf712af5df5136c2374d051b4a23237b3b4f7968c44f0f77afc6b74844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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}
|
Release files / deped_runtime-0.7.0-py3-none-any.whl
| Download URL | deped_runtime-0.7.0-py3-none-any.whl |
|---|---|
| Size | 77.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f8e5463a0e0ac24dad554787c70757080ae2168d90d57df734a98334acefce0
|
|
BLAKE2b-256 checksum How to use checksums |
cf3d7797b058e31b8dda1b629393ab691c789a3355d8bed2e8e9301136fd3852
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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}
|