Skip to main content

deped-dcp-template

deped-dcp-template packages the approved version 1.16 DepEd Computerization Program (DCP) workbooks and the rules needed to read their controlled values. It can extract lookup tables into SQLite and normalize submitted DCP values.

Version 0.10.0 replaced the former catch-all cleaner with focused, typed modules. Applications remain responsible for loading their own source data and writing their own databases. See the DepEd Orchestrator for this package's place in the wider build process.

Install

uv add deped-dcp-template

Commands

uv run deped-dcp-template extract --templates-dir templates --output artifacts/base.db
uv run deped-dcp-template show --db artifacts/base.db
uv run --extra r2 deped-runtime r2 ls --prefix deped-dcp-template/templates

R2 support is optional and provided by deped-runtime.

Public modules

  • normalization, values, and timestamps handle submitted scalar values.
  • contacts, people, and entities handle DCP collection records.
  • positions and equipment expose immutable catalog builders and normalization policy.
  • audit records shared DCP validation evidence.
  • extractor and template_assets own canonical workbook artifacts.

Generic file, Excel, console, SQL, SQLite, and storage mechanics belong to deped-runtime. Ecosystem-wide DepEd identity and governance semantics belong to deped-primitives. In particular, deped_dcp_template.values.normalize_school_id intentionally retains the integer-coercion contract used by DCP collection schemas; it is not a replacement for the Primitives school-identity APIs.

Documentation and checks

just preflight
just status --json
just audit
just check
just package

This is a shared library, so just build intentionally explains that there is no repository-level data product. Consumers use the explicit deped-dcp-template extract command for lookup databases. just download restores canonical templates; just fetch performs no network refresh.

Shared-library development

The [tool.uv.sources] entries select sibling checkouts for this coordinated release; published packages retain versioned requirements. Keep the declared sibling repositories next to this checkout. Run uv sync --locked --all-extras, then pre-commit run --all-files and just check. Candidate distributions are also validated without editable sources before external publication.

Command environment

R2 transfer recipes use op run --env-file=env.r2 to resolve the checked-in 1Password references only for the transfer process. Install the 1Password CLI and authorize access to the referenced vault before running them. just publish uses op run --env-file=env.publish; only the upload process receives UV_PUBLISH_TOKEN. Package builds do not require vault access. Just does not load or generate .env. Export ordinary configuration overrides in your shell. Existing local .env files are not deleted automatically; move any needed overrides before removing old plaintext copies.

Without 1Password

Have your secret manager or CI secret store supply CF_ACCT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, and R2_BUCKET to the command's environment, with R2_REGION=auto. Supply resolved values, not op:// references. Run the underlying CLI directly; the Just transfer recipes still invoke op, even when credentials are already exported:

uv run --extra r2 deped-runtime r2 download --target "src/deped_dcp_template/templates" --prefix "deped-dcp-template/templates"
uv run --extra r2 deped-runtime r2 upload --source "src/deped_dcp_template/templates" --prefix "deped-dcp-template/templates" --include 'ict-equipment-inventory-school-template_v1.16.xlsx' --include 'ict-equipment-inventory-division-template_v1.16.xlsx' --include 'ict-equipment-inventory-region-template_v1.16.xlsx'

These examples use the repository's default paths and prefixes. Adjust the explicit flags for another location, retaining any include/overwrite options. The upload command writes to the remote bucket. If you lack bucket access, obtain the required inputs from maintainers and place them at the documented local paths; installing 1Password does not itself grant data access.

For package publication, build with just package, then supply UV_PUBLISH_TOKEN from your secret manager or CI secret store to uv publish:

just package
uv publish

This requires publishing permission for the package. just publish still invokes op; use the direct command above when 1Password is unavailable.

Keep actual secrets out of reference files, committed files, and shell command history. Ordinary offline builds and checks do not require 1Password.

Metadata

Release files for deped-dcp-template 0.12.2

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-dcp-template 0.12.2
File Size Uploaded
deped_dcp_template-0.12.2.tar.gz 1.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for deped-dcp-template 0.12.2
File Interpreter ABI Platform
deped_dcp_template-0.12.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / deped_dcp_template-0.12.2.tar.gz

Download URL deped_dcp_template-0.12.2.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
0bd2486ddb52b0b5fac072192a8d6d28bae887de906d5ee74b134fef2efe40af
BLAKE2b-256 checksum
How to use checksums
120db60d2833c3d73b125612786b17e5fa05909bcf3ec628265fd6d6fff6a751
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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_dcp_template-0.12.2-py3-none-any.whl

Download URL deped_dcp_template-0.12.2-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a4efe550c6563a28e179f6abcf21d63be9262758b63dc9b3a812f4fdafb89511
BLAKE2b-256 checksum
How to use checksums
5cdc3dfcdf57279aabb2d192144a06a6607047318ee9d520a1e0c9e0c77621c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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

This release

0.12.2 This release

2 release files

0.11.2

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.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