Skip to main content

Simple code generation tool with support for multiple types of inputs

Project description

Pycodegen is a tool to help you generate code in your project using powerful Jinja2 templates.

To get started:

python3 install

# Run cli

# Run cli using module
python3 -m pycodegen.cli




Parses C/C++ using libclang


Passes a JSON file directly to the driver

How it works

  1. The requested frontend reads the input file and generates an intermediate representation.

  2. The representation is passed to the driver

  3. Driver does any processing required of the representation.

  4. Driver selects the output filename and template to be used and render the output file.

Example usage

# Generate the simple JSON example
pycodegen json examples/simple/input_file.json --driver examples/simple/ --debug

# Get intermediate representation of a C++ file (to aid in driver development)
pycodegen cpp <name-of-file.cpp> --dump-json

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

pycodegen-0.0.1.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

pycodegen-0.0.1-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

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