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.1

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.1
File Size Uploaded
compmech_reference_pack-0.3.1.tar.gz 18.1 kB Details

Built distribution (wheel)

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

Total release size: 33.3 kB

Release files / compmech_reference_pack-0.3.1.tar.gz

Download URL compmech_reference_pack-0.3.1.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a9983d814204dc58a68fa85c810381fc2852594d26737165ddf0b54be6440098
BLAKE2b-256 checksum
How to use checksums
a9e6310700ee578b8e16925958a7f699ff722697868f341f84d2b0d1273de9f4
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 Sep 10, 2026.

Transparency log

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

Download URL compmech_reference_pack-0.3.1-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31cacae03a27d4dbe563cd49b25b4e5228dc0b752d7f5482f45d4b4a98d0b6f7
BLAKE2b-256 checksum
How to use checksums
adbaa227cb258bde62abe345de69f537f280a886b09e1b04eb87277e8b0a66dd
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 Sep 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.2

2 release files

This release

0.3.1 This release

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