Skip to main content

Shared non-semantic runtime plumbing for DepEd data repositories.

Project description

deped-runtime

deped-runtime is the dependency-light operational layer shared by DepEd data repositories. Version 0.3.0 owns reusable artifact, file, SQLite, SQL, Rich console, workbook, GeoParquet, profiling, R2, 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]' # WKB GeoParquet reads and writes
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.
  • Inspect SQLite, attach sources read-only, validate raw source tables, or return Polars frames: see SQL and SQLite.
  • 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.
  • 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 complete ownership boundary and module map are in the documentation.

Quick examples

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

with connect_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

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_runtime-0.3.0.tar.gz (209.5 kB view details)

Uploaded Source

Built Distribution

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

deped_runtime-0.3.0-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

Details for the file deped_runtime-0.3.0.tar.gz.

File metadata

  • Download URL: deped_runtime-0.3.0.tar.gz
  • Upload date:
  • Size: 209.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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_runtime-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dc3b144d67145577b4a8ebc8f22c7ecfd0d833166805d6bc2200c3ab2d9b8279
MD5 a7ebb481359171ccb98601d3c9bc617b
BLAKE2b-256 4cab0476f239d01cd708c2e647bec741f0cfe051675bc453f4f24e7022aeb56c

See more details on using hashes here.

File details

Details for the file deped_runtime-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: deped_runtime-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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_runtime-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d34c8aac226d461154e987e59b40dae77effb1e1de0c7dce550be3c248519604
MD5 114e558fd3686bcabc5fa2a444bc8048
BLAKE2b-256 8520d3e73564af9cfff65a8fa16a4842f07705758f27adcf945e41aae92355f3

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