-
-
Notifications
You must be signed in to change notification settings - Fork 412
Python3.6 trio asynchronous version of server ... #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dddomodossola
commented
Sep 1, 2019
Great work @kostyll . Is this server complete in all its functions? I've seen a todo about post requests.
Which kind of advantages it introduces?
kostyll
commented
Sep 1, 2019
Great work @kostyll . Is this server complete in all its functions? I've seen a todo about post requests.
Which kind of advantages it introduces?
hello @dddomodossola, The work is in progress(simple code is running) - I've used it in my closed admin projects, but if you are interested I would like to continue make changes and sending pool-requests ...
The main adventage is that it's asynchronous(trio library - like asyncio) - so no heavy threads needed - all connections are handled in one thread - if user needs heavy-cpu work - he also can create separated thread. There is a fast growing ecosystem around asynchronous possibilities of python - many libs for work with DBMS and web in general - e.g. if you need to make a lot of requests(a lot of IO-based work - http e.g/) - it's a useful in many cases ... At this moment I've started to work at my hobby project(I've post it soon on github) - ui-backend is REMI - your cool lib in asynchronous style )
dddomodossola
commented
Sep 5, 2019
@kostyll I received some requests for an async server in the past, so it would be useful for different users. So thank you for continuing developing it, I will make a separate branch making it available to others.
kostyll
commented
Sep 6, 2019
@dddomodossola thank you! ) https://github.com/flexiblecloud/cloud_ui - here is my repo with simple library of building gui-like apps using your library. Later I'll add more examples of usage...
wangyubow
commented
Nov 20, 2019
@kostyll @dddomodossola regarding async server, would you please look into FastAPI as a candidate option?
Besides its async server, advantages of modern functions, fast to code, security, OPI standards, might be worth to consider.
I am quite new to web development , but I feel that FastAPI may bring many advantages to remi project. I would like to believe FastAPI is going to be a modern competitor to Flask, fast async perf, fast to code:
- Async, fast performance
- Fast to code, 2-4 times fast ?
- OpenAPI 3.0 spec.
- complete Security functions included
- auto openAPI document
- data type check.
- ...
https://github.com/tiangolo/fastapi
Opinions
"[...] I'm using FastAPI a ton these days. [...] I'm actually planning to use it for all of my team's ML services at Microsoft. Some of them are getting integrated into the core Windows product and some Office products."
Kabir Khan - Microsoft (ref)
As an engineer with little front end knowledge, I hate html, js, PyQt, etc... . I really like your ideas to use python replace html. The idea is brilliant!
No description provided.