TOSCA in Swarmchestrate
This repository is home to the Swarmchestrate project documentation.
The full documentation can be seen here and this should be the first stop for anyone looking to deploy applications with Swarmchestrate. There is some usual info for developers below.
Sardou TOSCA Library
This repository also contains the source for the TOSCA Toolkit in Swarmchestrate, named Sardou. Some info for developers is available in this README.
Quickstart
Install Puccini.
wget https://github.com/Swarmchestrate/tosca/releases/download/v0.2.4/go-puccini_0.22.7-SNAPSHOT-3e85b40_linux_amd64.deb
sudo dpkg -i go-puccini_0.22.7-SNAPSHOT-3e85b40_linux_amd64.deb || sudo apt --fix-broken install -y
Install Sardou:
uv add sardou
Run the Sardou CLI to validate an SAT or CDT:
sardou templates/BookInfo.yaml
Setup
System Requirements
- Python 3.12
- Minimum GLIBC 2.34 (Ubuntu 22.04 or higher)
Puccini
Puccini provides a TOSCA Parser, which Swarmchestrate uses to validate templates and complete the representation graph. It must be installed before using Sardou.
Prefer the latest (currently unreleased) version. Build from source from Go-Puccini or use the prebuilts attached to this Sardou release.
You can install the recommended Puccini on Linux with:
wget https://github.com/Swarmchestrate/tosca/releases/download/v0.2.4/go-puccini_0.22.7-SNAPSHOT-3e85b40_linux_amd64.deb
sudo dpkg -i go-puccini_0.22.7-SNAPSHOT-3e85b40_linux_amd64.deb || sudo apt --fix-broken install -y
Sardou
You may then install Sardou from PyPi using uv (or pip).
# using uv
uv add Sardou
Command-line Usage
The Sardou CLI currently only performs validation. Run it against any SAT or CDT. If processed succesfully, the template is valid.
sardou templates/BookInfo.yaml
Library Usage
Import the Sardou TOSCA Library
from sardou import Sardou
Validation
To validate a TOSCA template, create a new Sardou object, passing it a file path,
or the template content directly as a Python dict. This will validate the template and complete the representation, inheriting from parent types.
# Pass a file path
>>> sat = Sardou("BookInfo.yaml")
Processed successfully: BookInfo.yaml
# Pass content directly as a Python dict
>>> sat = Sardou(content="tosca_definitions_version: tosca_2_0\n...")
Processed successfully
>>> sat
{'path': PosixPath('templates/BookInfo.yaml'), 'description': 'Istio Bookinfo as a Swarmchestrate SAT', 'nodeTemplates': {'details_v1': {'metadata': {}, 'description': '', 'types': {'eu.swarmchestrate:0.1::Kubernetes.APIObject': {'description': ...
The template is not resolved at this point (i.e. statisfied requirements and created relationships) - that functionality is to come. If there are errors or warnings, they will be presented at this time.
Exploring the Template
Get the raw, uncompleted (original YAML) with the raw attribute.
>>> sat.raw
{'tosca_definitions_version': 'tosca_2_0', 'description': 'Istio Bookinfo as a Swarmchestrate SAT', 'metadata': {'name': 'bookinfo', 'author': 'you', ...
You can traverse YAML maps using dot notation if needed (which leads to some unexpected behaviour, so this may not be a long-term feature):
>>> sat.nodeTemplates
{'details_v1': {'metadata': {}, 'description': '', 'types': {'eu.swarmchestrate:0.1::Kubernetes.APIObject': {'description': 'Base type for Kubernetes API objects (persisted resources that can be created/applied on their own, e.g. Service, Deployment, ServiceAccount)...
Going Further
The rest of the developer docs can be found here
Contact
Contact Jay at Westminster for support with TOSCA and/or this repository.
Metadata
Release files for Sardou 0.13.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sardou-0.13.1.tar.gz | 895.9 kB | With provenance | Details for sardou-0.13.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sardou-0.13.1-py3-none-any.whl | Python 3 | none | any | Details for sardou-0.13.1-py3-none-any.whl |
Total release size: 911.1 kB
Release files / sardou-0.13.1.tar.gz
| Download URL | sardou-0.13.1.tar.gz |
|---|---|
| Size | 895.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e9ab6f9403fad8e99bd463a94d11f50f0f4349bfe4996946988d3e2c35393ee
|
|
BLAKE2b-256 checksum How to use checksums |
65267c145f20ef1e6a960157d3db3355bc88376ebf6b8b7a574f6f9d56084848
|
| 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 22, 2026.
Transparency logRelease files / sardou-0.13.1-py3-none-any.whl
| Download URL | sardou-0.13.1-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f471b2f5d1a3c4af47736af77e5ffe433b9cf8d1592cd5ed07665785c572c192
|
|
BLAKE2b-256 checksum How to use checksums |
d9603325477ad2b0635e38118ea3aa4d919e40e3fbd1538cb926b8a2a6e6028e
|
| 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 22, 2026.
Transparency logSecurity for Sardou 0.13.1
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.
Attestation for sardou-0.13.1.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 Sep 22, 2026.
Transparency logA 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.