Python on iOS Native Apps

栏目: IT技术 · 发布时间: 5年前

内容简介:PyBridge is a C implementation that allows to use Python code in native iOS applications. It allows to send String or JSON messages to the Python interpreter without the need for any web frameworks. Instead of using web applications, you can reuse your Pyt

PyBridge-iOS

PyBridge is a C implementation that allows to use Python code in native iOS applications. It allows to send String or JSON messages to the Python interpreter without the need for any web frameworks. Instead of using web applications, you can reuse your Python backend code and implement truly native iOS applications.

Shameless plug: I do contract work, check out my website at http://joaoventura.net/ or buy my apps!

Overview

This repository shows the source code of an empty Xcode Swift project with a Label. When the application starts, it starts the Python interpreter and calls a Python function that returns a greet message that is then set on the Label.

Python on iOS Native Apps

Running the project

Clone this project and open it on Xcode. All the libraries and python files are included.

Run the project and you should see a Hello Python 3.8 message in the screen. You can also check the Xcode output to see some debug things.

How it works?

I've documented all the process in the references document . It shows how to compile a Python 3 distribution, how to include the libraries, and how everything works.

It's mostly a document for myself, but you can use and learn from it!


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

C#本质论

C#本质论

米凯利斯 / 周靖 / 人民邮电出版社 / 2010-9 / 99.00元

《C#本质论(第3版)》是一部好评如潮的语言参考书,作者用一种非常合理的方式来组织《C#本质论(第3版)》的内容,由浅人深地介绍了C#语言的各个方面。全书共包括21章及6个附录,每章开头的“思维导图”指明了本章要讨论的主题,以及各个主题之间的层次关系。书中所包含的丰富的示例代码和精要的语言比较,都有助于读者理解C#语言。《C#本质论(第3版)》首先介绍了C#语言的基础知识,随后深人讲解了泛型、迭代......一起来看看 《C#本质论》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试