Skip to main content
Help us improve Python packaging – donate today!

Package for using processes mimicking the `threading` module

Project Description

Package for using processes which mimics the threading module, and allows the sharing of objects between processes.

The processing.Process class follows the API of threading.Thread. For example

from processing import Process, Queue

def f(q):
    q.put('hello world')

if __name__ == '__main__':
    q = Queue()
    p = Process(target=f, args=[q])
    p.start()
    print q.get()
    p.join()

Synchronization primitives like locks, semaphores and conditions are available, for example

>>> from processing import Condition
>>> c = Condition()
>>> print c
<Condition(<RLock(None, 0)>), 0>
>>> c.acquire()
True
>>> print c
<Condition(<RLock(MainProcess, 1)>), 0>

One can also use a manager to create shared objects either in shared memory or in a server process, for example

>>> from processing import Manager
>>> manager = Manager()
>>> l = manager.list(range(10))
>>> l.reverse()
>>> print l
[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
>>> print repr(l)
<Proxy[list] object at 0x00E1B3B0>

After installation you can run the test scripts by doing either

python -m processing.test

on Python 2.5 or

python -c "from processing.test import main; main()"

on Python 2.4. This will run various test scripts using both processes and threads.

See README.txt and doc/index.html in the package directory for more information.

Release history Release notifications

History Node

0.52

History Node

0.51

History Node

0.50

History Node

0.40

History Node

0.39

History Node

0.38

History Node

0.37

This version
History Node

0.36

History Node

0.35

History Node

0.34

History Node

0.33

History Node

0.32

History Node

0.31

History Node

0.30

History Node

0.21

History Node

0.20

History Node

0.11

History Node

0.10

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
processing-0.36.win32-py2.4.exe (169.0 kB) Copy SHA256 hash SHA256 Windows Installer 2.4 Oct 21, 2007
processing-0.36.win32-py2.5.exe (172.0 kB) Copy SHA256 hash SHA256 Windows Installer 2.5 Oct 21, 2007
processing-0.36.zip (150.3 kB) Copy SHA256 hash SHA256 Source None Oct 21, 2007

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page