[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-760060-105":3,"doc-detail-760060-en":79,"detail-sidebar-cat-0-en-105":202,"doc-similar-760060":243},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","pyto-documents-pyto-libraries","Pyto - Documents - Pyto Libraries","","Pyto is an open source app that runs Python code locally on iPad or iPhone, using the Python C API inside the same app process to satisfy iOS restrictions. The documentation introduces Pyto libraries built specifically for iOS, including Objective-C bridging via Rubicon-ObjC. It also explains how iOS system frameworks are exposed as importable modules and provides example code to obtain the main bundle path. A curated list of directly importable frameworks is included for developers.",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/pyto-documents-pyto-libraries/760060/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/pyto-documents-pyto-libraries/760060.png","ImageObject",300,407,{"name":42,"@type":43},"Melati","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":51,"interactionType":52,"userInteractionCount":22},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"What does the Pyto app enable on iPad or iPhone?","Question",{"text":61,"@type":62},"Pyto allows running Python code locally on iPad or iPhone by executing it within the app process on iOS. It supports installing pure Python modules from PyPI and includes some libraries with C extensions.","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"How does Pyto bridge Python with Objective-C?",{"text":66,"@type":62},"Pyto uses the Rubicon-ObjC library as a bridge between Python and Objective-C. This is intended to make calling Objective-C classes more convenient from Python.",{"name":68,"@type":59,"acceptedAnswer":69},"How are iOS system frameworks made available in Pyto?",{"text":70,"@type":62},"iOS system frameworks are provided as modules that contain a list of classes and can be imported directly in Pyto. The documentation also shows example usage of Foundation's NSBundle to get the bundle path.","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},760060,1795898310,{"code":4,"msg":80,"data":81},"success",{"doc_id":77,"user_id":82,"nickname":42,"user_avatar":83,"doc_module":4,"category_id":84,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":85,"file_id":86,"file_url":87,"file_type":88,"file_size":89,"view_count":22,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":90,"language":91,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":92,"faqs":93,"seo_title":94,"seo_description":12,"update_tm":78,"read_time":95,"preview_page_count":96,"preview_urls":97},962085570644,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d",6,"Pyto  \nJul 20, 2022  \nContents  \n1 Documents 3  \nPython Module Index 173  \nIndex 175  \nii  \nWelcome to the Pyto's documentation!  \nPyto version: 19.0 (424) Python version: 3.10.0+  \nPyto is an open source app to code and run Python code locally on an iPad or iPhone. The app uses the Python C APIto run Python code in the same process of the app, due to iOS restrictions. Third party pure Python modules can be installed from PyPI and some libraries with C extensions are bundled in the app. For a list of included libraries, see Third Party.  \nFor questions or sharing anything about Pyto, you can join the r/PytoIDE subreddit.  \nThe Python 3.10 binary that comes with the app is from the Python-Apple-support project by beeware. Toga, a cross platform UI library is also included.  \nCHAPTER 1  \nDocuments  \n1.1 Pyto Libraries  \nPyto is built with the following modules built speciﬁcally for iOS.  \n1.1.1 Objective-C  \nPyto has the Rubicon-ObjC library as its bridge between Python and Objective-C. See the documentation for more information.  \nTo make the usage of Objective-C classes easier, Pyto has the iOS system frameworks as modules containing a list of classes.  \nUsage  \nfrom Foundation import NSBundle  \nbundle_path = str (NSBundle .mainBundle .bundleURL .path)  \nFrameworks  \nThese are the frameworks that can be imported directly in Pyto.  \n• Accounts  \n• AGXMetalA10  \n• AudioToolbox  \n• AuthenticationServices  \n• AVFAudio  \n• AVFoundation  \n• AVKit  \n• AXSpeechImplementation  \n• BackgroundTasks  \n• CallKit  \n• CFNetwork  \n• ClassKit  \n• CloudDocsFileProvider  \n• CloudKit  \n• Combine  \n• Contacts  \n• ContactsUI  \n• CoreAudio  \n• CoreBluetooth  \n• CoreData  \n• CoreFoundation  \n• CoreHaptics  \n• CoreImage  \n• CoreLocation  \n• CoreMedia  \n• CoreMIDI  \n• CoreML  \n• CoreMotion  \n• CoreServices  \n• CoreSpotlight  \n• CoreTelephony  \n• CoreText  \n• CryptoTokenKit  \n• EventKit  \n• ExposureNotiﬁcation  \n• ExternalAccessory  \n• FileProvider  \n• FileProviderOverride  \n• Foundation  \n• HealthKit  \n• ImageCaptureCore  \n• Intents  \n• IntentsUI  \n• IOKit  \n• IOSurface  \n• JavaScriptCore  \n• lib  \n• LinkPresentation  \n• LocalAuthentication  \n• MapKit  \n• MediaPlayer  \n• MediaToolbox  \n• MessageUI  \n• Metal  \n• MetalKit  \n• MLCompute  \n• MPSCore  \n• MPSImage  \n• MPSMatrix  \n• MPSNDArray  \n• MPSNeuralNetwork  \n• MPSRayIntersector  \n• MultipeerConnectivity  \n• NaturalLanguage  \n• Network  \n• NetworkExtension  \n• NotiﬁcationCenter  \n• OpenGLES  \n• PDFKit  \n• PencilKit  \n• Photos  \n• PushKit  \n• QuartzCore  \n• QuickLook  \n• QuickLookThumbnailing  \n• SafariServices  \n• Security  \n• SharedUtils  \n• SoundAnalysis  \n• Speech  \n• StoreKit  \n• swift  \n• SwiftUI  \n• system  \n• UIKit  \n• UniformTypeIdentiﬁers  \n• UserNotiﬁcations  \n• vecLib  \n• VideoSubscriberAccount  \n• VideoToolbox  \n• Vision  \n• WatchConnectivity  \n• WebKit  \n• WidgetKit  \n1.1.2 pyto_ui  \nAPI Reference  \nClasses  \nThis page contains a list of classes used by the pyto_ui API.  \nToga Compatibility  \nIt's possible to embed PytoUI views in a Toga app with the TogaWidget class.  \nViews  \nA list of UI elements to be displayed on screen.  \nControls  \nOther classes  \nA list of classes that don't represent views.","cbCaigNGiaFfoUUn","https://ap.wps.com/l/cbCaigNGiaFfoUUn","pdf",565876,212,"English","# Documents\n## Pyto Libraries\n### Objective-C\n### Frameworks\n## pyto_ui\n### API Reference","[{\"question\":\"What does the Pyto app enable on iPad or iPhone?\",\"answer\":\"Pyto allows running Python code locally on iPad or iPhone by executing it within the app process on iOS. It supports installing pure Python modules from PyPI and includes some libraries with C extensions.\"},{\"question\":\"How does Pyto bridge Python with Objective-C?\",\"answer\":\"Pyto uses the Rubicon-ObjC library as a bridge between Python and Objective-C. This is intended to make calling Objective-C classes more convenient from Python.\"},{\"question\":\"How are iOS system frameworks made available in Pyto?\",\"answer\":\"iOS system frameworks are provided as modules that contain a list of classes and can be imported directly in Pyto. The documentation also shows example usage of Foundation's NSBundle to get the bundle path.\"}]","Pyto - Documents - Pyto Libraries | PDF",534,22,[98,102,106,110,114,119,123,128,133,138,143,148,153,158,163,168,173,178,183,188,193,198],{"page_no":22,"url":99,"width":100,"height":101},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/758e2977372737d5fb9fdcd300160737.webp",983,1272,{"page_no":26,"url":103,"width":104,"height":105},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/aa6f871a50edd81c20772d9d25612a40.webp",982,1270,{"page_no":30,"url":107,"width":108,"height":109},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/9bbb2610f95efc788376fbd472c00c7c.webp",981,1269,{"page_no":33,"url":111,"width":112,"height":113},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/216498a80270c1f1b3e222096da23582.webp",980,1268,{"page_no":115,"url":116,"width":117,"height":118},5,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/c597c8cfd8edc0ef19ea2af664d63455.webp",979,1267,{"page_no":84,"url":120,"width":121,"height":122},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/7f553f511bd84ce3fdbb53bfe6f5b753.webp",978,1265,{"page_no":124,"url":125,"width":126,"height":127},7,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/9d4a4262f6f69a86fbd368fde11b4aa6.webp",977,1264,{"page_no":129,"url":130,"width":131,"height":132},8,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/8e59856902418081ac40110f68ad24f2.webp",976,1263,{"page_no":134,"url":135,"width":136,"height":137},9,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/48f9cbeff1c3ac337bb4f39cc25a880a.webp",975,1261,{"page_no":139,"url":140,"width":141,"height":142},10,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/e3ffaa6b93ed95e3a2cee1232ab1d91b.webp",974,1260,{"page_no":144,"url":145,"width":146,"height":147},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/9c2ad788f981b88c6b97461e89ae9fe2.webp",973,1259,{"page_no":149,"url":150,"width":151,"height":152},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/1787a68b97efaa4ef1fdfd28284c1c34.webp",972,1257,{"page_no":154,"url":155,"width":156,"height":157},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/3d7b08918d679b87f673ea889e3edd62.webp",971,1256,{"page_no":159,"url":160,"width":161,"height":162},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/fc3f1bdef40316af4b608189bf5a7e71.webp",970,1255,{"page_no":164,"url":165,"width":166,"height":167},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/b753c227565c15f15cc97af922c400e8.webp",969,1254,{"page_no":169,"url":170,"width":171,"height":172},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/3a1c687acc24eddb1277e23bfba7d112.webp",968,1252,{"page_no":174,"url":175,"width":176,"height":177},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/997a0f0fd51764bd0a3ccc9360e68600.webp",967,1251,{"page_no":179,"url":180,"width":181,"height":182},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/b3a2e007bf54e47eb70332a50f839d1a.webp",966,1250,{"page_no":184,"url":185,"width":186,"height":187},19,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/c5f7ef642bd23eeba76681ad0d564243.webp",965,1248,{"page_no":189,"url":190,"width":191,"height":192},20,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/a663e72d4b2a6877a611a7c51e351ec3.webp",964,1247,{"page_no":194,"url":195,"width":196,"height":197},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/e7189200682373dd23a090fb308c6cbd.webp",963,1246,{"page_no":96,"url":199,"width":200,"height":201},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/32f2f7f96de4489a2c09159e7e25d683.webp",962,1245,{"code":4,"msg":80,"data":203},[204,208,212,216,220,223,227,231,234,237,240],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":205,"show_sort_weight":206,"slug":207},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":209,"show_sort_weight":210,"slug":211},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":213,"show_sort_weight":214,"slug":215},"Exam",70,"exam",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":217,"show_sort_weight":218,"slug":219},"Comic",60,"comic",{"id":84,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":221,"slug":222},50,"technology",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":224,"show_sort_weight":225,"slug":226},"Healthcare",40,"healthcare",{"id":129,"doc_module":4,"doc_module_name":25,"category_name":228,"show_sort_weight":229,"slug":230},"Research & Report",30,"research-report",{"id":134,"doc_module":4,"doc_module_name":25,"category_name":232,"show_sort_weight":189,"slug":233},"Religion & Spirituality","religion-spirituality",{"id":189,"doc_module":4,"doc_module_name":25,"category_name":235,"show_sort_weight":189,"slug":236},"World Cup","world-cup",{"id":139,"doc_module":4,"doc_module_name":25,"category_name":238,"show_sort_weight":139,"slug":239},"Lifestyle","lifestyle",{"id":184,"doc_module":4,"doc_module_name":25,"category_name":241,"show_sort_weight":115,"slug":242},"General","general",{"list":244,"token":11},[245,252,258,264,270,277,283,289,295,301],{"doc_id":246,"doc_title":247,"file_type":88,"home_preview_img_url":248,"slug":249,"view_count":250,"category_name":29,"create_tm":251},19470,"Macworld April 2024 Contents: Apple Vision Pro, Hidden iPhone 15, and Mac Tutorials","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229709445819/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=rLox5PuCYW9vaES8R8cLAVnye%2Fo%3D","macworld-april-2024-contents-apple-vision-pro-hidden-iphone-15-and-mac-tutorials",73,1777160758,{"doc_id":253,"doc_title":254,"file_type":88,"home_preview_img_url":255,"slug":256,"view_count":214,"category_name":29,"create_tm":257},22800,"Vho adopted who?","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229715847223/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=mSzbgCmcEbm0X%2BcnF%2BMjKnoBwa8%3D","vho-adopted-who",1777628284,{"doc_id":259,"doc_title":260,"file_type":88,"home_preview_img_url":261,"slug":262,"view_count":84,"category_name":29,"create_tm":263},661576,"iBPS Mobile iOS User Guide - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229980468865/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=%2FKgjj5Jim7mLhGlkpZaAzXCie9Q%3D","ibps-mobile-ios-user-guide-read-online-free",1793170631,{"doc_id":265,"doc_title":266,"file_type":88,"home_preview_img_url":267,"slug":268,"view_count":84,"category_name":29,"create_tm":269},687128,"How to reduce image file size on iPhone and iPad - iGeeksBlog","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001251748/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=g92HaUzOLb4hXPZg1Dl6tKyUYpg%3D","how-to-reduce-image-file-size-on-iphone-and-ipad-igeeksblog",1794081743,{"doc_id":271,"doc_title":272,"file_type":88,"home_preview_img_url":273,"slug":274,"view_count":275,"category_name":29,"create_tm":276},22786,"MacFormat UK November 2025","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229715846527/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=LYOUgqFAA4ZwCw2rl93BlG%2FBGxI%3D","macformat-uk-november-2025",82,1777628150,{"doc_id":278,"doc_title":279,"file_type":88,"home_preview_img_url":280,"slug":281,"view_count":149,"category_name":29,"create_tm":282},687200,"All New Features - iOS 26 - Sep 26 2025","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001252898/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=bB29pWmczWJRGWl%2FuFaGqrviKgU%3D","all-new-features-ios-26-sep-26-2025",1794082113,{"doc_id":284,"doc_title":285,"file_type":88,"home_preview_img_url":286,"slug":287,"view_count":33,"category_name":29,"create_tm":288},687537,"PyCharm - About the Tutorial - Getting Started","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262099/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=Pt9Uxzi2iSiDe0op0XqeJ0B0LUw%3D","pycharm-about-the-tutorial-getting-started",1794084025,{"doc_id":290,"doc_title":291,"file_type":88,"home_preview_img_url":292,"slug":293,"view_count":33,"category_name":29,"create_tm":294},724636,"NTU PASS Apple iOS Installation and User Guide - Updated as of 11 Feb 2025","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028707350/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=veDmyKxjwIMgc6LIulaxva7EsQI%3D","ntu-pass-apple-ios-installation-and-user-guide-updated-as-of-11-feb-2025",1795189361,{"doc_id":296,"doc_title":297,"file_type":88,"home_preview_img_url":298,"slug":299,"view_count":159,"category_name":29,"create_tm":300},430765,"READY, STEADY, CODE! - Coding with Hopscotch - What is Hopscotch?","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229923152540/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=UN6%2BPK1EQPzyiSV5%2Btaiw5w5qQc%3D","ready-steady-code-coding-with-hopscotch-what-is-hopscotch",1790653653,{"doc_id":302,"doc_title":303,"file_type":88,"home_preview_img_url":304,"slug":305,"view_count":179,"category_name":29,"create_tm":306},489207,"Making your first iPhone app","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927206827/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=R6ShxnUO%2F2%2Fme%2BSTba9iHuJfk%2B0%3D","making-your-first-iphone-app",1790821260]