blob: 1efa6066d62229781da704e3cb943ce6df5fd196 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
---
title: PyXPCOM
slug: PyXPCOM
tags:
- XPCOM
- 'XPCOM:Liaisons_de_langage'
translation_of: Mozilla/Tech/XPCOM/Language_bindings/PyXPCOM
---
<p> </p>
<div>
<p><span class="seoSummary"><strong>PyXPCOM</strong> permet la communication entre <a class="external" href="http://www.python.org/">Python</a> et <a href="/fr/XPCOM" title="fr/XPCOM">XPCOM</a> de telle façon qu'une application Python puisse accéder à des objets XPCOM, et que XPCOM puisse accéder à des classes Python qui implémentent une interface XPCOM. PyXPCOM est utilisé dans <a href="http://komodoide.com/" title="http://komodoide.com/"> ActiveState Komodo</a>, par exemple.</span></p>
Avec PyXPCOM, une application Python peut dialoguer avec XPCOM ou <a href="/fr/Gecko" title="fr/Gecko">Gecko</a> embarqué. PyXPCOM est similaire à <a href="/fr/JavaXPCOM" title="fr/JavaXPCOM">JavaXPCOM</a> (passerelle Java-XPCOM) ou <a href="/fr/XPConnect" title="fr/XPConnect">XPConnect</a> (passerelle JavaScript-XPCOM).
<p> </p>
Classes et interfaces Python : Mozilla définit plusieurs interfaces externes disponibles pour les paquetageurs et développeurs de composants. PyXPCOM offre des accès à ces interfaces comme aux interfaces Python. PyXPCOM contient également plusieurs classes qui fournissent des accès aux fonctions d'initialisation et de destructions XPCOM et Gecko depuis Python, comme pour les fonctions helper XPCOM.</div>
<table class="topicpage-table">
<tbody>
<tr>
<td>
<h4 id="Documentation" name="Documentation"><a href="/Special:Tags?tag=PyXPCOM&language=fr" title="Special:Tags?tag=PyXPCOM&language=fr">Documentation</a></h4>
<dl>
<dt><a href="https://developer.mozilla.org/fr/docs/Building_PyXPCOM" title="fr/Compilation_de_PyXPCOM">Compilation de PyXPCOM</a></dt>
<dd><small>Les instructions pour compiler PyXPCOM.</small></dd>
</dl>
<dl>
<dt><a href="https://developer.mozilla.org/fr/docs/Creating_a_Python_XPCOM_component" title="fr/Création_d'un_composant_XPCOM_Python">Création d'un composant XPCOM Python</a></dt>
<dd><small>Un exemple expliquant comment créer un composant <a href="/fr/XPCOM" title="fr/XPCOM">XPCOM</a> avec Python. </small></dd>
</dl>
<dl>
<dt><a class="external" href="http://www-128.ibm.com/developerworks/webservices/library/co-pyxp1/">Découvrir PyXPCOM</a> (en)</dt>
<dd><small>PyXPCOM est une technologie reliant XPCOM et Python. Cet article vous donne un aperçu de PyXPCOM.</small></dd>
</dl>
<p><span class="comment">NOTE: The links to Part II and III of this series are broken and I cannot find them on the IBM site. Please update this page if/when the links can be found.</span></p>
<p><span class="alllinks"><a href="/Special:Tags?tag=PyXPCOM&language=fr" title="Special:Tags?tag=PyXPCOM&language=fr">Tous les articles...</a></span></p>
<h4 id="Historique" name="Historique">Historique</h4>
<p>PyXPCOM a été à l'origine développé par <a class="external" href="http://www.activestate.com/">ActiveState Tool Corporation</a>, et <a class="external" href="http://aspn.activestate.com/ASPN/Downloads/Komodo/index/PyXPCOM/">a été extrait</a> de leur <a class="external" href="http://www.activestate.com/Products/Komodo">projet Komodo</a>. Leur version courante est maintenant <a class="external" href="http://public.activestate.com/pyxpcom/">intégrée</a> avec le système Mozilla.</p>
</td>
<td>
<h4 id="Communaut.C3.A9" name="Communaut.C3.A9">Communauté</h4>
<ul>
<li>forums Mozilla XPCOM...</li>
</ul>
<p></p><ul>
<li><a href="https://lists.mozilla.org/listinfo/dev-tech-xpcom"> Liste de diffusion</a></li>
<li><a href="http://groups.google.com/group/mozilla.dev.tech.xpcom"> newsgroup</a></li>
<li><a href="http://groups.google.com/group/mozilla.dev.tech.xpcom/feeds"> Flux de syndication</a></li>
</ul><p></p>
<ul>
<li><a class="external" href="http://listserv.activestate.com/mailman/listinfo/pyxpcom">Liste de diffusion d'ActiveState sur les liaisons XPCOM Python</a></li>
<li><a class="link-irc" href="irc://irc.mozilla.org:6667/pyxpcom">#pyxpcom sur irc.mozilla.org</a></li>
</ul>
<h4 id="Code_source" name="Code_source">Code source</h4>
<ul>
<li>Le code PyXPCOM est disponible sur le tonc dans le répertoire <code><a href="https://dxr.mozilla.org/mozilla-central/source/extensions/python/xpcom/" rel="custom">extensions/python/xpcom/</a></code>.</li>
<li>Notez que PyXPCOM n'est pas compilé par défaut. Consultez <a href="/fr/Compilation_de_PyXPCOM" title="fr/Compilation_de_PyXPCOM">Compilation de PyXPCOM</a> pour compiler PyXPCOM.</li>
</ul>
<h4 id="Sujets_li.C3.A9s" name="Sujets_li.C3.A9s">Sujets liés</h4>
<dl>
<dd><a href="/fr/XPCOM" title="fr/XPCOM">XPCOM</a></dd>
<dd><a href="/fr/PyDOM" title="fr/PyDOM">PyDOM</a> : remplacer JavaScript par Python</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<p><span class="comment">Categories</span></p>
<p><span class="comment">Interwiki Language Links</span></p>
|