On Sun, 21 Oct 2018 10:44:21 -0500
"Edward K. Ream" <edream...@gmail.com> wrote:

> On Sun, Oct 21, 2018 at 10:37 AM Cormac Williams
> <cormac.willi...@gmail.com> wrote:
> 
> > <delurk>
> 
> Hi.  Welcome to the discussion.
> 
> > Sockets and protocols are great, except if you want to hang it on
> > the internet, in which case you are far better using tried and
> > tested methodologies and frameworks.
> 
> I didn't mean to imply that sockets are all there are to the internet.
> Presumably a mature server like Apache will be required.
> 
> > Actually, I'd say use tried and tested for even local service. A
> > specialist protocol is only really required if you are doing
> > something radically different from what has come before, which I
> > get the feeling we are not talking about here.
> 
> We can start by assuming ajax
> <https://www.w3schools.com/xml/ajax_xmlhttprequest_create.asp>, using
> http.

I wonder if Cormac was thinking of frameworks like Django, but perhaps
more appropriate (lighter) for Leo, Flask?  Django and Flask have
sub-components that handle translation between URL and Python code, and
I think there're libraries which *just* do that.  Flask's extra
features may or may not be useful.  Also being aware of WSGI is probably
good, but perhaps still a level lower than you need to be.

Also mod_http.py plugin allows execution of arbitrary Python code in a
running Leo, so there's that to look at too.

I've seen setup using Apache at the very front of a web-app hosting
ecosystem, with nginx (another web server) behind that handling
requests to actual backend services in Python (maybe by WSGI, not
necessarily).  At some level on all these systems though Python ends up
handling the request, so for development at least, you usually see
Python serving the web part.

Cheers -Terry


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to