Skip to main content

canmet-btap

This file is the distribution's front page — it ships as canmet-btap's long_description on PyPI, which is why it describes the package rather than the repository. The repository README is one level up.

canmet-btap is the sole product implementation after R6 (D-84). It is one Python distribution with five subpackages:

  • btap.audit: SDK-free audit and coverage evidence
  • btap.modeling: generic OpenStudio model authoring
  • btap.costing: costing and the licensed-data boundary
  • btap.simulation: EnergyPlus execution and remote simulation
  • btap.codes: NECB rules, reference building, determination, report, and CLI

The enforced D-77 dependency direction is codes → costing → modeling → audit, with simulation beside and depending only on audit. The completed M0–M8 port history remains in PORT_STATUS.md; it is a historical record, not a description of a second live implementation.

Install

From PyPI:

pip install 'canmet-btap[tbd]'

For development:

cd python
python3 -m venv .venv
.venv/bin/pip install -e '.[tbd]' pytest pytest-xdist import-linter ruff build

The distribution requires Python 3.11 or newer and OpenStudio 3.11. The exact EnergyPlus companion is installed automatically on supported Windows and Linux x86-64 platforms; other platforms use the version-verified provisioner.

CLI

btap-compliance model.osm --epw weather.epw
python3 -m btap.codes.cli model.osm --simulate none
btap-necb-coverage --help

Exit codes are 0 compliant, 1 not compliant, 2 usage, 3 pre-flight rejection, 4 simulation failure, 5 internal error, and 6 no determination. A --quick week is never reported as a code determination.

Test

cd python
.venv/bin/pytest -n auto -q tests/
.venv/bin/lint-imports
.venv/bin/ruff check .
python3 -m unittest discover tests
python3 scripts/wheel_smoke.py

The first command is the normal parallel suite; unittest is the serial zero-install fallback. SDK, engine, rasterizer, sample, and thermal-bridging dependencies are made mandatory in the verify CI job.

Behaviour changes that alter outputs must re-freeze ../verification/scenarios/ from a clean tree and commit the reviewed baseline diff with the code. Ruby product backports and live dual-CLI comparisons ended at R6. The only remaining Ruby is the pinned external-oracle bridge under ../legacy_pin/ and ../verification/oracle/.

Compatibility helpers

btap/_compat.py centralizes contracts inherited from the verified port: round-half-away-from-zero, SDK Optional unwrapping, deterministic sorting, HTML escaping, and NullAudit. btap/_sdk.py centralizes SDK handling. Use these helpers rather than reimplementing their semantics at call sites.

Thermal bridging

NECB 3.1.1.7 uses native Python canmet-tbd==3.5.2 through the [tbd] extra. Without it, the pipeline continues but emits the explicit audited warning that thermal bridging was not accounted for. The 3.6.x line changes uprate physics and requires a deliberate family-wide rebaseline.

Verification history

D-84 records the final cross-language attestation at commit 85ab14352677093e24038d933cf1071e5b03431a, GitHub Actions run 33544573991: 45 Ruby parity runs / 629 assertions, Ruby SmallOffice 3 runs / 62 assertions, 4 Python successor tests, live Leg C 23/23, frozen parity scenarios, and zero parity skips. Post-R6 verification consists of Python frozen scenarios plus live/frozen comparisons to the pinned openstudio-standards oracle; it does not imply a surviving Ruby product.

Metadata

Release files for canmet-btap 0.3.0

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

Source distribution (sdist)

Source distribution for canmet-btap 0.3.0
File Size Uploaded Provenance Actions
canmet_btap-0.3.0.tar.gz 2.3 MB With provenance Details for canmet_btap-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for canmet-btap 0.3.0
File Interpreter ABI Platform Actions
canmet_btap-0.3.0-py3-none-any.whl Python 3 none any Details for canmet_btap-0.3.0-py3-none-any.whl

Total release size: 4.7 MB

Release files / canmet_btap-0.3.0.tar.gz

Download URL canmet_btap-0.3.0.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
85d8110166e32cd5990293455ff6b089721c978ca61ab543ef0696eab881352e
BLAKE2b-256 checksum
How to use checksums
a01cd4f818e8ea0cd5ccf0a7480e94a79459033f83f6d8f4aaa61e33bd19ac94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / canmet_btap-0.3.0-py3-none-any.whl

Download URL canmet_btap-0.3.0-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f9e237e1f907685ec82e3b6576db65cb0410541344fdbd79414003679c5c1202
BLAKE2b-256 checksum
How to use checksums
803c1c68782398ec55928fea296b8c58034fe602104f057d42f20730ade6ee65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for canmet-btap 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for canmet_btap-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

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