SPLENT overview
SPLENT is built in layers. A product line describes what can be combined, features are the pieces, a product is one combination, the framework assembles it, containers run it and releases ship it. Every file and every command belongs to one layer, so knowing the layers tells you where a change goes.
The layers
| Layer | What it is | Where it lives |
|---|---|---|
| Product line | The UVL model, its features and their constraints | splent_spl_<name>/, published on UVLHub |
| Features | Versioned Python packages, one capability each | splent_feature_<name>/ |
| Product | One configuration of the line, with the versions it pins | <product>/ |
| Framework | The runtime that builds the app from the product’s features | splent_framework |
| Infrastructure | The containers the product runs in | <product>/docker/, <product>/deploy/ |
| Delivery | Releases, the stable channel and the servers that follow it |
The forge, PyPI, image registries |
The workspace and the CLI are where you work on every layer, and the ecosystem is where the layers are published and found.
How they connect
- The line names the features, and its constraints decide which need which, and so the order they load in.
- Features extend each other only through their contracts, checked before anything runs.
- A product selects features from the line and pins a version of each, checked against the model.
- The framework reads that selection at boot and wires every feature into one Flask app.
- The same app runs in development containers and in a production image.
- A release ships a layer, and a server that follows the
stablechannel deploys it.
Where a change goes
| You want to | Layer | Start with |
|---|---|---|
| Allow or forbid a combination of features | Product line | Edit the model, then spl:publish |
| Add a capability several products can use | Features | feature:create |
| Change what another feature does | Features | feature:refine |
| Choose the features of one product | Product | product:configure |
| Change a setting of one product | Product | [tool.splent.config], then product:env |
| Run the product on your machine | Infrastructure | product:derive --dev |
| Put it in production | Delivery | product:release |
Development and production
The layers are the same in both. What changes is where the features come from and how the product runs.
| Development | Production | |
|---|---|---|
| Features | Working copies and snapshots from the cache | Pinned releases, installed from PyPI or their tag |
| Product | The same pyproject.toml |
The same pyproject.toml |
| Server | Flask’s development server | gunicorn, inside the image |
| Containers | The dev stack, with each feature’s services | The deploy bundle deploy/ and the image |
| Delivery | Nothing leaves your machine | A release, and servers that follow stable |