omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    app sharing functionality

    Pythonista
    4
    9
    4921
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • reticulated
      reticulated last edited by

      Hey all,

      I am going to ask a silly question- but so don't know, so i'm asking!

      Can apps on the iOS echo system share functionality?

      ie - Lately I wanted to improve my skills, so i am attempting to use ctypes to implement the full libz.dylib, compression.dylib, and maybe a few others.

      Why? "meh", or "so others can use a progress bar extracting zip files". Yes, I know it's useless.

      Okay - then I got thinking- all this exists for iOS, but since I can't build custom modules for Pythonista- I guess I am wondering if I can develop native apps that can provide functionality to the Pythonista community?

      FYI: I may still do the whole ctypes thing for fun..

      Any thoughts would be grand!

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        You can build modules for pythonista users. Distribute via gist or GitHub.

        1 Reply Last reply Reply Quote 0
        • mikael
          mikael last edited by

          Has anyone published anything Pythonista-specific on PyPi (pip)?

          reticulated 1 Reply Last reply Reply Quote 1
          • reticulated
            reticulated last edited by

            I was thinking more of a C++ module.

            From what I know you can build frameworks using Swift or Objective C, but i'm not sure how all that would work with Pythonista- ie downloading the binaries and attempting to use them via ctypes in Pythonista.

            Make sense?

            1 Reply Last reply Reply Quote 0
            • reticulated
              reticulated last edited by

              Meant to add this:

              Ideally I would build a framework in Objective C, set the class to PUBLIC (if it lets me), build/sign using my credentials, then attempting to load it via Pythonista from the local filesystem.

              I am most certainly sure it won't work, but I'd like to try :)

              ie - we can load .dylib's from /use/lib, as well as Frameowrks, if it's a signed binary, downloaded and extracted into the Pythonista space- might it work?

              1 Reply Last reply Reply Quote 0
              • reticulated
                reticulated @mikael last edited by

                @mikael

                Yep - https://pypi.org/project/pythonista-api-client/

                Seeing as Pythonista has an embedded CPython interpreter, no reason why not, it will still likely work on CPython apps, except for internal requirements.

                mikael 1 Reply Last reply Reply Quote 0
                • mikael
                  mikael @reticulated last edited by

                  @reticulated, thanks.

                  A follow-up question: has anyone published something to PyPi from Pythonista?

                  reticulated victordomingos 2 Replies Last reply Reply Quote 1
                  • reticulated
                    reticulated @mikael last edited by

                    @mikael said:

                    @reticulated, thanks.

                    A follow-up question: has anyone published something to PyPi from Pythonista?

                    Im not sure - but it's definitely possible, it's just an API call.

                    Packaging the app should also work.

                    I don't have anything worth distributing else I'd do it for a POC.

                    1 Reply Last reply Reply Quote 1
                    • victordomingos
                      victordomingos @mikael last edited by

                      @mikael I tried to do it with setuptools twine from my iPhone, but never managed to make it work. I had to resort to a Mac.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post
                      Powered by NodeBB Forums | Contributors