Metadata-Version: 2.4
Name: eoq3conceptsgen
Version: 3.0.0
Summary: Scripts for generating code out of the formal definition of concepts using mako templates.
Author-email: Bjoern Annighoefer <bjoern.annighoefer@ils.uni-stuttgart.de>
Project-URL: Homepage, https://gitlab.com/eoq/py/eoq3conceptsgen
Project-URL: Issues, https://gitlab.com/eoq/py/eoq3conceptsgen/-/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas
Requires-Dist: mako
Requires-Dist: openpyxl
Dynamic: license-file

# 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
