Skip to main content

compmech-reference-pack

The computational-mechanics companion adapter for AKMS. It bridges akms-learn Learning Source Packet excerpts to the MechDSL executable backend, so an algorithm described in a knowledge node can be transpiled and compiled rather than only read.

It ships the compmech domain pack — the descriptor and source packs that tell akms-learn which companions exist and what each can do.

Install

pip install compmech-reference-pack

That gives you the domain pack and the adapter's declared capability surface, and pulls in akms-learn. It does not pull in the MechDSL backend: every mechdsl and algo2code import in this package is function-scoped, so it installs and imports cleanly without them.

To enable the actual compile, transpile and verify path:

pip install "compmech-reference-pack[mechdsl]"

The extra exists so a downstream consumer can depend on this package without dragging the executable backend — and transitively Taichi — into its resolution.

What it provides

  • MechDSLRunner — the executable_bridge adapter. Given an LSP excerpt it normalises the algorithmic block, derives a safe algorithm name, and delegates to MechDSL's transpile_algorithm / compile_from_sources. Provenance is preserved from node to generated artefact.
  • capabilities() — a declaration of what the package offers, kept deliberately import-light and Taichi-free so a caller can ask without paying for a backend it may not use.
  • The compmech domain pack — domain_pack.yaml plus the source packs under domain_pack/source_packs/, addressed through compmech_reference_pack.paths.

Companion status

Companion Role Status
mechdsl executable bridge available
constkit concept kit planned
symbolic_fem_workbench pedagogical workbench planned

planned describes the adapter, not the source: the material for both planned companions is public, in SOSOVSKI/Teaching-materials.

Licence

Apache-2.0, matching AKMS.

Metadata

Release files for compmech-reference-pack 0.3.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 compmech-reference-pack 0.3.2
File Size Uploaded
compmech_reference_pack-0.3.2.tar.gz 22.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for compmech-reference-pack 0.3.2
File Interpreter ABI Platform
compmech_reference_pack-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.2 kB

Release files / compmech_reference_pack-0.3.2.tar.gz

Download URL compmech_reference_pack-0.3.2.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
404a5e60ba04ceaee3bc8ba6c2fca0f060ecb08d79bab01a42e9faf7626a8953
BLAKE2b-256 checksum
How to use checksums
9faca5a1ef032eb61335035565ff38002bc49c1a30b0ad8baf10897ae85b98c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 6, 2026.

Transparency log

Release files / compmech_reference_pack-0.3.2-py3-none-any.whl

Download URL compmech_reference_pack-0.3.2-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
751c825a24a279d87fe1ad2563e697542e2c6c4269a4bf85a1676cdb92b91bd5
BLAKE2b-256 checksum
How to use checksums
d19de66751f7467646addb144ef02a0ed510ff756a559e9e3d13bee31a9ba95b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

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