473,770 Members | 7,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Plugin for Web Browser

I've an idea and I've made some search but I found nothing really
interesting.
There is somebody who have (or can help me to) try to developp a python
plugin for web browser just like java ??

I search an how-to for creating a plugin for Firefox and only find how
create extension...

I've find some informations about Python Active Scripting but this is
not what I want.

Seb

Dec 6 '06 #1
7 2341
MC
Bonjour !

Pour IE, il y a des exemples de plugins, fournis avec PyWin32.
Pour FF (comme pour Opera), je ne sais pas.

--
@-salutations

Michel Claveau
Dec 6 '06 #2
des exemples de plugins pour IE oui mais qui ne sont pas embarqué dans
une page Web
je souhaiterai créer qqchose qui ressemble vraiment à Java VM ou
Flash
J'ai trouvé un début de réponse pour Firefox en télécharger le
GeckoSDK
mais je n'arrive pas à compiler les exemples pour le moment...

merci
MC a écrit :
Bonjour !

Pour IE, il y a des exemples de plugins, fournis avec PyWin32.
Pour FF (comme pour Opera), je ne sais pas.

--
@-salutations

Michel Claveau
Dec 6 '06 #3
Re !

Je ne sais pas quel est ton objectif, mais il est possible de couplet
Python & Javascript, de manière à générer/modifier/piloter le contenu
HTML de pages Web depuis Python. Je fais ça tous les jours (avec IE)

Pour cela je passe par COM.

Malheureusement , à cause de la paranoïa sécuritaire ambiante, il y a de
plus en plus de contraintes et d'obtacles.

Ainsi, s'il n'y a pas (encore) trop de problèmes tant que l'on est en
local (avec les .HTA, par exemple), dès que l'on est distant (Intranet,
Extranet, Web), il y a maintenant des confirmations à tout bout de
champ, des avertissements peu utiles, mais devenus incontournables , des
boîte de dialogues intempestives, etc.

Donc, si c'est pour utiliser comme interface pour des applis sur le
disque (ou le réseau local), OK ; sinon, ça posera des problèmes.

C'en est à tel point que je me demande si l'utilisation de frontaux
HTML comme GUI est toujours intéressante.
Et le problème ne touche pas que Python. Par exemple, j'ai un client
qui utilise un logiciel de gestion de l'assurance qualité, utilisant
des navigateurs comme interface. Du coup, ils ont des patchs 2 fois par
mois, et les utilisateurs ont toujours plus choses à valider...

--
@-salutations

Michel Claveau
Dec 6 '06 #4

oui COM je connais et ça fonctionne bien mais ce n'est pas portable
d'un navigateur à l'autre et ce n'est pas ce que je cherche à faire.
Mon but serait d'avoir un plugin qui permettrait d'embarquer des
applets écrient en python dans les pages html à l'image de Java ou
Flash, etc
Pour le moment j'essaie de générer un plugin pour firefox avec le
Gecko SDK fourni par Mozilla (car bizarrement je ne trouve rien coté
IE...) mais ce n'est pas gagné vu mon niveau en C++... Je n'arrive pas
à compiler l'exemple.
As-tu des connaissances en C++ ? avec Visual C++ ?

Seb
Michel Claveau a écrit :
Re !

Je ne sais pas quel est ton objectif, mais il est possible de couplet
Python & Javascript, de manière à générer/modifier/piloter le contenu
HTML de pages Web depuis Python. Je fais ça tous les jours (avec IE)

Pour cela je passe par COM.

Malheureusement , à cause de la paranoïa sécuritaire ambiante, il y a de
plus en plus de contraintes et d'obtacles.

Ainsi, s'il n'y a pas (encore) trop de problèmes tant que l'on est en
local (avec les .HTA, par exemple), dès que l'on est distant (Intranet,
Extranet, Web), il y a maintenant des confirmations à tout bout de
champ, des avertissements peu utiles, mais devenus incontournables , des
boîte de dialogues intempestives, etc.

Donc, si c'est pour utiliser comme interface pour des applis sur le
disque (ou le réseau local), OK ; sinon, ça posera des problèmes.

C'en est à tel point que je me demande si l'utilisation de frontaux
HTML comme GUI est toujours intéressante.
Et le problème ne touche pas que Python. Par exemple, j'ai un client
qui utilise un logiciel de gestion de l'assurance qualité, utilisant
des navigateurs comme interface. Du coup, ils ont des patchs 2 fois par
mois, et les utilisateurs ont toujours plus choses à valider...

--
@-salutations

Michel Claveau
Dec 6 '06 #5
MC
Bonsoir !
As-tu des connaissances en C++ ? avec Visual C++ ?
Ben, non, je ne pratique pas ces machins.

Par contre, je pense qu'il existe une autre démarche, qui consiste à
générer, à la volée, en Python, des sortes d'applets java/javascript.

