Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.



Raisin: To perform cluster work easily!

Project Philosophy

The main aim of projectraisin is to share physical resources of your laptop with a community.
In counterpart, you can benefit from the community resources.
There are 2 sides in this project:

1. Resources usage

The raisin API wants to be as close as possible to the ‘threading’ and ‘multiprocessing’ python APIs.
The advantage in using raisin rather than ‘threading’ or ‘multiprocessing’ is that the computing power is greatly increased (depending on the number of connected resources).
Though raisin is based on ‘multiprocessing’ module - that splits tasks among the resources of a single computer - it also shares the load over the different machines in the network. Everything is automatically and intelligently orchestrated.

raisin wants to be as simple as possible. That’s why the code analysis and the resources management are automated. It also uses a bunch of classes and functions default parameters that are suitable for most usages.

However, you can tune raisin behavior as you want since all these parameters are fully customizable.
raisin is a multi-OS module 100% written in python in order to keep installation reliable and simple.

In a future version, raisin will be able to perform automatic parallelization, a little like ‘pydron’.

2. Resources sharing

To be able to use community resources, you must give in return!
That’s why, when raisin is installed as a python package, you have to install the ‘application’ part.
The minimum to do is to start a grape server that will be listening to execute the tasks requested by itself or by other users on the network. To do this, run the following command: python -m raisin server

Installation

To install the module, you have to go through pypi: pip install raisin.
Once the module is installed, execute python -m raisin install to create the configuration file.
For the uninstallation, it is enough to execute python -m raisin uninstall && pip uninstall raisin.

Basic example

>>> import raisin
>>> f = lambda x: x**2 # a costly function
>>> list(raisin.imap_unordered(f, range(3), context=True))
[Result(0), Result(1), Result(4)]
>>>

Metadata

Release files for raisin 3.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for raisin 3.0.5
File Size Uploaded
raisin-3.0.5.tar.gz 59.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for raisin 3.0.5
File Interpreter ABI Platform
raisin-3.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 133.2 kB

Release files / raisin-3.0.5.tar.gz

Download URL raisin-3.0.5.tar.gz
Size 59.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1bd274604c446c2d06fc382a7c464dd55248d9881451439372037f48ee93a005
BLAKE2b-256 checksum
How to use checksums
f11513ff70b76dabad156bbf8d8f7f35a319981d00396adfe31959f58a994d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/26.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.49.0 importlib-metadata/4.0.1 keyring/23.5.0 rfc3986/1.4.0 colorama/0.4.3 CPython/3.8.10

Release files / raisin-3.0.5-py3-none-any.whl

Download URL raisin-3.0.5-py3-none-any.whl
Size 73.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
542136027b869296b8b8ca2d96923894bce0bcf64fb41d86d9b6e45235dc9003
BLAKE2b-256 checksum
How to use checksums
4bcc8143b35ae32369dbb822a48bebb3abf9c06f5ed4d17f4f00111f3a5f53cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/26.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.49.0 importlib-metadata/4.0.1 keyring/23.5.0 rfc3986/1.4.0 colorama/0.4.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

3.0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page