title: How to generate python class files from protobuf
body: <p>I am trying to transfer large amounts of structured data from Java to Python. That includes many objects that are related to each other in some form or another. When I receive them in my Python code, it's quiet ugly to work with the types that are provided by protobuf. My VIM IDE crashed when trying to use autocomplete on the types, PyCharm doesn't complete <em>anything</em> and generally it just seems absurd that they don't provide some clean <code>class</code> definition for the different types.</p>
  
  <p>Is there a way to get IDE support while working with protobuf messages in python? I'm looking at 20+ methods handling complex messages and without IDE support I might as well code with notepad. </p>
  
  <p><a href="https://i.stack.imgur.com/7vmz1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7vmz1.png" alt="enter image description here"></a></p>
  
  <p>I understand that protobuf is using metaclasses (although I don't know why they do that). Maybe there is a way to generate python class files from that data or maybe there is something similar to <a href="https://www.npmjs.com/%7Etypes" rel="noreferrer">typescript typing files</a>.</p>
  
  <p>Did I maybe misuse protobuf? I believed I would describe my domain model in a way that may be used across languages. In Java I am happy with the generated classes and I can use them easily. Should I maybe have used something like <a href="http://swagger.io" rel="noreferrer">swagger.io</a> instead?</p>