Initial commit

This commit is contained in:
Daniel G. Taylor
2019-10-05 08:36:23 -07:00
commit 6ed3b09f44
26 changed files with 1026 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: {{ description.filename }}
from dataclasses import dataclass
from typing import List
import betterproto
{% for message in description.messages %}
@dataclass
class {{ message.name }}(betterproto.Message):
{% if message.comment %}
{{ message.comment }}
{% endif %}
{% for field in message.properties %}
{% if field.comment %}
{{ field.comment }}
{% endif %}
{{ field.name }}: {{ field.type }} = betterproto.{{ field.field_type }}_field({{ field.number }}{% if field.zero %}, default={{ field.zero }}{% endif %})
{% endfor %}
{% endfor %}