Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

python-csp provides python with communicating sequential processes style parallelism

License

NotificationsYou must be signed in to change notification settings

futurecore/python-csp

Repository files navigation

Copyright (C) Sarah Mount, 2009 under the GNU GPL v2. See the file LICENSE formore details.

Installation

python-csp can be installed using PIP (PIP Installs Python):

$ sudo pip install python-csp

or from a source distribution using setup.py:

$ sudo python setup.py install

Introduction

python-csp adds C.A.R. (Tony) Hoare's Communicating Sequential Processes toPython. A brief example:

>>>@process...defwriter(channel,n):...foriinxrange(n):...channel.write(i)...channel.poison()...return...>>>@process...defreader(channel):...whileTrue:...printchannel.read()...>>>chan=Channel()>>>Par(reader(chan),writer(chan,5)).start()01234>>>

Documentation.

There are several sources of documentation for python-csp:

  • If you are running the python-csp shell, type "info csp" to list available in-shell help.

  • A user guide exists in thetutorial/ directory of the source.

  • examples/ contains some larger example programs.

Publications.

S. Mount, M. Hammoudeh, S. Wilson, R. Newman (2009) CSP as a Domain-SpecificLanguage Embedded in Python and Jython. In Proceedings of Communicating ProcessArchitectures 2009. Eindoven, Netherlands. 1st -- 4th November 2009. PublishedIOS Press.

About

python-csp provides python with communicating sequential processes style parallelism

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp