Skip to content

Hochfrequenz/bo4e-dotnet-generator.py

Repository files navigation

Generate C# Code from BO4E JSON Schemas

This tool generates C# dotnet classes based on BO4E-JSON-Schemas. it takes advantage of QuickType npm package to generate C# classes from JSON schemas.

For fetching last json schemas you can use BO4E-Schema-Tool tool.

License: MIT Python Versions (officially) supported Pypi status badge Unittests status badge Coverage status badge Linting status badge Black status badge

How to use this Tool (as a user)

pip install bo4e-dotnet-generator

The bo4e-dotnet-generator tool has two arguments:

  1. schema_dir: This is the directory path that should contain the BO4E schema files. It is a required argument.

  2. output_dir: This is the output directory path where the generated C# classes will be saved. If not specified, the default directory is dotnet-classes.

To use the tool, run the following command in your terminal:

bo4e-dotnet-generator [schema_dir] [output_dir]

How to use this Repository on Your Machine (as a developer)

Please follow the instructions in our Python Template Repository. And for further information, see the Tox Repository.

Quicktype Executable Path

This script checks the APPDATA environment variable to find the Quicktype.cmd npm package in the AppData path on Windows.

About

Python Script/Package to Generate C# Classes from BO4E JSON Schemas

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •