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
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 eoq3conceptsgen-3.0.0.tar.gz.
File metadata
- Download URL: eoq3conceptsgen-3.0.0.tar.gz
- Upload date:
- Size: 57.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf33359dec35b3dfc219f5c1df5a8e20b9fbdd7fc88eb381dfddee34b940a01a
|
|
| MD5 |
5d74e96f7378ed5703ecece9e0371215
|
|
| BLAKE2b-256 |
19c1bb76a99b9ce5e4ba10189183721c465f89d1bb590b60e7b0584301ab6037
|
File details
Details for the file eoq3conceptsgen-3.0.0-py3-none-any.whl.
File metadata
- Download URL: eoq3conceptsgen-3.0.0-py3-none-any.whl
- Upload date:
- Size: 57.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16f7dbf5cfa7fb8aa0936d0a77032508fe3a84ef4b969cff2e96ed9b36ee0aa4
|
|
| MD5 |
af6013d8594dc6a1715e06619db48382
|
|
| BLAKE2b-256 |
74ef798de9a7d580722e236a3973ef3c039c2c4e7ed78e498805ac233689153d
|