Skip to main content

ezceq

Read BE-Bridge 7.0 CEQ files from building-services CAD software. The Rust parser exposes pipe and duct dimensions, system names, port coordinates, and connections through a Python API and a JSON command-line tool. A companion DXF can link a selected drawing entity back to its CEQ component. 日本語ガイド

Install from source

Use Python 3.10 or later and a Rust toolchain. From the repository root, install the package in a virtual environment.

python -m pip install .
ezceq samples/synthetic/mixed-v7.ceq --encoding cp932

The CLI writes UTF-8 JSON. The input encoding is explicit and accepts cp932 or utf-8. The example has two pipes, two ducts, and one resolved connection between port 2 of pipe P00001 and port 1 of reducer P00009. Sample drawing and expected values

Python

import ezceq

doc = ezceq.readfile("samples/synthetic/mixed-v7.ceq", encoding="cp932")
data = doc.to_dict()
reducer = next(p for p in data["parts"] if p["id"] == "P00009")
print(reducer["system"], reducer["nominal_by_port"])  # 冷水送り [50.0, 25.0]
print(data["connections"])  # [{'a': ['P00001', 2], 'b': ['P00009', 1]}]
raw = doc.raw_record(reducer["line"])

Use ezceq.read_ceq(data, encoding=...) for a byte buffer and doc.to_json() for serialized output. Rust callers can use ezceq_core::read_ceq with ReadOptions and TextEncoding. Rust API

Output Meaning
parts Records in file order. Supported pipe and duct families include straight sections, elbows, tees and reducers. Each parsed port distinguishes an unused slot, an open end and a reference to another part.
connections Undirected pairs of ports. Resolution requires unique part IDs, reciprocal references and equal XYZ coordinates as decimal values. Unresolved references retain their source locations in diagnostics.
actual_counts, unsupported_counts Observed counts by component type and unsupported counts by reason. Each record retains its identifier, starting line and original byte range.
diagnostics, unparsed_range Problems found during reading and any remaining bytes after a record boundary was lost. Lines start at 1. Byte ranges are zero-based with an exclusive end.

The CLI exits with 0 on success (including warnings), 1 on a fatal input or file error, and 2 when it writes a partial result with CEQ data errors. Python raises InvalidHeaderError or UnsupportedVersionError for invalid headers and unsupported versions. For a parsed document, check doc.has_errors.

Select a component in a DXF

python -m pip install '.[dxf]'
ezceq samples/synthetic/mixed-v7.ceq --encoding cp932 --dxf

--dxf discovers a same-name companion. Use --dxf PATH to select a specific file. The added dxf object records which INSERT instances match each complete CEQ block name. It distinguishes multiple placements, unplaced definitions, missing definitions, ambiguous records and a missing companion.

from ezceq.dxf import link_dxf, part_indices_for_entity

links = link_dxf(data, "samples/synthetic/mixed-v7.dxf")
indices = part_indices_for_entity(links, "E49/E45")  # outline of the rectangular duct
print([data["parts"][i]["id"] for i in indices])  # ['D00025']

If a viewer already holds the DXF-derived cad2d-ir document, pass it to link_ir(data, ir_document). Keep the parent INSERT IDs when expanding blocks. The placement path identifies a particular instance of a shared definition.

Format reference

The reader implements the BE-Bridge 7.0 exchange specification by C-CADEC. The examples in this repository are hand-authored. BE-Bridge 7.0 specification, archived C-CADEC publication (Japanese PDF)

License

ezceq and its hand-authored samples are available under the MIT License. Copyright © 2026 monozukuri-ai. License · Third-party notices

Metadata

Release files for ezceq 0.1.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 ezceq 0.1.0
File Size Uploaded Provenance Actions
ezceq-0.1.0.tar.gz 50.8 kB Without provenance Details for ezceq-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ezceq 0.1.0
File Actions
ezceq-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for ezceq-0.1.0-cp310-abi3-win_amd64.whl
ezceq-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for ezceq-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
ezceq-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for ezceq-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl
ezceq-0.1.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for ezceq-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
ezceq-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for ezceq-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 2.4 MB

Release files / ezceq-0.1.0.tar.gz

Download URL ezceq-0.1.0.tar.gz
Size 50.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd6637ae9c8e4b665e529b4719e40e7c67d857c31870798da9c126b39159c026
BLAKE2b-256 checksum
How to use checksums
20778c428bbb31a4ec96fc6196ba10456218660627b106188caaa82934f064f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ezceq-0.1.0-cp310-abi3-win_amd64.whl

Download URL ezceq-0.1.0-cp310-abi3-win_amd64.whl
Size 411.6 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8bf799f1d6fa090f607b509cf23ac4dfb0fec8986dfcafe4342ed324d60b3e29
BLAKE2b-256 checksum
How to use checksums
23ae3e116f15abb1ec392af2d62bac9cd96050ba8999483eb2b42b17c54e840b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ezceq-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL ezceq-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 517.0 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2dfae338e1778058beeb4090545f3f5d229d8ef54956b2982ef7a9a0daeba3eb
BLAKE2b-256 checksum
How to use checksums
0b8d8b42236051e13ccb8a7cffc74eab4f8c883b70dba7000381e49a37078e22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ezceq-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL ezceq-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 493.2 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
d104182be0ff2029d9fd39668c3594326bda09b809f76a1e14633010d5240682
BLAKE2b-256 checksum
How to use checksums
bbc4395777f62e56a1fadb3a2efd7c567481eb495a6d11c7a6c9ee8dcb757e1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ezceq-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL ezceq-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 475.4 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d773bd642673fb810d8809175ba70c1cdf8a2d4a162c562a42a2a1fe836b249d
BLAKE2b-256 checksum
How to use checksums
9c1cbcc4a30519e19386c6cd79be8a8c769cabc8db8d4541dab23e981591c454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ezceq-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ezceq-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 485.3 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2ca9d3f59c1f91405704792fada475bf2643682c167a4d74f8f5f558ff01a218
BLAKE2b-256 checksum
How to use checksums
58f392c3c1ecc23add99254acf16a49bb192090b41ef4a32620f12f13ab02e0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ezceq 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1.0 This release

6 release files No 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