Skip to main content

ConstGen lets you share multiple object definitions between multiple programming languages

Project description

Note

This repo is based on the excellent tool by @aantn: https://github.com/aantn/reconstant

Introduction

ConstGen lets you share multiple object definitions between multiple programming languages:

  • constants
  • enums
  • types

Supported Languages:

  • Rust
  • Javascript
  • Go
  • Java
  • C/CPP
  • Python2/3
  • Vue

Installation

pip install git+https://github.com/ymec/constgen.git

OR

pip install constgen

Usage

Create a configuration yaml (for an example see example.yaml)

constgen example.yaml

Known Issues

Currently running main only works through pip installing the tool - running directly with python would cause import errors

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

constgen-0.5.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

constgen-0.5.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file constgen-0.5.1.tar.gz.

File metadata

  • Download URL: constgen-0.5.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-60-generic

File hashes

Hashes for constgen-0.5.1.tar.gz
Algorithm Hash digest
SHA256 519d1183efc994a6a4be234ad35ee711a4b6ceb81794739253cca18182cb4450
MD5 16bcf604f362a3bc27616141db1e96cd
BLAKE2b-256 8b7326936f068c3c24a4072ce6c091b701e3ca795342d77f5297ca682dd06ff6

See more details on using hashes here.

File details

Details for the file constgen-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: constgen-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-60-generic

File hashes

Hashes for constgen-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4fd66bc7231f308c52e31094e347dce1f1bb4a07176252ef1a45da628dfb231
MD5 50052b85860e694a470e8522c570842c
BLAKE2b-256 b1a662d51bba8ef7a784e829e29f0199f9c954e926bda298ef1c1718d3acf0d1

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