O_o_Reader
Native Python package (oo-reader), build and publishing
Sphinx documentation · Model construction · API reference
A C++20 library, compiled to WebAssembly for the web, that:
- reads and writes its own model format (
.oos, docs/model-format.md); - constructs and edits models from JavaScript objects and typed arrays, including load cases, includes and parts (docs/model-construction.md);
- stores models and results in its own HDF5 archive (
.ooh5), together or separately: typed model columns, compressed buffers and model loading on demand (docs/archive-format.md); - writes results as an Excel workbook (.xlsx) for people: an index sheet and one sheet per table;
- exports custom query tables as HDF5 datasets (
.h5); - analyses a model (geometry, coordinate frames, mass, mesh quality, components, connections, validation checks) and runs over 160 named queries on a model and its results (inventory, loads, stresses, margins, section cuts, ...).
It is the reading layer of the O_o viewer and works with native model records, archives and their neutral names. The project's rules on formats and third-party code are in LEGAL.md.
Documentation
JavaScript optimization: design interfaces, derivatives and accepted model updates.
Read Sphinx documentation · Architecture with diagrams · Documentation index
The Documentation workflow publishes the HTML site and provides a downloadable archive. See read, download and build instructions.
Use it from JavaScript
import { loadOorReader } from "oor-reader";
const oor = await loadOorReader();
oor.writeFile("/work/plate.oos", modelText); // a model file (docs/model-format.md)
const deck = oor.readModel("/work/plate.oos");
const nodes = oor.runQuery("nodesTable", { deck }).columns(); // ids, x, y, z, ...
const results = oor.createResults([ // results computed by a program
{ kind: "displacements", subcase: 1, ids: [1, 2], values: new Float64Array(12) },
]);
results.writeArchive("/work/plate.ooh5"); // to exchange and to view
results.writeXlsx("/work/plate.xlsx"); // for people
const table = oor.openResults("/work/plate.ooh5").read(0); // { shape, ids, values, ... }
// One file for the model and its results, without converting numeric model data to text.
results.attach(deck, false);
results.writeArchive("/work/complete.ooh5");
const complete = oor.openResults("/work/complete.ooh5"); // lists results without loading the model
const embedded = complete.model(); // loads and attaches the model on demand
const sameModel = oor.readModel("/work/complete.ooh5"); // the model can also be read independently
deck.writeArchive("/work/model-only.ooh5"); // a model without results
The whole interface: docs/wasm-api.md.
For externally controlled SOL 101, 103, 105 and 144 optimization, Reader provides copy-on-write model edits,
capability inspection, versioned application documents and typed results in .ooh5; see the
optimization guide.
New .ooh5 files use archive version 4, with native model schema 1. Version 3 result archives remain
readable. See choosing a format and
archive compatibility before updating an existing viewer.
Layout of the repository
| Folder | What |
|---|---|
include/oor/<module>/, src/<module>/ |
the library, in modules that each use only the ones before them: base → io → deck → model → results → analysis → query → api |
wasm/ |
the WebAssembly module: the embind interface (src/Bindings.cpp), the JavaScript wrapper (js/), its Node.js test (test/) |
tests/cpp/<module>/ |
the C++ tests (Catch2), run natively |
validation/models/ |
model files written for the project, read by the tests |
docs/ |
the archive format, the JavaScript interface, the architecture |
scripts/ |
the build scripts |
tools/ |
the layering check and the generator of the card catalogue (oos_layouts/) |
formats/ |
the card layout catalogue of the model format (oos-layouts.json, docs/model-format-cards.md) |
Start reading at docs/architecture.md.
Build
Native (development and tests)
Needs a C++20 compiler (GCC 12+ or Clang 16+), CMake 3.25+, Ninja and libhdf5 (on Windows: MSYS2 UCRT64 with
mingw-w64-ucrt-x86_64-hdf5).
cmake --preset release # build/release
cmake --build --preset release
ctest --test-dir build/release -j 1 --timeout 1 --output-on-failure
or scripts/check.sh (build, tests, layering check).
Each native test has a one-second timeout; validation corpora run in small independent cases.
WebAssembly
The module is 64-bit WebAssembly (Memory64, up to 16 GB of memory). Needs the Emscripten SDK
(emsdk install latest && emsdk activate latest, then its emsdk_env script) and a static libhdf5 built for 64-bit
WebAssembly, made once by scripts/build_hdf5_wasm.sh <work folder>.
scripts/build_wasm.sh <work folder of build_hdf5_wasm.sh> # build/wasm/dist: the npm package
node --test wasm/test/*.test.mjs # the end-to-end test, in Node.js 24+
Each WebAssembly test checks its own duration against the same one-second limit.
The WebAssembly workflow builds the package on every push to main that changes the sources, runs these tests and
publishes it as O_o_Reader-wasm.zip in two releases:
wasm-latest, a pre-release that follows the branch, and one release kept for each version of wasm/package.json
(v0.2.0, ...), made by the first build of that version and not changed afterwards; the newest of these is the
latest release of the repository. Raise the version in wasm/package.json to keep a new one. Each run also keeps the
package 90 days as its O_o_Reader-wasm artifact.
Licence
MIT (see LICENSE). The WebAssembly package includes HDF5 (BSD-style licence) and zlib (zlib licence).
Metadata
Release files for oo-reader 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oo_reader-0.2.0.tar.gz | 4.3 MB | With provenance | Details for oo_reader-0.2.0.tar.gz |
Built distributions (wheels)
Total release size: 226.3 MB
Release files / oo_reader-0.2.0.tar.gz
| Download URL | oo_reader-0.2.0.tar.gz |
|---|---|
| Size | 4.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b0992b46ea7fc5080d2a0d084485d8e052c0b0d8ff97c0d274c8cfc5fc1d4f6
|
|
BLAKE2b-256 checksum How to use checksums |
636452c22329187d0d0744df9b539d176b300ecad0afe630a16715c025c4e1a7
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp314-cp314-win_amd64.whl
| Download URL | oo_reader-0.2.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 21.4 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
19b01903de548d2ad1c751a30afe4983babe775f00b2552c5ba6d4d593400697
|
|
BLAKE2b-256 checksum How to use checksums |
25fff6d6a36956a48743189c1ba1a113009242e787948a45bcd6623449a000b0
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | oo_reader-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 23.4 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
0a27b739b7703e78fdf1a81cf19ddb11463f6cb7f30ee14f1aef574aad93cafb
|
|
BLAKE2b-256 checksum How to use checksums |
dfbf217f28f7e840170e98d46c364f5610daed5c5c8b5deffc009a27bcfa2838
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp313-cp313-win_amd64.whl
| Download URL | oo_reader-0.2.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 20.9 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bda0cdc97f0c443c2a443c512ae272a2aa09b4c85d51f6dc588f67c3c035f123
|
|
BLAKE2b-256 checksum How to use checksums |
fc68ef0280f578e3977bfb8c1665b531ea015e7f6a654a76f6a72f690e90dfa2
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | oo_reader-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 23.4 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c97341f3b764a57c3eb7eb69f78fc94020a8a08f7193c3cf0b658a7b5553cbbd
|
|
BLAKE2b-256 checksum How to use checksums |
68fe6821cfc850dfe2a619bee016e984817ec2cc135f3a71373d7f7ad20c97a8
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp312-cp312-win_amd64.whl
| Download URL | oo_reader-0.2.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 20.9 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7409e6ba705d413141464ff54ebf585638a24bf71fbabd546ac22fd307e2277c
|
|
BLAKE2b-256 checksum How to use checksums |
b734dd034e1c1cd9581be0155c1f30ce1518f3e028a47bba4a527788859c401d
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | oo_reader-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 23.4 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
0c721598e3303ba6510f8f03b6af3894e6c5108a32d1c13a7202f55b5abe83f0
|
|
BLAKE2b-256 checksum How to use checksums |
a0b652491eeefe7eaa1b70deaddb765e105f153dee8e45030275203c2a1776fd
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp311-cp311-win_amd64.whl
| Download URL | oo_reader-0.2.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 20.9 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d458b66ed91a279e47e6e9405766842c01fb2e14845bf66dc2eb9be8d811790a
|
|
BLAKE2b-256 checksum How to use checksums |
72e803f94504ae90e17ffcc8b4272d69240d01e433fbc3c15a0b1753e18e2441
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | oo_reader-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 23.4 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
dbf7488b6e484b07f0054a2d00bb1c443afe6235037d94085745047cf44c386a
|
|
BLAKE2b-256 checksum How to use checksums |
05e8b0f5c0815db8ff8098758cafa4b3587d866a2110cd76d2a774d648a29f3a
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp310-cp310-win_amd64.whl
| Download URL | oo_reader-0.2.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 20.9 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7037f66e35d2adf092655890e92ec855e76a6e89c9e7a8197a585538eb9db208
|
|
BLAKE2b-256 checksum How to use checksums |
3cc3bc4b7c9b7808cf9754536669a414a5ac79a3e8b2f977297c310c455f48f9
|
| 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 Nov 23, 2026.
Transparency logRelease files / oo_reader-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | oo_reader-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 23.4 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d9029b6c9b95d4a7f91f7410a319173470d012f24802dea7e6d6a442ecac4b4a
|
|
BLAKE2b-256 checksum How to use checksums |
76e58ce32aa83dbe1f440b01b38ffc5eb46c37ad40059b940c880369709424c6
|
| 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 Nov 23, 2026.
Transparency logSecurity for oo-reader 0.2.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
All 11 files in this release have been uploaded with provenance metadata.
Attestation for oo_reader-0.2.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 Nov 23, 2026.
Transparency logA 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.