4

I want to use a python library https://github.com/yann2192/pyelliptic in iOS to encrypt/decrypt.

I've gone through the following posts:

Is that possible to run a python built program on iOS as a static lib?

Embedding Python in an iPhone app

But found no luck.

Is there any way to do so?

6
  • What errors are you getting? Commented May 27, 2015 at 8:41
  • I am not getting a way how to use the library in objc code Commented May 27, 2015 at 8:42
  • What does "found no luck" mean? What did you try? What happened? If you successfully embedded Python in your ObjC app, then the way to use it from ObjC code is the same way you use it from C code, which is described pretty nicely in the official documentation. Commented May 27, 2015 at 9:01
  • But meanwhile, why would you want to do this? pyelliptic is just a wrapper around OpenSSL, which is already available on iOS and which you can talk to directly as a C library. Commented May 27, 2015 at 9:02
  • @abarnert I couldn't find any wrapper for openSSL in ios for ecc curves.Can you please let me know this? Commented May 27, 2015 at 9:06

1 Answer 1

-1

I use pythonista on my iPad and works perfectly with libraries compatible with python 2.7. If the library you wan to use depends only on the standard library (also numpy and matplotlib are supported) then it's easy (dependency to other libraries can be solved too, but takes more work). Simply, you need to copy/paste the library source in a plan script into pythonista and then you can import it from your script also running in pythonista. I am sure there are other software that do the same but I have experience only with that one.

Sign up to request clarification or add additional context in comments.

2 Comments

Look also here, is a simple module to install pypi packages on pythonista omz-software.com/pythonista/forums-old/discussion/237/…
Is there a library that includes sty for iOS devices such as iPhone 5s? I have the app Python Box, and it works perfectly fine, but it does not include the sty module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.