2023-05-04 00:58:06 -07:00
<!DOCTYPE html>
< html class = "writer-html5" lang = "en" >
< head >
< meta charset = "utf-8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
2024-08-10 00:46:56 +00:00
< title > kittycad.models.import_file — kittycad v0.6.18 documentation< / title >
2023-05-04 00:58:06 -07:00
< link rel = "stylesheet" href = "../../../_static/pygments.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../../_static/css/theme.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../../_static/graphviz.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../../_static/copybutton.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../../_static/autoclasstoc.css" type = "text/css" / >
<!-- [if lt IE 9]>
< script src = "../../../_static/js/html5shiv.min.js" > < / script >
<![endif]-->
2023-08-16 23:39:29 +00:00
< script src = "../../../_static/jquery.js?v=5d32c60e" > < / script >
< script src = "../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c" > < / script >
2024-08-10 00:46:56 +00:00
< script src = "../../../_static/documentation_options.js?v=4e11d0cf" > < / script >
2024-07-28 22:52:47 +00:00
< script src = "../../../_static/doctools.js?v=9a2dae69" > < / script >
< script src = "../../../_static/sphinx_highlight.js?v=dc90522c" > < / script >
2023-08-16 23:39:29 +00:00
< script src = "../../../_static/clipboard.min.js?v=a7894cd8" > < / script >
< script src = "../../../_static/copybutton.js?v=f281be69" > < / script >
2023-05-04 00:58:06 -07:00
< script src = "../../../_static/js/theme.js" > < / script >
< link rel = "index" title = "Index" href = "../../../genindex.html" / >
< link rel = "search" title = "Search" href = "../../../search.html" / >
< / head >
< body class = "wy-body-for-nav" >
< div class = "wy-grid-for-nav" >
< nav data-toggle = "wy-nav-shift" class = "wy-nav-side" >
< div class = "wy-side-scroll" >
< div class = "wy-side-nav-search" >
< a href = "../../../index.html" class = "icon icon-home" >
kittycad
< / a >
< div class = "version" >
2024-08-10 00:46:56 +00:00
v0.6.18
2023-05-04 00:58:06 -07:00
< / div >
< div role = "search" >
< form id = "rtd-search-form" class = "wy-form" action = "../../../search.html" method = "get" >
< input type = "text" name = "q" placeholder = "Search docs" aria-label = "Search docs" / >
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< / div >
< / div > < div class = "wy-menu wy-menu-vertical" data-spy = "affix" role = "navigation" aria-label = "Navigation menu" >
< ul >
< li class = "toctree-l1" > < a class = "reference internal" href = "../../../_autosummary/kittycad.api.html" > kittycad.api< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "../../../_autosummary/kittycad.client.html" > kittycad.client< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "../../../_autosummary/kittycad.models.html" > kittycad.models< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "../../../_autosummary/kittycad.types.html" > kittycad.types< / a > < / li >
< / ul >
< / div >
< / div >
< / nav >
< section data-toggle = "wy-nav-shift" class = "wy-nav-content-wrap" > < nav class = "wy-nav-top" aria-label = "Mobile navigation menu" >
< i data-toggle = "wy-nav-top" class = "fa fa-bars" > < / i >
< a href = "../../../index.html" > kittycad< / a >
< / nav >
< div class = "wy-nav-content" >
< div class = "rst-content" >
< div role = "navigation" aria-label = "Page navigation" >
< ul class = "wy-breadcrumbs" >
< li > < a href = "../../../index.html" class = "icon icon-home" aria-label = "Home" > < / a > < / li >
< li class = "breadcrumb-item" > < a href = "../../index.html" > Module code< / a > < / li >
2023-12-05 16:25:51 -08:00
< li class = "breadcrumb-item active" > kittycad.models.import_file< / li >
2023-05-04 00:58:06 -07:00
< li class = "wy-breadcrumbs-aside" >
< / li >
< / ul >
< hr / >
< / div >
< div role = "main" class = "document" itemscope = "itemscope" itemtype = "http://schema.org/Article" >
< div itemprop = "articleBody" >
2023-12-05 16:25:51 -08:00
< h1 > Source code for kittycad.models.import_file< / h1 > < div class = "highlight" > < pre >
< span > < / span >
2024-07-28 22:52:47 +00:00
< span class = "kn" > from< / span > < span class = "nn" > pydantic< / span > < span class = "kn" > import< / span > < span class = "n" > BaseModel< / span > < span class = "p" > ,< / span > < span class = "n" > ConfigDict< / span >
2023-05-04 00:58:06 -07:00
2024-07-28 22:52:47 +00:00
< div class = "viewcode-block" id = "ImportFile" >
< a class = "viewcode-back" href = "../../../_autosummary/kittycad.models.import_file.ImportFile.html#kittycad.models.import_file.ImportFile" > [docs]< / a >
< span class = "k" > class< / span > < span class = "nc" > ImportFile< / span > < span class = "p" > (< / span > < span class = "n" > BaseModel< / span > < span class = "p" > ):< / span >
< span class = "w" > < / span > < span class = "sd" > " " " File to import into the current model. If you are sending binary data for a file, be sure to send the WebSocketRequest as binary/bson, not text/json." " " < / span >
2023-05-04 00:58:06 -07:00
2023-12-05 16:25:51 -08:00
< span class = "n" > data< / span > < span class = "p" > :< / span > < span class = "nb" > bytes< / span >
2024-07-28 22:52:47 +00:00
< span class = "n" > path< / span > < span class = "p" > :< / span > < span class = "nb" > str< / span >
< span class = "n" > model_config< / span > < span class = "o" > =< / span > < span class = "n" > ConfigDict< / span > < span class = "p" > (< / span > < span class = "n" > protected_namespaces< / span > < span class = "o" > =< / span > < span class = "p" > ())< / span > < / div >
2023-05-04 00:58:06 -07:00
< / pre > < / div >
< / div >
< / div >
< footer >
< hr / >
< div role = "contentinfo" >
2024-07-28 22:52:47 +00:00
< p > © Copyright 2024, KittyCAD Team Members.< / p >
2023-05-04 00:58:06 -07:00
< / div >
Built with < a href = "https://www.sphinx-doc.org/" > Sphinx< / a > using a
< a href = "https://github.com/readthedocs/sphinx_rtd_theme" > theme< / a >
provided by < a href = "https://readthedocs.org" > Read the Docs< / a > .
< / footer >
< / div >
< / div >
< / section >
< / div >
< script >
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
< / script >
< / body >
< / html >