skip to navigation
skip to content

Not Logged In

spinoff 0.7.16

Framework for writing distributed, fault tolerant and scalable internet applications

Latest Version: 0.7.18


Spinoff is a framework for writing distributed, fault tolerant and scalable applications in Python. <a href=”” title=”Spinoff on”><img src=”” alt=”&lt;build status indicator on;”/></a>

Spinoff is based on the [Actor Model]( and borrows from [Akka]( (location transparency, actor references, etc) and [Erlang]( (processes, nodename@hosthost style node references (not implemented yet)).

Spinoff has been built using [Gevent]( and [ZeroMQ]( for remoting.

Spinoff is currently under continuous development but is nevertheless usable for writing real applications—it can also be fault tolerant towards some of the bugs in its own code.


> _”anyway, spinoff is really super nice to play with all this stuff > because it’s cheap to write code in it > it really shines at making quick prototypes”_

…so let’s hope one day there will be a testimonial here saying “it really shines at making production software”.


The following is only a very small “peek preview” style example of what the framework can do. More examples and full documentation will follow soon.

See [spinoff/examples/](spinoff/examples/

The example can be run using the following command:

`bash $ spin spinoff.examples.example1.ExampleProcess `


`bash $ spin spinoff.examples.example1.ExampleProcess `

Distributed Example (with Remoting)

See [spinoff/examples/](spinoff/examples/

The example can be run using the following commands:

`bash $ spin -pid -nid localhost:9700 spinoff.examples.example2.ExampleActor -name other $ spin -pid -nid localhost:9701 spinoff.examples.example2.ExampleProcess -using "other_actor='localhost:9700/other'" `

Same Distributed Code without Remoting

The following example demonstrates how it’s possible to run the same code, unmodified, in a single thread with no network/remoting involved whatsoever. It’s an illustration of how actors (components) written using Spinoff are xagnostic of how they are wired to work with other actors and can thus be viewed as abstract components containing only pure domain logic and no low level transportation and topology details.

See [spinoff/examples/](spinoff/examples/

The example can be run using the following commands:

`bash $ spin spinoff.examples.example2_local.LocalApp ` One might be tempted to ask, then, what is the difference between remoting frameworks such as CORBA and Spinoff. The difference is that actors define clear boundaries where remoting could ever be used, as opposed to splitting a flow of tightly coupled logic into two nodes on the network, which, still providing valid output, can degrade in performance significantly. This is not to say that actors with location transparency suffer none of such issues but the extent to which the problem exists is, arguably, an order of magnitude lower.

File Type Py Version Uploaded on Size
spinoff-0.7.16.tar.gz (md5) Source 2013-08-07 69KB
  • Downloads (All Versions):
  • 130 downloads in the last day
  • 700 downloads in the last week
  • 2895 downloads in the last month