Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python as a web scripting language?

Tags:

python

php

I've recently been developing with Python, and I absolutely love it. It's a huge step up from PHP as a quick scripting language (imagine, no crazy function names!), and I would love to be able to use it as a web development language.

I've heard about Django, but I want something a bit more simple.

I run Lighttpd, and I've already gotten a Python script to work, but I can't pass arguments to it via the URL, like http://localhost/index.py?foo=bar. Is there a function/library that allows this?

I could be going at this all wrong, so please tell me if I am. But I absolutely hate PHP, now that I've seen Python. ;)

like image 693
Blender Avatar asked Jan 20 '11 21:01

Blender


People also ask

Is Python a web scripting language?

Yes, Python is scripting, general-purpose, high-level, and interpreted programming language. It also provides the object-oriented programming approach. The filename extension of Python can be various types such as .

How Python is used as scripting language?

Python is an advanced scripting language that is being used successfully to glue together large software components. It spans multiple platforms, middleware products, and application domains. Python is an object-oriented language with high-level data structures, dynamic typing, and dynamic binding.

Why is Python a good scripting language?

The python language is one of the most accessible programming languages available because it has simplified syntax and not complicated, which gives more emphasis on natural language. Due to its ease of learning and usage, python codes can be easily written and executed much faster than other programming languages.

Is Python good for scripting?

Python is considered a scripting language because of a historical blur between scripting languages and general purpose programming languages. In fact, Python is not a scripting language, but a general purpose programming language that also works nicely as a scripting language.


1 Answers

If you want a dead simple but powerful framework, try Flask.

(Then learn some SQLAlchemy, and things will suddenly become even easier.)

like image 107
9000 Avatar answered Sep 21 '22 16:09

9000