473,573 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

standalone python web server

Hi all,

I want to setup simple python web server and I want it to just unzip
and run, without any installation steps (have no right to do it).

I've tried to write by myself, however, I find I am getting into more
details like processing image file, different file type(like FLV) ..
etc. Any recommendation or tools suggested for me?

Thanks,
Eric
Dec 27 '07 #1
9 2441
On Dec 27, 7:41*am, eric <yung2...@gmail .comwrote:
Hi all,

I want to setup simple python web server and I want it to just unzip
and run, without any installation steps (have no right to do it).

I've tried to write by myself, however, I find I am getting into more
details like processing image file, different file type(like FLV) ..
etc. Any recommendation or tools suggested for me?

Thanks,
Eric
Django[1], has an internal webserver, you might wanna take a look into
it, as to how it's done. Other than that, Twisted[2], makes it pretty
easy to write one.

[1] http://www.djangoproject.com
[2] http://twistedmatrix.com
Dec 27 '07 #2
eric napisa³(a):
I want to setup simple python web server and I want it to just unzip
and run, without any installation steps (have no right to do it).
Look at SimpleHTTPServe r in standard library.
I've tried to write by myself, however, I find I am getting into more
details like processing image file, different file type(like FLV) ..
etc. Any recommendation or tools suggested for me?
You'd have to write it on your own anyway if you do not want to use
ready-made server software like lighttpd or nginx.

--
Jarek Zgoda
Skype: jzgoda | GTalk: zg***@jabber.as ter.pl | voice: +48228430101

"We read Knuth so you don't have to." (Tim Peters)
Dec 27 '07 #3
eric wrote:
I want to setup simple python web server and I want it to just
unzip and run, without any installation steps (have no right to do
it).
Which OS? You might run into authorisation problems if you want it
to listen on port 80 TCP.

Regards,
Björn

--
BOFH excuse #303:

fractal radiation jamming the backbone

Dec 27 '07 #4
On Dec 27, 4:52 pm, Panos Laganakos <panos.lagana.. .@gmail.comwrot e:
On Dec 27, 7:41 am, eric <yung2...@gmail .comwrote:
Hi all,
I want to setup simple python web server and I want it to just unzip
and run, without any installation steps (have no right to do it).
I've tried to write by myself, however, I find I am getting into more
details like processing image file, different file type(like FLV) ..
etc. Any recommendation or tools suggested for me?
Thanks,
Eric

Django[1], has an internal webserver, you might wanna take a look into
it, as to how it's done. Other than that, Twisted[2], makes it pretty
easy to write one.

