Skip to main content

deped-runtime

deped-runtime is the dependency-light operational layer shared by DepEd data repositories. It provides reusable artifact, file, SQLite, SQL, Rich console, workbook, source-staging, source-product, GeoParquet, WKB geometry, profiling, R2, pagination, and notebook-presentation mechanics. Producer schemas, ingestion policy, semantic normalization, artifact contracts, and application state stay with the repository that defines them.

Install

The base package includes artifact, CSV, OOXML, text, SQL, SQLite, console, and profile-table support:

uv add deped-runtime

Install only the optional runtime integration a consumer 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[r2]'      # Cloudflare R2 API and CLI
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.
  • 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.
  • 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.
  • 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: use deped_runtime.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 includes the complete module map, installation matrix, and ownership boundary.

Quick examples

from deped_runtime.artifacts import file_sha256
from deped_runtime.sqlite import open_readonly_sqlite, relation_columns

with open_readonly_sqlite("artifacts/example.db") as conn:
    print(file_sha256("artifacts/example.db"))
    print(relation_columns(conn, "example"))
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.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deped-runtime 0.6.1
File Size Uploaded
deped_runtime-0.6.1.tar.gz 281.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deped-runtime 0.6.1
File Interpreter ABI Platform
deped_runtime-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 336.1 kB

Release files / deped_runtime-0.6.1.tar.gz

Download URL deped_runtime-0.6.1.tar.gz
Size 281.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1a8890bb735a4c14544cbe7e97689968292a2a3dffd9f67d62232097ac646950
BLAKE2b-256 checksum
How to use checksums
f8f0e039ecee7802c764e7d6be28242dff699462d17a243565668b8d8f665e8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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.6.1-py3-none-any.whl

Download URL deped_runtime-0.6.1-py3-none-any.whl
Size 54.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ea03193ac9c3a7ace2702b0324630f9bb46d13436c6d3666e4f4ddab93cbed2
BLAKE2b-256 checksum
How to use checksums
10583a0c8190ec4fc2cc545412391b6d83679c3e2394c7fee43b996a6601432b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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 history Release notifications | RSS feed

0.7.1

2 release files

0.7.0

2 release files

0.6.2

2 release files

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page