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.4.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 compmech-reference-pack 0.4.0
File Size Uploaded Provenance Actions
compmech_reference_pack-0.4.0.tar.gz 22.7 kB With provenance Details for compmech_reference_pack-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 42.2 kB

Release files / compmech_reference_pack-0.4.0.tar.gz

Download URL compmech_reference_pack-0.4.0.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e505b235446ca515d7552041c90347f3958bb4508aac68c3f557f02580c1a5e0
BLAKE2b-256 checksum
How to use checksums
43462a57b9d5d4f05d4b0e3178429c28c4a34017f33e85fadb21f4c0d30d68be
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 11, 2026.

Transparency log

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

Download URL compmech_reference_pack-0.4.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ff5cae3794361896db0b557a744f7906eb6498540c57208a8a82bac993999a4
BLAKE2b-256 checksum
How to use checksums
c6700030e48e072be11c358c96a5ac056d54f4fb16f1b4b3553326054dd87e1d
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 11, 2026.

Transparency log

Security for compmech-reference-pack 0.4.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 compmech_reference_pack-0.4.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 11, 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.

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