|
1 |
| -Metadata-Version: 1.0 |
2 |
| -Name: processing |
3 |
| -Version: 0.52 |
4 |
| -Summary: Package for using processes which mimics the threading module |
5 |
| -Home-page: http://developer.berlios.de/projects/pyprocessing |
6 |
| -Author: R Oudkerk |
7 |
| -Author-email: roudkerk at users.berlios.de |
8 |
| -License: BSD Licence |
9 |
| -Description: `processing` is a package for the Python language which supports the |
10 |
| - spawning of processes using the API of the standard library's |
11 |
| - `threading` module. It runs on both Unix and Windows. |
12 |
| - |
13 |
| - Features: |
14 |
| - |
15 |
| - * Objects can be transferred between processes using pipes or |
16 |
| - multi-producer/multi-consumer queues. |
17 |
| - |
18 |
| - * Objects can be shared between processes using a server process or |
19 |
| - (for simple data) shared memory. |
20 |
| - |
21 |
| - * Equivalents of all the synchronization primitives in `threading` |
22 |
| - are available. |
23 |
| - |
24 |
| - * A `Pool` class makes it easy to submit tasks to a pool of worker |
25 |
| - processes. |
26 |
| - |
27 |
| - |
28 |
| - Links |
29 |
| - ===== |
30 |
| - |
31 |
| - * `Documentation <http://pyprocessing.berlios.de/doc/index.html>`_ |
32 |
| - * `Installation instructions <http://pyprocessing.berlios.de/doc/INSTALL.html>`_ |
33 |
| - * `Changelog <http://pyprocessing.berlios.de/doc/CHANGES.html>`_ |
34 |
| - * `Acknowledgments <http://pyprocessing.berlios.de/doc/THANKS.html>`_ |
35 |
| - * `BSD Licence <http://pyprocessing.berlios.de/doc/COPYING.html>`_ |
36 |
| - |
37 |
| - The project is hosted at |
38 |
| - |
39 |
| - * http://developer.berlios.de/projects/pyprocessing |
40 |
| - |
41 |
| - The package can be downloaded from |
42 |
| - |
43 |
| - * http://developer.berlios.de/project/filelist.php?group_id=9001 or |
44 |
| - * http://pypi.python.org/pypi/processing |
45 |
| - |
46 |
| - |
47 |
| - Examples |
48 |
| - ======== |
49 |
| - |
50 |
| - The `processing.Process` class follows the API of `threading.Thread`. |
51 |
| - For example :: |
52 |
| - |
53 |
| - from processing import Process, Queue |
54 |
| - |
55 |
| - def f(q): |
56 |
| - q.put('hello world') |
57 |
| - |
58 |
| - if __name__ == '__main__': |
59 |
| - q = Queue() |
60 |
| - p = Process(target=f, args=[q]) |
61 |
| - p.start() |
62 |
| - print q.get() |
63 |
| - p.join() |
64 |
| - |
65 |
| - Synchronization primitives like locks, semaphores and conditions are |
66 |
| - available, for example :: |
67 |
| - |
68 |
| - >>> from processing import Condition |
69 |
| - >>> c = Condition() |
70 |
| - >>> print c |
71 |
| - <Condition(<RLock(None, 0)>), 0> |
72 |
| - >>> c.acquire() |
73 |
| - True |
74 |
| - >>> print c |
75 |
| - <Condition(<RLock(MainProcess, 1)>), 0> |
76 |
| - |
77 |
| - One can also use a manager to create shared objects either in shared |
78 |
| - memory or in a server process, for example :: |
79 |
| - |
80 |
| - >>> from processing import Manager |
81 |
| - >>> manager = Manager() |
82 |
| - >>> l = manager.list(range(10)) |
83 |
| - >>> l.reverse() |
84 |
| - >>> print l |
85 |
| - [9, 8, 7, 6, 5, 4, 3, 2, 1, 0] |
86 |
| - >>> print repr(l) |
87 |
| - <Proxy[list] object at 0x00E1B3B0> |
88 |
| - |
89 |
| - Tasks can be offloaded to a pool of worker processes in various ways, |
90 |
| - for example :: |
91 |
| - |
92 |
| - >>> from processing import Pool |
93 |
| - >>> def f(x): return x*x |
94 |
| - ... |
95 |
| - >>> p = Pool(4) |
96 |
| - >>> result = p.mapAsync(f, range(10)) |
97 |
| - >>> print result.get(timeout=1) |
98 |
| - [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] |
99 |
| - |
100 |
| - |
101 |
| - |
102 |
| -Platform: Unix and Windows |
103 |
| -Classifier: Development Status :: 4 - Beta |
104 |
| -Classifier: Intended Audience :: Developers |
105 |
| -Classifier: Programming Language :: Python |
| 1 | +Metadata-Version: 1.1 |
| 2 | +Name: multiprocess |
| 3 | +Version: 0.70.1 |
| 4 | +Summary: Package for using processes which mimics the threading module |
| 5 | +Home-page: http://developer.berlios.de/projects/pyprocessing |
| 6 | +Author: Mike McKerns |
| 7 | + |
| 8 | +License: BSD |
| 9 | +Download-URL: http://dev.danse.us/packages/ |
| 10 | +Description: |
| 11 | + `Multiprocessing` is a package for the Python language which supports the |
| 12 | + spawning of processes using the API of the standard library's |
| 13 | + `threading` module. `multiprocessing` has been distributed in the standard |
| 14 | + library since python 2.6. |
| 15 | + |
| 16 | + Features: |
| 17 | + |
| 18 | + * Objects can be transferred between processes using pipes or |
| 19 | + multi-producer/multi-consumer queues. |
| 20 | + |
| 21 | + * Objects can be shared between processes using a server process or |
| 22 | + (for simple data) shared memory. |
| 23 | + |
| 24 | + * Equivalents of all the synchronization primitives in `threading` |
| 25 | + are available. |
| 26 | + |
| 27 | + * A `Pool` class makes it easy to submit tasks to a pool of worker |
| 28 | + processes. |
| 29 | + |
| 30 | + |
| 31 | +Platform: UNKNOWN |
| 32 | +Classifier: Development Status :: 5 - Production/Stable |
| 33 | +Classifier: Intended Audience :: Developers |
| 34 | +Classifier: Programming Language :: Python |
| 35 | +Classifier: Programming Language :: C |
| 36 | +Classifier: Programming Language :: Python :: 2 |
| 37 | +Classifier: Programming Language :: Python :: 2.6 |
| 38 | +Classifier: Programming Language :: Python :: 2.7 |
| 39 | +Classifier: Programming Language :: Python :: 3 |
| 40 | +Classifier: Programming Language :: Python :: 3.3 |
| 41 | +Classifier: Programming Language :: Python :: 3.4 |
0 commit comments