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

Uploaded Source

Built Distribution

eoq3conceptsgen-2.9.2-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eoq3conceptsgen-2.9.2.tar.gz
  • Upload date:
  • Size: 57.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for eoq3conceptsgen-2.9.2.tar.gz
Algorithm Hash digest
SHA256 52b63c427f3ac03e11db478b8b5409557e750087b7523f55193b7a6c90036fb6
MD5 759bb6812464aaba962bcf0ae9c583f4
BLAKE2b-256 e94fb23380a99394a06d5f143446f85668c67b53b846067d56a853a136975c26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eoq3conceptsgen-2.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bc2bb070b9d380bdba281801e67d3cc122faefd07f9e072469c2bf74facc3d16
MD5 87eea679196df7e3e9ce38bc61248497
BLAKE2b-256 5aabb11da83acc0407f9623691778c4df74fa0df324b9a0bced9a5cfed883aaa

See more details on using hashes here.

Supported by

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