Skip to main content

A flexible source code generator with fixed structure templates

Project description

Code Generator Odin

A flexible source code generator with fixed structure templates.

Table of Contents

Features

  • Generate code snippets for various programming languages.
  • Create project templates for quick setup.
  • Customize boilerplate code to fit your needs.

Installation

To install the Code Generator Odin, clone the repository and install the dependencies:

git clone https://github.com/odin-hoang/code-generator.git
cd code-generator
pip install .

For development, you can install the package with testing dependencies:

pip install -e .[test]

Usage

To generate a code snippet, run the following command:

generate-code -t path/to/template.json -o path/to/output.py

Arguments

  • -t, --template: Path to the JSON template file (required).
  • -o, --output: Output file path (defaults to stdout).
  • --indent: Number of spaces for indentation (default: 4).

Development

Running Tests

pytest tests/

The tests are automatically run on each push and pull request to the main branch using GitHub Actions. See the tests.yml for more details.

Contributing

We welcome contributions! Please read our contributing guidelines for more details.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

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

code_generator_odin-0.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

code_generator_odin-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file code_generator_odin-0.1.2.tar.gz.

File metadata

  • Download URL: code_generator_odin-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for code_generator_odin-0.1.2.tar.gz
Algorithm Hash digest
SHA256 42a0565af26d82bd649eefcc546184b54e7b52e7b330508467c682774d59d239
MD5 9a0701e6c6dafb9e2af0fa9568f9d1dc
BLAKE2b-256 31d30d14eb8eb94fb7b272860c751d7084f8981b70c33546f44922434afcc968

See more details on using hashes here.

File details

Details for the file code_generator_odin-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for code_generator_odin-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 313e4c8464e236e1454b1cce5b04296b9d0bff8764f68a6c371634d49867bf33
MD5 9614c4f8d2de85795f5f2ceadd03e803
BLAKE2b-256 15cffd90ff4c04be134a8935aa16fe159d02542957bbd28bae8277b10f719e42

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