This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Python implementation of the Actor Model inspired from tart.js.


The initial ideas for tartpy are copied from @dalnefre and @tristanls. At the beginning, the goal was to replicate tart.js in Python. Lately, it has diverged slightly, to experiment with the new Python asynchrony model introduced in version 3.4.

tartpy aims to be an actor library with the following features:

  • it implements the pure actor model (rather than the Erlang model),
  • it can be used in practical situations to express lock-free and concurrent algorithms,
  • it abstracts the network transport to allow arbitrary protocols,
  • it implements a capability based approach to isolate actors, using membranes (again, the ideas are due to @dalnefre and @tristanls). The semantics of membranes may differ between tartpy and tartjs.


Install with:

$ pip install git+

or clone this repository and install with python3 install:

$ git clone
$ cd tartpy
$ python3 install


Run tests with:

$ python3 test


Run example with:

python3 tartpy/

There is also an IPython notebook showing the basic properties of actors.

The project actor_model contains slides and IPython notebooks from a talk presented at TACC in April 17, 2014.

Erlang Challenge

Create a ring of M actors, sending N messages around the ring:

python3 tartpy/ M N


For M = 100000 and N = 10:

Starting 100000 actor ring
Construction time: 1.5192079544067383 seconds
Loop times:
  0.7743091583251953 seconds
  0.7793149948120117 seconds
  0.7702958583831787 seconds
  0.7602570056915283 seconds
  0.7704610824584961 seconds
  0.779731035232544 seconds
  0.7654228210449219 seconds
  0.7625432014465332 seconds
  0.7740719318389893 seconds
  0.7699680328369141 seconds
Average: 0.7706375122070312 seconds
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tartpy-0.2.1-py3-none-any.whl (14.5 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Apr 27, 2014
tartpy-0.2.1.tar.gz (11.2 kB) Copy SHA256 Checksum SHA256 Source Apr 27, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting