Files
kittycad.py/docs/html/kittycad.types.html
2021-12-15 09:55:26 +00:00

161 lines
11 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module kittycad.types</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="kittycad.html"><font color="#ffffff">kittycad</font></a>.types</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/runner/work/kittycad.py/kittycad.py/kittycad/types.py">/home/runner/work/kittycad.py/kittycad.py/kittycad/types.py</a></font></td></tr></table>
<p><tt>Contains&nbsp;some&nbsp;shared&nbsp;types&nbsp;for&nbsp;properties</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="attr.html">attr</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="kittycad.types.html#File">File</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="typing.html#Generic">typing.Generic</a>(<a href="builtins.html#object">builtins.object</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="kittycad.types.html#Response">Response</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="File">class <strong>File</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#File">File</a>(payload:&nbsp;Union[BinaryIO,&nbsp;TextIO],&nbsp;file_name:&nbsp;Optional[str]&nbsp;=&nbsp;None,&nbsp;mime_type:&nbsp;Optional[str]&nbsp;=&nbsp;None)&nbsp;-&amp;gt;&nbsp;None<br>
&nbsp;<br>
Contains&nbsp;information&nbsp;for&nbsp;file&nbsp;uploads<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="File-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#File">File</a>.</tt></dd></dl>
<dl><dt><a name="File-__ge__"><strong>__ge__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#File">File</a>.</tt></dd></dl>
<dl><dt><a name="File-__gt__"><strong>__gt__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#File">File</a>.</tt></dd></dl>
<dl><dt><a name="File-__init__"><strong>__init__</strong></a>(self, payload: Union[BinaryIO, TextIO], file_name: Optional[str] = None, mime_type: Optional[str] = None) -&gt; None</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#File">File</a>.</tt></dd></dl>
<dl><dt><a name="File-__le__"><strong>__le__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#File">File</a>.</tt></dd></dl>
<dl><dt><a name="File-__lt__"><strong>__lt__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#File">File</a>.</tt></dd></dl>
<dl><dt><a name="File-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#File">File</a>.</tt></dd></dl>
<dl><dt><a name="File-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#File">File</a>.</tt></dd></dl>
<dl><dt><a name="File-to_tuple"><strong>to_tuple</strong></a>(self) -&gt; Tuple[Optional[str], Union[BinaryIO, TextIO], Optional[str]]</dt><dd><tt>Return&nbsp;a&nbsp;tuple&nbsp;representation&nbsp;that&nbsp;httpx&nbsp;will&nbsp;accept&nbsp;for&nbsp;multipart/form-data</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__annotations__</strong> = {'file_name': typing.Optional[str], 'mime_type': typing.Optional[str], 'payload': typing.Union[typing.BinaryIO, typing.TextIO]}</dl>
<dl><dt><strong>__attrs_attrs__</strong> = (Attribute(name='payload', default=NOTHING, vali...kw_only=False, inherited=False, on_setattr=None))</dl>
<dl><dt><strong>__hash__</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Response">class <strong>Response</strong></a>(<a href="typing.html#Generic">typing.Generic</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#Response">Response</a>(status_code:&nbsp;int,&nbsp;content:&nbsp;bytes,&nbsp;headers:&nbsp;MutableMapping[str,&nbsp;str],&nbsp;parsed:&nbsp;Optional[~T])&nbsp;-&amp;gt;&nbsp;None<br>
&nbsp;<br>
A&nbsp;response&nbsp;from&nbsp;an&nbsp;endpoint<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="kittycad.types.html#Response">Response</a></dd>
<dd><a href="typing.html#Generic">typing.Generic</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Response-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#Response">Response</a>.</tt></dd></dl>
<dl><dt><a name="Response-__ge__"><strong>__ge__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#Response">Response</a>.</tt></dd></dl>
<dl><dt><a name="Response-__gt__"><strong>__gt__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#Response">Response</a>.</tt></dd></dl>
<dl><dt><a name="Response-__init__"><strong>__init__</strong></a>(self, status_code: int, content: bytes, headers: MutableMapping[str, str], parsed: Optional[~T]) -&gt; None</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#Response">Response</a>.</tt></dd></dl>
<dl><dt><a name="Response-__le__"><strong>__le__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#Response">Response</a>.</tt></dd></dl>
<dl><dt><a name="Response-__lt__"><strong>__lt__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#Response">Response</a>.</tt></dd></dl>
<dl><dt><a name="Response-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#Response">Response</a>.</tt></dd></dl>
<dl><dt><a name="Response-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Method&nbsp;generated&nbsp;by&nbsp;attrs&nbsp;for&nbsp;class&nbsp;<a href="#Response">Response</a>.</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__annotations__</strong> = {'content': &lt;class 'bytes'&gt;, 'headers': typing.MutableMapping[str, str], 'parsed': typing.Optional[~T], 'status_code': &lt;class 'int'&gt;}</dl>
<dl><dt><strong>__attrs_attrs__</strong> = (Attribute(name='status_code', default=NOTHING, ...kw_only=False, inherited=False, on_setattr=None))</dl>
<dl><dt><strong>__hash__</strong> = None</dl>
<dl><dt><strong>__orig_bases__</strong> = (typing.Generic[~T],)</dl>
<dl><dt><strong>__parameters__</strong> = (~T,)</dl>
<hr>
Class methods inherited from <a href="typing.html#Generic">typing.Generic</a>:<br>
<dl><dt><a name="Response-__class_getitem__"><strong>__class_getitem__</strong></a>(params)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>
<dl><dt><a name="Response-__init_subclass__"><strong>__init_subclass__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>This&nbsp;method&nbsp;is&nbsp;called&nbsp;when&nbsp;a&nbsp;class&nbsp;is&nbsp;subclassed.<br>
&nbsp;<br>
The&nbsp;default&nbsp;implementation&nbsp;does&nbsp;nothing.&nbsp;It&nbsp;may&nbsp;be<br>
overridden&nbsp;to&nbsp;extend&nbsp;subclasses.</tt></dd></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>FileJsonType</strong> = typing.Tuple[typing.Optional[str], typing.Union[...g.BinaryIO, typing.TextIO], typing.Optional[str]]<br>
<strong>__all__</strong> = ['File', 'Response', 'FileJsonType']<br>
<strong>__annotations__</strong> = {'UNSET': &lt;class 'kittycad.types.Unset'&gt;}</td></tr></table>
</body></html>