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-2.9.3.tar.gz (57.8 kB view details)

Uploaded Source

Built Distribution

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

eoq3conceptsgen-2.9.3-py3-none-any.whl (58.2 kB view details)

Uploaded Python 3

File details

Details for the file eoq3conceptsgen-2.9.3.tar.gz.

File metadata

  • Download URL: eoq3conceptsgen-2.9.3.tar.gz
  • Upload date:
  • Size: 57.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for eoq3conceptsgen-2.9.3.tar.gz
Algorithm Hash digest
SHA256 946019df358f3aa7c6dbd28b8a359b4f71c35ddb223acadf418fb4f15dd73f94
MD5 60bb71c85860acda360b6308eb127668
BLAKE2b-256 2fcc3322e2e57fa11b7e5ac387277e6248a8cb8a378e995c86a9de9568199687

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eoq3conceptsgen-2.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e016aae1b7017978b9d179105b9b80a3efda0e5d133358a7796bd3e4785b2280
MD5 194216385b5b7361cb286300ea2ab0de
BLAKE2b-256 c3fd87a25a3f5f54e5ca4623c801d0345e41716bc2e7b47a91e2cb5c98d26cc1

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