[1]http://www.djangoproje ct.com
[2]http://twistedmatrix.c om
thanks.
Actually, I've considered to use django, however it required to run
command (which I don't have right to do it)
python setup.py install

Btw, is it possible to use without running setup.py ?
Dec 27 '07 #5
On Dec 27, 6:22 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n.. .@spamgourmet.c omwrote:
eric wrote:
I want to setup simple python web server and I want it to just
unzip and run, without any installation steps (have no right to do
it).

Which OS? You might run into authorisation problems if you want it
to listen on port 80 TCP.

Regards,

Björn

--
BOFH excuse #303:

fractal radiation jamming the backbone
I'm not planned to use port 80, cause this simple web server is
designed to monitor my set of backend server.

in googling, I find a simple python web server "SNAKELETS" , it can
just unzip to run. However, this project seems stale for sometime.

Anyone know anything about it?
Dec 27 '07 #6
eric schrieb:
On Dec 27, 4:52 pm, Panos Laganakos <panos.lagana.. .@gmail.comwrot e:
>On Dec 27, 7:41 am, eric <yung2...@gmail .comwrote:
>>Hi all,
I want to setup simple python web server and I want it to just unzip
and run, without any installation steps (have no right to do it).
I've tried to write by myself, however, I find I am getting into more
details like processing image file, different file type(like FLV) ..
etc. Any recommendation or tools suggested for me?
Thanks,
Eric
Django[1], has an internal webserver, you might wanna take a look into
it, as to how it's done. Other than that, Twisted[2], makes it pretty
easy to write one.

[1]http://www.djangoproje ct.com
[2]http://twistedmatrix.c om

thanks.
Actually, I've considered to use django, however it required to run
command (which I don't have right to do it)
python setup.py install

Btw, is it possible to use without running setup.py ?
For such cases you can use workingenv/virtualenv to create running
python environments in directories of your choice. Then you can use the
above commandline.

Diez
Dec 27 '07 #7
Actually, I've considered to use django, however it required to run
command (which I don't have right to do it)
python setup.py install

Btw, is it possible to use without running setup.py ?
Yes, it's quite possible...Djan go is pure Python, so you just have to
have its directory in your runtime path. I've got several machines that
have never used "setup.py install" to get Django...I just use a SVN
checkout, but an untar/gzip would do just as well.

-tkc

Dec 27 '07 #8
On 27/12/2007, eric <yu******@gmail .comwrote:
Hi all,

I want to setup simple python web server and I want it to just unzip
and run, without any installation steps (have no right to do it).

I've tried to write by myself, however, I find I am getting into more
details like processing image file, different file type(like FLV) ..
etc. Any recommendation or tools suggested for me?
If you do not want to use/extend SimpleHTTPServe r from the standard
library and want to have something more like Django (i.e. a Web
Framework) give Gluon http://mdp.cti.depaul.edu/ a try. It does not
require installation. For Windows just extract the .zip archive and
launch runme.exe. Everything is included, even Python. Same for Mac.
For Linux the source tarball requires Python 2.4 or newer.

No installation, no configuration, everything can be done from within
the browser. Watch the screencast at the Gluon homepage for a quick
overview.

Have fun,
Markus
Dec 27 '07 #9
eric <yu******@gmail .comwrites:
Hi all,

I want to setup simple python web server and I want it to just unzip
and run, without any installation steps (have no right to do it).

I've tried to write by myself, however, I find I am getting into more
details like processing image file, different file type(like FLV) ..
etc. Any recommendation or tools suggested for me?
CherryPy has a built in web server that can be installed without admin
rights (it is pure Python), and can easily be configured to serve up
static files.

Just something to think about.

Jason
Dec 27 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2608
by: Sandeep Gupta | last post by:
Hi, I've written a commercial application that uses Python scripts for some of the functionality. Installing the Python portion of the application requires me to first install Python, and then install the scripts. I'm looking for an easier way to install the Python portion. I've been referred to:...
8
2807
by: Gustavo Campanelli | last post by:
What are our options for a standalone (that is one that's not client/server) easily accesible from Python? I'm not going to ask for special features as this is only to see what is avaiable and used (most used most probably meaning well maintained project). Thanks in advance Gedece
9
2039
by: Dan Williams | last post by:
Hi people I'm getting a little annoyed with the way the print function always adds a space character between print statements unless there has been a new line. The manual mentions that "In some cases it may be functional to write an empty string to standard output for this reason." Am I the only the who thinks that this sucks? It's the...
4
1693
by: j_mckitrick | last post by:
Does it make sense to use doc strings rather than #-comments for a standalone Python app? If the classes aren't going to be re-used or imported, do they need them?
3
1933
by: Daniel Nogradi | last post by:
What would the simplest way to make an application that has both a web interface and runs from behind a web server but also can be used as a standalone app with a gui? More precisely is it possible to avoid creating an html/xml/whatever based web interface for the web version and separately creating a gui (wxpython for example) for the...
2
2311
by: James Stroud | last post by:
Hello All, I am trying to create a semi-standalone with the vendor python on OS X 10.4 (python 2.3.5). I tried to include some packages with both --packages from the command and the 'packages' option in setup.py. While the packages were nicely included in the application bundle in both cases (at Contents/Resources/lib/python2.3/), they were...
11
1624
by: beginner | last post by:
Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has to be able to easily receive requests from the web and post data to the web. I am thinking about implementing a standalone soap server, but I am not sure which library is good. Any suggestions?
1
2972
by: mcl | last post by:
I would like to have a USB pen drive, which can execute python scripts including CGI versions, which I can take to any Windows PC and run without having to install anything on the PC. My days of hacking are past so I am looking for something very simple. I would envisage a batch file which would ask if the USB web server needed to be...
4
2010
by: Gabriel Rossetti | last post by:
Hello everyone, I like to create a cross-platform standalone python application, like Mac OS *.app dirs. The idea is to distribute a zip file containing everything (the python interpreter and all) so that a user just unzips it and runs it. Has anyone ever done anything like that? I searched google but didn't find anything really, and...
0
7746
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7668
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7986
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8179
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7736
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5556
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5258
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2167
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.