Empty Shlaer-Mellor metamodel schema (mmdb.ral) and its generated named tuples
Project description
xuml-metamodel
The empty Shlaer-Mellor executable-UML metamodel schema, packaged as a single versioned wheel.
It ships a matched pair of artifacts, both generated from one parse of the SM metamodel by
make-xuml-repo:
mmdb.ral— the empty metamodel database schema (runtime data, loaded into TclRAL)mmclass_nt.py— the_inamed tuples, one per metamodel class (imported code)
Because each named tuple's fields are exactly the corresponding relvar's attributes, the two files must always come from the same generation. Shipping them together in one wheel, stamped with a single schema version, guarantees a consumer can never mix mismatched halves.
Usage
from xuml_metamodel import metamodel_version, mmdb_path
from xuml_metamodel.mmclass_nt import Attribute_i, Class_i # etc.
print(metamodel_version) # e.g. "1.0.0"
schema = mmdb_path() # absolute path to the packaged mmdb.ral
Versioning
The wheel version is the metamodel schema version (see schema_version.txt in make-xuml-repo).
It is independent of the make-xuml-repo tool version and is bumped only when the metamodel classes
or attributes change:
- major / minor — attribute rename/reorder or class removal (breaks tuple compatibility)
- patch — additive, backward-compatible changes
Consumers (e.g. xuml-populate) pin a compatible range so the tuples and schema they load can never
drift apart.
Rebuilding
This package is assembled from freshly generated artifacts by build_package.py in the
make-xuml-repo repo. It is not edited by hand.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xuml_metamodel-1.0.0.tar.gz.
File metadata
- Download URL: xuml_metamodel-1.0.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a0f957178b001892c8cbda930c87b67f5863be9e3eb37063cfa6ba9d0c7068e
|
|
| MD5 |
6fac137b5479b0edfd4f98b121db19b3
|
|
| BLAKE2b-256 |
90ce424cddd233587f72069ff838c950821e40d62ca456c704df6433ce3c8b26
|
File details
Details for the file xuml_metamodel-1.0.0-py3-none-any.whl.
File metadata
- Download URL: xuml_metamodel-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
714a55b9cdb2f23d3b6767683f6b7394b92de0a6361f6e40f68e45cdd3f5c2b0
|
|
| MD5 |
57fd47789b8a359a732aad0967296f93
|
|
| BLAKE2b-256 |
7b0cdb48facf6beb1f38d643b640aa170ea8e59dd3fecdee853358f90c9a5377
|