stkml is a transpiler for stckml language to generate output for different backend as diagram, drawio, map.
Project description
Stkml-cli
STKML is an open-source IoT stack coding language developed by Stackeo and INRIA for both industry and academic research. STKML allows you to describe an IoT system globally and then to detail its different entities and their relationships in a simple way. Thus IoT teams can quickly visualize and verify the principles of the end-to-end architecture, create simulation or reproducible test scenarios for the sizing and forecasting of the non-functional properties of a connected system or an IoT solution. end to end before its large-scale deployment. STKML also allows vendors to create libraries of IoT product models and architecture patterns for integration into an architectural design.
A set of tools associated with STKML (enriched online editor, transpilators, diagramming tools, topology checking tools, model libraries) are being developed to support developers in assisted coding and compilation of their models. components and architecture in order to automatically generate models, their documentation or the associated simulation or deployment scenarios. The user can thus contribute to the Stacker community, by creating, reusing and manipulating frameworks and architectural templates and models of IoT system components.
The implementation is compatible with python3.6
Usage
- Installation of application
pip install stkml
- Run the application
You can run the application with the following command
stkml
Usage: stkml [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
check check stkml file architecture
compile compile stkml file using a specific backend
init initialize a stkml project
Usage: stkml compile [OPTIONS] COMMAND [ARGS]...
compile stkml file using a specific backend
Options:
-i, --input TEXT the file to compile
-d, --disable-syntax-verification
ignore syntax verification
-h, --help Show this message and exit.
Commands:
diagram compile stkml file for
drawio compile stkml file for drawio
Usage: stkml compile diagram [OPTIONS]
compile stkml file for diagram
Example: stkml compile -i architecture.stkml diagram -t 1 -o img
Options:
-t, --type [1|2|3] the diagram type {Architecture ,Topology or Map}
[required]
-i, --icons TEXT the icon folder {it contains [Node_Id].png files}
-o, --output TEXT the output file [required]
-h, --help Show this message and exit.
Usage: stkml compile drawio [OPTIONS]
compile stkml file for Drawio
Example: stkml compile -i architecture.stkml Drawio -l 1 -o Drawio
Options:
-l, --level [1|2] the diagram view level {System View or Layer View}
[required]
-i, --icons TEXT the icon folder {it contains [Node_Id].png files}
-o, --output TEXT the output file [required]
-h, --help Show this message and exit.
stkml check --input architecture
Usage: stkml check [OPTIONS]
check stkml project
Options:
-i, --input TEXT the stkml project to check
--disable-syntax-verification ignore syntax verification
--help Show this message and exit.
stkml init
Usage: stkml init [OPTIONS]
initialize a stkml project
Options:
-i, --input TEXT the file to compile to stkml
-b, --backend TEXT the file backend [drawio]
-p, --path TEXT the stkml project directory
-h, --help Show this message and exit.
- Configure the Ide
See the stkml documentation
-
Diagram Examples
-
System Diagram
stkml compile -i Examples/example.stkml diagram -t 1 -o Examples/results/diagram/Type1/level1 --icons Examples/icons/Result :
-
Deployment Topology Diagram
stkml compile -i Examples/example.stkml diagram -t 2 -o Examples/results/Type2/diagram/level1 --icons Examples/icons/Result :
-
Deployment Map
stkml compile -i Examples/example.stkml diagram -t 3 -o Examples/results/Type2/diagram/level2.html --icons Examples/icons/Result :
-
-
Drawio Examples
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 stkml-1.0.2a0.tar.gz.
File metadata
- Download URL: stkml-1.0.2a0.tar.gz
- Upload date:
- Size: 128.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de95c276ae3eb08e322201bb50dbe2dd7741336b457960e315818ee2660e11eb
|
|
| MD5 |
27e275e0bbf3db54bb6bcf8c7215e90c
|
|
| BLAKE2b-256 |
820ceca9dacc6ebcfcd3c6323a6dc791270536edd6d0f0d8da2949dac99b3ba0
|
File details
Details for the file stkml-1.0.2a0-py3-none-any.whl.
File metadata
- Download URL: stkml-1.0.2a0-py3-none-any.whl
- Upload date:
- Size: 167.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06e47210d433308f739ad7bc44c40f918065441866b3fc29d2cb06daeb12a6ba
|
|
| MD5 |
71e6d3a567faa4636bbc8ad06d2fb529
|
|
| BLAKE2b-256 |
f2faefebde94e895dc55c1c2e3f828b7cc0917768ecf40e4fa42f5def8003bd4
|