All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.comect.misc.dataschema.languages.python.file.kte Maven / Gradle / Ivy

Go to download

Library for transforming data files into data class-equivalents in various languages

The newest version!
@import org.comect.misc.dataschema.generation.VariableContainer

@param comment: String?
@param imports: List
@param name: String
@param packageName: String
@param variables: List

@for(importName in imports)import ${importName}
@endfor

import typing
from dataclasses import dataclass

@dataclass
class ${name}:
@if (comment != null)${comment.prependIndent("    ")}
@endif@for(variable in variables)
    ${variable.line}@if (variable.comment != null)
    ${variable.comment}
@endif@endfor




© 2015 - 2025 Weber Informatics LLC | Privacy Policy