job-pool


Namejob-pool JSON
Version 0.2.6 PyPI version JSON
download
home_page
SummaryEnhanced Job Pool for Python Multiprocessing
upload_time2024-01-03 13:39:05
maintainer
docs_urlNone
authorMatthew The
requires_python>=3.8,<4.0
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # job-pool

[![PyPI version](https://img.shields.io/pypi/v/job_pool.svg?logo=pypi&logoColor=FFE873)](https://pypi.org/project/job_pool/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/job_pool.svg?logo=python&logoColor=FFE873)](https://pypi.org/project/job_pool/)
[![PyPI downloads](https://img.shields.io/pypi/dm/job_pool.svg)](https://pypistats.org/packages/job_pool)
[![Build](https://github.com/matthewthe/job-pool/workflows/Publish%20release/badge.svg)](https://github.com/matthewthe/job-pool/actions?workflow=release)
[![Tests](https://github.com/matthewthe/job-pool/workflows/Unit%20tests/badge.svg)](https://github.com/matthewthe/job-pool/actions?workflow=tests)
[![Codecov](https://codecov.io/gh/matthewthe/job-pool/branch/main/graph/badge.svg)](https://codecov.io/gh/matthewthe/job-pool)


Enhanced Job Pool for Python Multiprocessing

## Usage

```python
from job_pool import JobPool

def add_one(i):
    return i + 1

def multiprocessed_add_one():
    pool = JobPool(4)
    for i in range(20):
        pool.applyAsync(add_one, [i])
    results = pool.checkPool(printProgressEvery=5)
    assert results == list(range(1,21))
```

## Installation

job-pool is available on PyPI and can be installed with `pip`:

```shell
pip install job-pool
```

Alternatively, you can install job-pool after cloning from this repository:

```shell
git clone https://github.com/matthewthe/job-pool.git
pip install .
```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "job-pool",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Matthew The",
    "author_email": "matthew.the@tum.de",
    "download_url": "",
    "platform": null,
    "description": "# job-pool\n\n[![PyPI version](https://img.shields.io/pypi/v/job_pool.svg?logo=pypi&logoColor=FFE873)](https://pypi.org/project/job_pool/)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/job_pool.svg?logo=python&logoColor=FFE873)](https://pypi.org/project/job_pool/)\n[![PyPI downloads](https://img.shields.io/pypi/dm/job_pool.svg)](https://pypistats.org/packages/job_pool)\n[![Build](https://github.com/matthewthe/job-pool/workflows/Publish%20release/badge.svg)](https://github.com/matthewthe/job-pool/actions?workflow=release)\n[![Tests](https://github.com/matthewthe/job-pool/workflows/Unit%20tests/badge.svg)](https://github.com/matthewthe/job-pool/actions?workflow=tests)\n[![Codecov](https://codecov.io/gh/matthewthe/job-pool/branch/main/graph/badge.svg)](https://codecov.io/gh/matthewthe/job-pool)\n\n\nEnhanced Job Pool for Python Multiprocessing\n\n## Usage\n\n```python\nfrom job_pool import JobPool\n\ndef add_one(i):\n    return i + 1\n\ndef multiprocessed_add_one():\n    pool = JobPool(4)\n    for i in range(20):\n        pool.applyAsync(add_one, [i])\n    results = pool.checkPool(printProgressEvery=5)\n    assert results == list(range(1,21))\n```\n\n## Installation\n\njob-pool is available on PyPI and can be installed with `pip`:\n\n```shell\npip install job-pool\n```\n\nAlternatively, you can install job-pool after cloning from this repository:\n\n```shell\ngit clone https://github.com/matthewthe/job-pool.git\npip install .\n```\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Enhanced Job Pool for Python Multiprocessing",
    "version": "0.2.6",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "08b7302f76de97ff6024ce006efc3ccb2f9031b72061d77e0a76daf788a636a1",
                "md5": "70a59798b019afc5ce01f425cdb428ba",
                "sha256": "75bdc1965455d746ee3bf5710e265b15b06b96f2c39a43dbca505a93a64d57a7"
            },
            "downloads": -1,
            "filename": "job_pool-0.2.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "70a59798b019afc5ce01f425cdb428ba",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 9064,
            "upload_time": "2024-01-03T13:39:05",
            "upload_time_iso_8601": "2024-01-03T13:39:05.824577Z",
            "url": "https://files.pythonhosted.org/packages/08/b7/302f76de97ff6024ce006efc3ccb2f9031b72061d77e0a76daf788a636a1/job_pool-0.2.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-03 13:39:05",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "job-pool"
}
        
Elapsed time: 0.19230s