Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Hosting Python files without framework - how far can you go?

I'm trying to get some python files working on my server/host but can't seem to get much done without using a framework

so, how complex can you get without using Flask or Django?

at the moment, anything other than basic text or sums doesn't seem to work on the web
(Dec 28, 2018 06:15 PM)Red-Leonard Wrote:  I'm trying to get some python files working on my server/host but can't seem to get much done without using a framework

so, how complex can you get without using Flask or Django?

at the moment, anything other than basic text or sums doesn't seem to work on the web

Python comes with a very simple http server, does this work for you?
https://docs.python.org/2/library/simplehttpserver.html

It is not meant for production but I am not sure what you really want to do anyways
you can handle http requests with a socket

check this:
https://tools.ietf.org/html/rfc2616 Hypertext Transfer Protocol -- HTTP/1.1
You can use the Http request ,
the Get Data can get args ,
from this args you can run it on you server side. /VPS/..
ok, thanks, but how to run it server side?

I mean, I have a windows server and it was a major hassle just getting 'hello world' up and running - is it worth changing server, persevering with windows, or possibly using node.js (which has easy install with server) instead?
(Dec 31, 2018 03:45 AM)Red-Leonard Wrote:  ok, thanks, but how to run it server side?

I mean, I have a windows server and it was a major hassle just getting 'hello world' up and running - is it worth changing server, persevering with windows, or possibly using node.js (which has easy install with server) instead?

Node.js is really easy to setup and you should probably use it if you aren't going to use flask
(Dec 31, 2018 03:45 AM)Red-Leonard Wrote:  ok, thanks, but how to run it server side?

I mean, I have a windows server and it was a major hassle just getting 'hello world' up and running - is it worth changing server, persevering with windows, or possibly using node.js (which has easy install with server) instead?
ignore this Any reason you're opting to not use PHP? Sure, Node works, but if you're using it just because some hipster developer said it's the future, I would make the case you haven't weighed your options.

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.
thanks for the replies,

think I'll stick with Flask for now

will prob make a thread in the 'database' section soon, as I'm a little stuck on making changes to that right now....


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Release] by redoApr 3, 2026 01:38 AM 0 95 Apr 3, 2026 01:38 AM
Last Post: redo
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 631 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by amethystMay 28, 2020 09:33 AM 10 210 May 28, 2020 09:33 AM
Last Post: synchronizing