473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2429
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 SimpleHTTPServer 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.aster.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.comwrote:
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
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.comwrote:
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.comwrote:
>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

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...Django 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 SimpleHTTPServer 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
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...
8
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...
9
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...
4
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
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...
2
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'...
11
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...
1
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...

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.