Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tmcclintock/flock

Python library for Duck-like multiprocessing
https://github.com/tmcclintock/flock

Last synced: 14 days ago
JSON representation

Python library for Duck-like multiprocessing

Awesome Lists containing this project

README

        

# Flock Multiprocessing

[![buddy pipeline](https://104.154.213.146:17003/captalys/flock/pipelines/pipeline/1/badge.svg?token=66ad3d889d3b182491f0ca4715770f5e870e7e2f590d98ee60bcac0da9d9d623 "buddy pipeline")](https://104.154.213.146:17003/captalys/flock/pipelines/pipeline/1)

Python library for Duck-like multiprocessing

Flock is intended to help you to easily apply multiprocessing in your development code without thinking too much.

The system is capable of easily setup a multiprocessing environment to handle instance methods, class methods, lambdas and regular functions to be applied to any iterable. See the documentation [Getting Started!](http://flock.readthedocs.io/en/master/starting.html)

When the function to be multiprocessed makes any interaction with **databases** we run into trouble because connections are not allowed to be passed through processes inside messages. In order to handle this situation, we developed the **DatabaseAsync** class, [check it out](http://flock.readthedocs.io/en/master/starting.html#database-dependent-functions)

# Installation

Already available as in pypi

``` python
pip install flockmp
```

# Contributing

Please, fork the repository and make sure to run all tests before submitting any contribution.

In order to execute all tests for this project, run the command below:

``` python
python -m unittest discover test
```