spinach


Namespinach JSON
Version 0.0.24 PyPI version JSON
download
home_pagehttps://github.com/NicolasLM/spinach
SummaryModern Redis task queue for Python 3
upload_time2024-05-10 01:28:19
maintainerNone
docs_urlNone
authorNicolas Le Manchet
requires_pythonNone
licenseBSD 2-clause
keywords task queue jobs redis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            Spinach
=======

.. image:: https://github.com/NicolasLM/spinach/workflows/Run%20tests/badge.svg?branch=master
    :target: https://github.com/NicolasLM/spinach/actions
.. image:: https://coveralls.io/repos/github/NicolasLM/spinach/badge.svg?branch=master
    :target: https://coveralls.io/github/NicolasLM/spinach?branch=master
.. image:: https://readthedocs.org/projects/spinach/badge/?version=latest
    :target: http://spinach.readthedocs.io/en/latest/?badge=latest
.. image:: https://img.shields.io/badge/IRC-irc.libera.chat-1e72ff.svg?style=flat
    :target: https://kiwiirc.com/nextclient/irc.libera.chat:+6697/#spinach

Redis task queue for Python 3 heavily inspired by Celery and RQ.

Distinctive features:

- Threaded and asyncio workers
- At-least-once or at-most-once delivery per task
- Periodic tasks without an additional process
- Concurrency limits on queued jobs
- Scheduling of tasks in batch
- Integrations with `Flask, Django, Logging, Sentry and Datadog
  <https://spinach.readthedocs.io/en/stable/user/integrations.html>`_
- Embeddable workers for easier testing
- See `design choices
  <https://spinach.readthedocs.io/en/stable/user/design.html>`_ for more
  details

Quickstart
----------

Install Spinach with pip::

   pip install spinach

Create a task and schedule a job to be executed now:

.. code:: python

    from spinach import Engine, MemoryBroker

    spin = Engine(MemoryBroker())


    @spin.task(name='compute')
    def compute(a, b):
        print('Computed {} + {} = {}'.format(a, b, a + b))


    # Schedule a job to be executed ASAP
    spin.schedule(compute, 5, 3)

    print('Starting workers, ^C to quit')
    spin.start_workers()

Documentation
-------------

The documentation is at `https://spinach.readthedocs.io
<https://spinach.readthedocs.io/en/stable/index.html>`_.

IRC channel for online discussions **#spinach** on `irc.libera.chat
<https://kiwiirc.com/nextclient/irc.libera.chat:+6697/#spinach>`_.

License
-------

BSD 2-clause

