Skip to main content

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

Metadata

Release files for constgen 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for constgen 0.5.1
File Size Uploaded
constgen-0.5.1.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for constgen 0.5.1
File Interpreter ABI Platform
constgen-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.4 kB

Release files / constgen-0.5.1.tar.gz

Download URL constgen-0.5.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
519d1183efc994a6a4be234ad35ee711a4b6ceb81794739253cca18182cb4450
BLAKE2b-256 checksum
How to use checksums
8b7326936f068c3c24a4072ce6c091b701e3ca795342d77f5297ca682dd06ff6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-60-generic

Release files / constgen-0.5.1-py3-none-any.whl

Download URL constgen-0.5.1-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4fd66bc7231f308c52e31094e347dce1f1bb4a07176252ef1a45da628dfb231
BLAKE2b-256 checksum
How to use checksums
b1a662d51bba8ef7a784e829e29f0199f9c954e926bda298ef1c1718d3acf0d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-60-generic

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page