Scripts for generating code out of the formal definition of concepts using mako templates.
Project description
eoq3conceptsgen - Code generator for EOQ3 concepts
Scripts for generating code out of the formal definition of concepts using mako templates.
Command-line Interface (CLI)
Usage
python -m eoq3conceptsgen.generatefromconceptscli --help
usage: generatefromconcepts [-h] [-c CONCEPTSDEFFILE] [-i INFILE] [-o OUTFILE] [-d DATAFILE]
Generates mako templates from the content of concepts.xlsx
options:
-h, --help show this help message and exit
-c CONCEPTSDEFFILE, --conceptsDefFile CONCEPTSDEFFILE
the concept definition file
-i INFILE, --inFile INFILE
The input template
-o OUTFILE, --outFile OUTFILE
The generated file
-d DATAFILE, --dataFile DATAFILE
Optional json data file, whose content is available as "data" in the template
Examples
Generate concepts.py from sample.mako (included in package):
python -m eoq3conceptsgen.generatefromconceptscli -o concepts.py
API Interface
from .generatefromconcepts import GenerateFromConcepts
...
GenerateFromConcepts(inFile,conceptsDefFile,outFile,dataFile)
Documentation
For more information see EOQ3 documentation: https://eoq.gitlab.io/doc/eoq3/
Author
2024 Bjoern Annighoefer
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
eoq3conceptsgen-2.9.0.tar.gz
(58.9 kB
view details)
Built Distribution
File details
Details for the file eoq3conceptsgen-2.9.0.tar.gz
.
File metadata
- Download URL: eoq3conceptsgen-2.9.0.tar.gz
- Upload date:
- Size: 58.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2688e1e7a443b00aa5a4a123130f8e3f57ec79a4af1ade47f2f348bd263b2d84 |
|
MD5 | 264001a48224f059e2a07044edee4f24 |
|
BLAKE2b-256 | ed06f8a93911747b9544d71395e08e0484ef6dec843e5ab909e15ea555e46277 |
File details
Details for the file eoq3conceptsgen-2.9.0-py3-none-any.whl
.
File metadata
- Download URL: eoq3conceptsgen-2.9.0-py3-none-any.whl
- Upload date:
- Size: 59.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91491164b354096550f1464c67d58238fbb978c1aa302aa3d943aebf4c7e19ef |
|
MD5 | 1d557f4757aa8f621ff7ef1342ae7ced |
|
BLAKE2b-256 | 6038a1b23ff01cc2343cf43e29af55bbc6ef0ceba263017f62ccad82c1d753d5 |