Metadata-Version: 2.4
Name: xuml-metamodel
Version: 1.0.0
Summary: Empty Shlaer-Mellor metamodel schema (mmdb.ral) and its generated named tuples
Author-email: Leon Starr <leon_starr@modelint.com>
License: MIT License
        
        Copyright (c) 2019-2023 Leon Starr
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: repository, https://github.com/modelint/make-xuml-repo
Keywords: executable uml,metamodel,shlaer-mellor,xuml,mbse
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: <3.14,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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`](https://github.com/modelint/make-xuml-repo):

- `mmdb.ral` — the empty metamodel database schema (runtime **data**, loaded into TclRAL)
- `mmclass_nt.py` — the `_i` named 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

```python
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.
