开发者

Python web client programming library

开发者 https://www.devze.com 2023-02-19 20:05 出处:网络
I am working on a client-server simulation software. And I want the client to be implemented on the web, and also require that the client can do computations like matrix multiplication, random number

I am working on a client-server simulation software. And I want the client to be implemented on the web, and also require that the client can do computations like matrix multiplication, random number generation etc., which framework can I use? And also I hope that the client side and server side communicate using simple socket, beca开发者_如何学Pythonuse the server code is implemented with c++. Any suggestions are really appreciated!!

Thanks

Simon


I'm assuming "on the web" means "HTTP", i.e. via an AJAX-like interface.

The relevant Python built-in libraries are httplib (HTTP client) and random (random numbers; may be better in NumPy). For matrix multiplication, you'll want the third-party library NumPy. You may want to look into SciPy as well.


Matrix manipulation is in NumPy. Everything else listed in in the standard library. You may want to look into something like Twisted in order to mediate the network access though.

0

精彩评论

暂无评论...
验证码 换一张
取 消