MCPcopy Index your code
hub / github.com/CadQuery/cadquery / ScriptMetadata

Class ScriptMetadata

cadquery/cqgi.py:189–203  ·  view source on GitHub ↗

Defines the metadata for a parsed CQ Script. the parameters property is a dict of InputParameter objects.

Source from the content-addressed store, hash-verified

187
188
189class ScriptMetadata(object):
190 """
191 Defines the metadata for a parsed CQ Script.
192 the parameters property is a dict of InputParameter objects.
193 """
194
195 def __init__(self):
196 self.parameters = {}
197
198 def add_script_parameter(self, p):
199 self.parameters[p.name] = p
200
201 def add_parameter_description(self, name, description):
202 p = self.parameters[name]
203 p.desc = description
204
205
206class ParameterType(object):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected