spinach


Namespinach JSON
Version 0.0.20 PyPI version JSON
download
home_pagehttps://github.com/NicolasLM/spinach
SummaryModern Redis task queue for Python 3
upload_time2024-02-28 02:32:57
maintainer
docs_urlNone
authorNicolas Le Manchet
requires_python
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": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "task queue jobs redis",
    "author": "Nicolas Le Manchet",
    "author_email": "nicolas@lemanchet.fr",
    "download_url": "https://files.pythonhosted.org/packages/ab/2a/f35375b94bf80cd375e5d1d59f4e1977da10cb16d5309632528b31283f71/spinach-0.0.20.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.20",
    "project_urls": {
        "Homepage": "https://github.com/NicolasLM/spinach"
    },
    "split_keywords": [
        "task",
        "queue",
        "jobs",
        "redis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e0ed9a58fc397b5bfe9781504f672b00bcc1c990c9711c3f35bc8840fa1193a",
                "md5": "02118159101c54b0bd8543c509d55b6c",
                "sha256": "b5c61a4d11ed220d3e42656f2ba0b80e33c071bae1da9170ecb28c460a8bf7a7"
            },
            "downloads": -1,
            "filename": "spinach-0.0.20-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "02118159101c54b0bd8543c509d55b6c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 43718,
            "upload_time": "2024-02-28T02:32:55",
            "upload_time_iso_8601": "2024-02-28T02:32:55.282600Z",
            "url": "https://files.pythonhosted.org/packages/0e/0e/d9a58fc397b5bfe9781504f672b00bcc1c990c9711c3f35bc8840fa1193a/spinach-0.0.20-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab2af35375b94bf80cd375e5d1d59f4e1977da10cb16d5309632528b31283f71",
                "md5": "71afb0a8b817691174792d1b25ed17b7",
                "sha256": "5f097d6aace118e34c7440fc0502724921eac21f7040a284a1d25c7756274025"
            },
            "downloads": -1,
            "filename": "spinach-0.0.20.tar.gz",
            "has_sig": false,
            "md5_digest": "71afb0a8b817691174792d1b25ed17b7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 41764,
            "upload_time": "2024-02-28T02:32:57",
            "upload_time_iso_8601": "2024-02-28T02:32:57.446432Z",
            "url": "https://files.pythonhosted.org/packages/ab/2a/f35375b94bf80cd375e5d1d59f4e1977da10cb16d5309632528b31283f71/spinach-0.0.20.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-28 02:32:57",
    "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.20079s