How do I communicate between python and a mac application?

后端 未结 5 1780
慢半拍i
慢半拍i 2021-01-20 20:34

This might be a vague question, but I failed to rephrase it properly. So here\'s an explanation.

I developed an app that was originally developed as a Mac applicatio

5条回答
  •  花落未央
    2021-01-20 21:39

    There are many ways to synchronize/communicate the data between two applications, but let me explain the simplest :

    RESTful Serialization:
    Serialize the objects into XML/JSON or any other custom format both app frameworks can parse. eg. http://docs.python.org/library/json.html
    If both apps are on the same server/machine I'm expecting all you have to do is to encode/store the data into the same file(s) and read/parse the data from respective file(s) in other application.

    Otherwise you may need to create a web service for accessing the data file.

    Let me know in comments if you have further queries.

提交回复
热议问题