Copyright (c) 2017-2021, Nicolas Le Manchet
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this 
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, 
   this list of conditions and the following disclaimer in the documentation 
   and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/NicolasLM/spinach",
    "name": "spinach",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "task queue jobs redis",
    "author": "Nicolas Le Manchet",
    "author_email": "nicolas@lemanchet.fr",
    "download_url": "https://files.pythonhosted.org/packages/1c/02/1a266ea955dda92dce3b8586222d876698ae251d3428a9bd96ed454a24f0/spinach-0.0.24.tar.gz",
    "platform": null,
    "description": "Spinach\n=======\n\n.. image:: https://github.com/NicolasLM/spinach/workflows/Run%20tests/badge.svg?branch=master\n    :target: https://github.com/NicolasLM/spinach/actions\n.. image:: https://coveralls.io/repos/github/NicolasLM/spinach/badge.svg?branch=master\n    :target: https://coveralls.io/github/NicolasLM/spinach?branch=master\n.. image:: https://readthedocs.org/projects/spinach/badge/?version=latest\n    :target: http://spinach.readthedocs.io/en/latest/?badge=latest\n.. image:: https://img.shields.io/badge/IRC-irc.libera.chat-1e72ff.svg?style=flat\n    :target: https://kiwiirc.com/nextclient/irc.libera.chat:+6697/#spinach\n\nRedis task queue for Python 3 heavily inspired by Celery and RQ.\n\nDistinctive features:\n\n- Threaded and asyncio workers\n- At-least-once or at-most-once delivery per task\n- Periodic tasks without an additional process\n- Concurrency limits on queued jobs\n- Scheduling of tasks in batch\n- Integrations with `Flask, Django, Logging, Sentry and Datadog\n  <https://spinach.readthedocs.io/en/stable/user/integrations.html>`_\n- Embeddable workers for easier testing\n- See `design choices\n  <https://spinach.readthedocs.io/en/stable/user/design.html>`_ for more\n  details\n\nQuickstart\n----------\n\nInstall Spinach with pip::\n\n   pip install spinach\n\nCreate a task and schedule a job to be executed now:\n\n.. code:: python\n\n    from spinach import Engine, MemoryBroker\n\n    spin = Engine(MemoryBroker())\n\n\n    @spin.task(name='compute')\n    def compute(a, b):\n        print('Computed {} + {} = {}'.format(a, b, a + b))\n\n\n    # Schedule a job to be executed ASAP\n    spin.schedule(compute, 5, 3)\n\n    print('Starting workers, ^C to quit')\n    spin.start_workers()\n\nDocumentation\n-------------\n\nThe documentation is at `https://spinach.readthedocs.io\n<https://spinach.readthedocs.io/en/stable/index.html>`_.\n\nIRC channel for online discussions **#spinach** on `irc.libera.chat\n<https://kiwiirc.com/nextclient/irc.libera.chat:+6697/#spinach>`_.\n\nLicense\n-------\n\nBSD 2-clause\n\nCopyright (c) 2017-2021, Nicolas Le Manchet\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, \nare permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this \n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, \n   this list of conditions and the following disclaimer in the documentation \n   and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE \nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR \nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES \n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; \nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON \nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS \nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
    "bugtrack_url": null,
    "license": "BSD 2-clause",
    "summary": "Modern Redis task queue for Python 3",
    "version": "0.0.24",
    "project_urls": {
        "Homepage": "https://github.com/NicolasLM/spinach"
    },
    "split_keywords": [
        "task",
        "queue",
        "jobs",
        "redis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c32a1fb18e34b6ce5698361f00147f3eb08113686123fa8e036c87f921ede38",
                "md5": "07858e09e77cc7a6dc6eb02ce7b817f2",
                "sha256": "d8c824c7b3f7f4da3c9c12de9bbe5a763008386c2a1f77ae80ef377232d0a43e"
            },
            "downloads": -1,
            "filename": "spinach-0.0.24-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07858e09e77cc7a6dc6eb02ce7b817f2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 43848,
            "upload_time": "2024-05-10T01:28:17",
            "upload_time_iso_8601": "2024-05-10T01:28:17.410483Z",
            "url": "https://files.pythonhosted.org/packages/2c/32/a1fb18e34b6ce5698361f00147f3eb08113686123fa8e036c87f921ede38/spinach-0.0.24-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c021a266ea955dda92dce3b8586222d876698ae251d3428a9bd96ed454a24f0",
                "md5": "2804ad4ed8935aaeffececb796ecde17",
                "sha256": "b80e00ca58c2b0c702184e50d433e78d2dd7d3945fe37dbc051c5c90448b980f"
            },
            "downloads": -1,
            "filename": "spinach-0.0.24.tar.gz",
            "has_sig": false,
            "md5_digest": "2804ad4ed8935aaeffececb796ecde17",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 42054,
            "upload_time": "2024-05-10T01:28:19",
            "upload_time_iso_8601": "2024-05-10T01:28:19.194565Z",
            "url": "https://files.pythonhosted.org/packages/1c/02/1a266ea955dda92dce3b8586222d876698ae251d3428a9bd96ed454a24f0/spinach-0.0.24.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-10 01:28:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "NicolasLM",
    "github_project": "spinach",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "spinach"
}
        
Elapsed time: 0.27185s