Python implementing simple web data storage

后端 未结 1 837
离开以前
离开以前 2020-12-06 14:30

I am trying to develop a python PyQt program that allow user to enter data about personal particulars and review them at a later time for processing purpose.

1条回答
  •  情歌与酒
    2020-12-06 15:32

    There are different ways for a client to communicate with a server.

    You can use

    1. XMLRPC to create an object with methods that are called on the server side

    2. You can use HTTP and REST for the server with the library requests or urllib for the client

    3. For the latter you can use flask, bottle, django or other frameworks to create a website that serves the content (tutorials)

    4. You can use Pyro to remotely access the objects on the server. Useful if the clients should also communicate with eachother.

    5. You can create your own protocol. You will learn a lot and value the other options.

    6. The list is not complete

    I suggest that you have a look at XMLRPC if that fits. For number 2 I can say that many APIs use such a HTTP-interface (twitter, github, facebok, google). It is easy to use also for other people.

    Security is important. I am not an expert. If you send username and password in plain text then use SSL to encrypt the connection. If you can not get ssl to work with python you can use stunnel.

    0 讨论(0)
提交回复
热议问题