I currently have Python 2.7 code which was developed without any additional modules or dependencies, just some core Python 2.7 modules (sqlite3, itertools, operator). I now want to wrap the functions into a library that I can import into iOS apps. I need to be able to call a function from the iOS app and get the output value of that function. The input and output arguments will be JSON strings and I would need to incorporate an SQLite database file into the library too.
I see that the Kivy-iOS supports applications with a UI but is it possible to wrap the generated code into an iOS library? Preferably an .a file or something else that I can import to an iOS app project.