Debian Codegraph @

doc/index.rst

raw
1 .. image:: _static/pythonring.png
2 :align: right
3
4
5 .. warning::
6
7 execnet currently is in maintenance-only mode, mostly because it is still the backend
8 of the pytest-xdist plugin. Do not use in new projects.
9
10 Python_ is a mature dynamic language whose interpreters can interact with
11 all major computing platforms today.
12
13 **execnet** provides a `share-nothing model`_ with `channel-send/receive`_
14 communication for distributing execution across many Python interpreters
15 across version, platform and network barriers. It has
16 a minimal and fast API targeting the following uses:
17
18 * Distribute tasks to (many) local or remote CPUs
19 * Write and deploy hybrid multi-process applications
20 * Write scripts to administer multiple environments
21
22 .. _`channel-send/receive`: http://en.wikipedia.org/wiki/Channel_(programming)
23 .. _`share-nothing model`: http://en.wikipedia.org/wiki/Shared_nothing_architecture
24
25
26 .. _Python: http://www.python.org
27
28 Features
29 ------------------
30
31 * Automatic bootstrapping: no manual remote installation.
32
33 * Safe and simple serialization of Python builtin
34 types for sending/receiving structured data messages.
35 (New in 1.1) execnet offers a new :ref:`dumps/loads <dumps/loads>`
36 API which allows cross-interpreter compatible serialization
37 of Python builtin types.
38
39 * Flexible communication: synchronous send/receive as well as
40 callback/queue mechanisms supported
41
42 * Easy creation, handling and termination of multiple processes
43
44 * Well tested interactions between CPython 2.5-2.7, CPython-3.3, Jython 2.5.1
45 and PyPy interpreters.
46
47 * Fully interoperable between Windows and Unix-ish systems.
48
49 * Many tested :doc:`examples`
50
51 Known uses
52 -------------------
53
54 * `pytest`_ uses it for its `distributed testing`_ mechanism.
55
56 * `quora`_ uses it for `connecting CPython and PyPy`_.
57
58 * Jacob Perkins uses it for his `Distributed NTLK with execnet`_
59 project to launch computation processes through ssh. He also
60 compares `disco and execnet`_ in a subsequent post.
61
62 * Ronny Pfannschmidt uses it for his `anyvc`_ VCS-abstraction project
63 to bridge the Python2/Python3 version gap.
64
65 * Sysadmins and developers are using it for ad-hoc custom scripting
66
67 .. _`quora`: http://quora.com
68 .. _`connecting CPython and PyPy`: http://www.quora.com/Quora-Infrastructure/Did-Quoras-switch-to-PyPy-result-in-increased-memory-consumption
69
70 .. _`pytest`: https://docs.pytest.org
71 .. _`distributed testing`: https://pypi.python.org/pypi/pytest-xdist
72 .. _`Distributed NTLK with execnet`: http://streamhacker.com/2009/11/29/distributed-nltk-execnet/
73 .. _`disco and execnet`: http://streamhacker.com/2009/12/14/execnet-disco-distributed-nltk/
74 .. _`anyvc`: http://bitbucket.org/RonnyPfannschmidt/anyvc/
75
76 Project status
77 --------------------------
78
79 The project is currently in **maintenance-only mode**, with PRs fixing bugs being gracefully accepted.
80
81 Currently there are no plans to improve the project further, being maintained mostly because it is
82 used as backend of the popular `pytest-xdist <https://github.com/pytest-dev/pytest-xdist>`__ plugin.
83
84 ``execnet`` was conceived originally by `Holger Krekel`_ and is licensed under the MIT license
85 since version 1.2.
86
87 .. _`basic API`: basics.html
88 .. _`Holger Krekel`: http://twitter.com/hpk42
89
90 .. toctree::
91 :hidden:
92
93 support
94 implnotes
95 install