Avantages : rien à installer ; milti-navigateurs
Inconvénient : ça se programme côté serveur.
Voir : Pyjamas (http://pyjamas.pyworks.org/FR/overview/)

--
@-salutations

Michel Claveau
Dec 6 '06 #6

Par contre, je pense qu'il existe une autre démarche, qui consiste à
générer, à la volée, en Python, des sortes d'applets java/javascript.
Il est clair que mon projet est un peu plus complexe mais je l'espère
plus ambitieux aussi
Le but étant vraimment de faire des applets en Python et non Java via
Jython ou autre

Avantages : rien à installer ; milti-navigateurs
Inconvénient : ça se programme côté serveur.
Voir : Pyjamas (http://pyjamas.pyworks.org/FR/overview/)
oui d'ailleurs un utilisateur de Pyjamas m'a déjà contacté et il
serait intéressé par un plugin tel que je l'imagine.
Concernant les avantages je ne suis pas d'accord avec toi:
- "rien à installer" : oui par javascript mais non pour java il y a le
runtime à installer donc finalement avoir un runtime Python pourquoi
pas
- multi-navigateur : idem, rien n'interdit d'avoir un plugin
multi-plateforme et multi-navigateur, Java le fait bien lui alors
pourquoi pas Python

bref ça va certainement poser des tas de problèmes de sécurité et
je pense qu'un plugin 100% opérationnel ne verra pas le jour avant un
bon moment mais rien n'empèche de se lancer dans l'aventure !

Seb

Dec 7 '06 #7

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

Similar topics

13
5520
by: Marcel van den Dungen | last post by:
Does anybody know how to use Python as the scripting language for HTML applications? I tried the following, but I get a script error ('Object expected') on the body element. <html> <head> <title>Python controlled HTML application</title> <hta:application id="oApplication"> <script language="python"> def Onload():
0
1739
by: Hugh Macdonald | last post by:
I've got a slight problem... and I'm stuck as to where to go with it... I'm running on Redhat7.2, using Python 2.2.2 I've got a compiled module that I wrote almost a year ago - it works fine, and I've never had any problems with it... I also did an extension to a plugin (Shake) using Python, so the plugin loads a python module and calls various functions in there.... all in all, fine - I thought I had my head around the system, and...
47
3483
by: Kenneth McDonald | last post by:
Is there any emerging consensus on the "best" UI for toolkit. Tk never quite made it but from what I can see, both qt and wxWin are both doing fairly well in general. I'm already aware of the licensing issues surrounding qt (fwiw, I think their license fee for commercial use is eminently reasonable), so aside from that, I was wondering if there was any feedback readers could provide on the following: 1) Which plays best with Python?...
16
2926
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the form order to do that ? My point is for the client to be able to re-read the modified data.
49
3276
by: SamFeltus | last post by:
I am trying to figure out why so little web development in Python uses Flash as a display technology. It seems most Python applications choose HTML/CSS/JS as the display technology, yet Flash is a far more powerful and elegant display technology. On the other hand, HTML/JS seems clunky and antiquated. I am a gardener, and not a coder by trade, but Flash seems to integrate just fine with Python. Anyways, what are the technical reasons...
5
3286
by: Laszlo Nagy | last post by:
Hello, I was trying to get answers for these. SPE homepage was down. Then I found it on berlios (http://developer.berlios.de/forum/forum.php?forum_id=12695) but no one answered since 5 days. In fact nobody seems to write in anything to that forum, I presume it is dead. I have no other choice than ask it here. I apologize in advance, they may be silly questions. 1. How can I navigate between opened files? Usually I open 10 or more
7
1800
by: Anthony | last post by:
Hi, I'm a FoxPro programmer, but I want to learn python before it's too late. I do a lot of statistical programming, so I import SPSS into python. In my opinion, the best features of Visual FoxPro 9.0 were: a) Intellisense (tells you what classes/methods are available and what variables go into a function) b) Code Completion (guesses your code after four letters) c) Data-Orientation; multiple data sessions can be open, data can be...
37
9057
by: Michael Palmer | last post by:
As anyone knows, the state of Python GUI programming is a little fractured at this time, with many toolkits, wrappers and meta-wrappers dead and alive, with or without documentation. I've come across two projects that have the appeal of striving for simple, pythonic APIs: PyGUI and wax. The latter is a wrapper around wxPython. It is lacking documentation but actually quite usable and concise. The other, PyGUI, has an even nicer API and...
3
9056
by: Scott | last post by:
I have a requirement to control a firefox web browser from an external python program. The python program running under linux from a command shell needs to first find all open firefox web browser windows read the URL currently displayed in each web browser and if the URL matches a particular regular expression it needs to get/set form fields displayed in the web browser. Basically I need something like Windows COM and Internet Explorer...
0
9591
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10057
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10002
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3575
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.