Skip navigation.

Pyphany: Epiphany Python Bindings

Epiphany Web Browser
Epiphany Web Browser

Yesterday marks the first Pyphany release. Pyphany is a set of Python bindings for Epiphany and a Python extension loader for Epiphany. You can use Pyphany to write Python extensions for the Epiphany web browser. I have written a quick guide to the first Python Epiphany extension: the Python Console.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

You do realize that you have

You do realize that you have just blown the doors open for epiphany extension writing, yes? Very well done. I'm playing around with this this weekend.

Thanks!

Nice

This sounds really nice. If only my internet connection at home was working I would certainly give it a spin. Being a huge Python-fan this really rocks my boat. The Ubuntu-guys must also endorse this release.

Python vs Javascript

I smell competition. Python can certainly take over Javascript. Mozilla boys! take note.

--
Sridhar Ratna

Re: Python vs Javascript

Hmm, I don't see that competition since they are apples an oranges. If I understand pyphany correct, it will give you the ability to write extensions in python for epiphany (instead of C as before). It doesn't allow web pages to run python code.

Even if it *did* allow python code to be executed from a web page, it wouldn't be used by web developers since epi's market share is so small it wouldn't be worth it.

And I don't think current firefox extension writer will jump ship on ff just because they can write extensions in python for epiphany. Not that many at least :-)

In any case, I think this is a nice addition for epiphany extension developers! Great work!

Re: Python vs Javascript

>It doesn't allow web pages to run python code.

Nor should it do.
Java was specifically designed so that one may execute untrusted Java code on his/her machine, without risking being compromised.
Python by contrast is designed to let you do practically everything. A malicious Python script embedded in a web page could easily execute arbitrary code or read any data on your machine.

Java was specifically designe

Java was specifically designed

That's nice. What this has to do with in-page web browser scripting is unclear, since JavaScript is the language of choice there. The two are entirely different languages.

And, of course, if you were to run JavaScript in an interpreter with the ability to perform dangerous actions, it would work just fine thank you.

A malicious Python script embedded in a web page

...would find that the browser runs Python in a restricted security context that blocks most malicious activities.

At least, that was the case in Python 2.2; rexec and Bastion were withdrawn from 2.3 because there were engineering and security hurdles that nobody particularly wanted to tackle. But it's still unfair to claim that the Python developers somehow managed to miss the idea of security contexts and untrustworthy code arriving from random sources. They only look like they just fell off the turnip truck.

Mozilla extensions and JavaScript by Anonymous George
HAHA by Anonymous George

Huh?

At least eating words doesn't add to your caloric intake; take solace in that.

Uh... what does your post have to do with anything?