org.comect.misc.dataschema.languages.python.file.kte Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of library Show documentation
Show all versions of library Show documentation
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