Can Python be used for client side web development?

PythonClient Side

Python Problem Overview


If yes are there any frameworks/Tutorials/tips/etc recommended?

N00b at Python but I have tons of PHP experience and wanted to expand my skill set.

I know Python is great at server side execution, just wanted to know about client side as well.

Python Solutions


Solution 1 - Python

Have you seen Skulpt?

> Skulpt is an entirely in-browser implementation of Python. > > No preprocessing, plugins or server-side support required, just write Python and reload.

Solution 2 - Python

You can use pyjamas to convert Python code to JS code that runs in the browser (note that pyjamas also offers much more). So YES, you can use Python for client side web development.

Pyjamas is basically a port of the Google Web Toolkit, which allows you to write client side code in Java.

Solution 3 - Python

Python isn't really used for client side, because no major web browsers have Python built in.

However, Javascript has become more and more Python-like as it has evolved. You might want to study Python and Javascript together.

Take a look at https://developer.mozilla.org/en/New_in_JavaScript_1.7">https://developer.mozilla.org/en/New_in_JavaScript_1.7</a> and notice the Python-like nature of the new features. "array comprehensions" are just like Python list comprehensions; iterators and generators are straight out of Python; "destructuring assignments" are a standard Python idiom.

Javascript is kind of like Python with curly braces. It uses a very different inheritance model, but libraries are available that implement a more Python-like class system on top of the built-in system in Javascript.

Solution 4 - Python

Silverlight can run IronPython, so you can make Silverlight applications. Which is client-side.

Solution 5 - Python

Noone has mentioned it yet, but http://en.wikipedia.org/wiki/Grail_(web_browser)">grail</a> is/was pretty cool

> Grail was a free extensible multi-platform web browser written in the Python programming language. The project was started in August 1995, with its first public release in November of that year. [1] The .3 beta contained over 27,000 lines of Python.[1] Its last release was of version 0.6 in 1999, with latest version under development.

Solution 6 - Python

On Windows, any language that registers for the Windows Scripting Host can run in IE. At least the ActiveState version of Python could do that; I seem to recall that has been superseded by a more official version these days.

But that solution requires the user to install a python interpreter and run some script or .reg file to put the correct "magic" into the registry for the hooks to work.

Solution 7 - Python

Python is available for the client: skulpt

If its client side your interested may be worth checking out

http://jqueryui.com/

Solution 8 - Python

No. Browsers don't run Python.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPhill PaffordView Question on Stackoverflow
Solution 1 - PythoneasementView Answer on Stackoverflow
Solution 2 - PythonnikowView Answer on Stackoverflow
Solution 3 - PythonstevehaView Answer on Stackoverflow
Solution 4 - PythonLennart RegebroView Answer on Stackoverflow
Solution 5 - PythonJohn La RooyView Answer on Stackoverflow
Solution 6 - PythonTor IverView Answer on Stackoverflow
Solution 7 - PythonAndrewView Answer on Stackoverflow
Solution 8 - PythonByron WhitlockView Answer on Stackoverflow