Skip to main content

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

eoq3conceptsgen-3.0.0.tar.gz (57.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eoq3conceptsgen-3.0.0-py3-none-any.whl (57.2 kB view details)

Uploaded Python 3

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

Hashes for eoq3conceptsgen-3.0.0.tar.gz
Algorithm Hash digest
SHA256 bf33359dec35b3dfc219f5c1df5a8e20b9fbdd7fc88eb381dfddee34b940a01a
MD5 5d74e96f7378ed5703ecece9e0371215
BLAKE2b-256 19c1bb76a99b9ce5e4ba10189183721c465f89d1bb590b60e7b0584301ab6037

See more details on using hashes here.

File details

Details for the file eoq3conceptsgen-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for eoq3conceptsgen-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16f7dbf5cfa7fb8aa0936d0a77032508fe3a84ef4b969cff2e96ed9b36ee0aa4
MD5 af6013d8594dc6a1715e06619db48382
BLAKE2b-256 74ef798de9a7d580722e236a3973ef3c039c2c4e7ed78e498805ac233689153d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page