endi-celery


Nameendi-celery JSON
Version 6.7.8 PyPI version JSON
download
home_pagehttps://framagit.org/endi/endi_celery
Summaryendi_celery
upload_time2024-03-04 14:26:44
maintainer
docs_urlNone
authorCoopérer Pour Entreprendre
requires_python
licenseGPLv3
keywords web wsgi bfg pylons pyramid celery
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            enDI asynchronous tasks
============================

Since version 6, endi-celery only supports python 3.

Asynchronous tasks are executed through celery.
pyramid_celery is used to integrate celery with the Pyramid related stuff.
pyramid_beaker is used to cache responses.

tasks:

    Asynchronous tasks called from enDI

scheduler:

    Beat tasks, repeated along the time (like cron tasks)

Results
-------

No result backend is used, tasks interact directly with enDI's database to
return datas.

enDI celery provides all the models that should be used to store task
execution related stuff (see endi_celery.models).

Install
-------

System packages
................

autonmie_celery needs a redis server to run

On Debian

.. code-block:: console

    apt-get install redis-server


On Fedora

.. code-block:: console

    dnf install redis-server

Python stuff
.............

endi_celery should be run in the same environment as enDI :
https://framagit.org/endi/endi

You may first run

.. code-block:: console

    workon endi


.. code-block:: console

    git clone https://framagit.org/endi/endi_celery.git
    cd endi_celery
    python setup.py install
    cp development.ini.sample development.ini

Customize the development.ini file as needed


Start it
---------

Launch the following command to launch the worker daemon::

    celery worker -A pyramid_celery.celery_app  --ini development.ini

Launch the following command to launch the beat daemon::

    celery beat -A pyramid_celery.celery_app --ini development.ini


Customize accounting operation parser and producer for different general_ledger files
---------------------------------------------------------------------------------------

In the inifile of your celery service, configure service factories

Sage (default)
...............

.. code-block::

    endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.sage.parser_factory

.. code-block::

    endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.sage.producer_factory

Sage Generation Expert
.......................

.. code-block::

    endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.sage_generation_expert.parser_factory

.. code-block::

    endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.sage_generation_expert.producer_factory

Quadra
.......................

.. code-block::

    endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.quadra.parser_factory

.. code-block::

    endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.quadra.producer_factory

            

Raw data

            {
    "_id": null,
    "home_page": "https://framagit.org/endi/endi_celery",
    "name": "endi-celery",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "web wsgi bfg pylons pyramid celery",
    "author": "Coop\u00e9rer Pour Entreprendre",
    "author_email": "contact@endi.coop",
    "download_url": "https://files.pythonhosted.org/packages/1d/43/c8e5f4b8fefb7608ab028dc173d9d89a8dedc1f4972ec50ea1a59e414e0b/endi_celery-6.7.8.tar.gz",
    "platform": null,
    "description": "enDI asynchronous tasks\n============================\n\nSince version 6, endi-celery only supports python 3.\n\nAsynchronous tasks are executed through celery.\npyramid_celery is used to integrate celery with the Pyramid related stuff.\npyramid_beaker is used to cache responses.\n\ntasks:\n\n    Asynchronous tasks called from enDI\n\nscheduler:\n\n    Beat tasks, repeated along the time (like cron tasks)\n\nResults\n-------\n\nNo result backend is used, tasks interact directly with enDI's database to\nreturn datas.\n\nenDI celery provides all the models that should be used to store task\nexecution related stuff (see endi_celery.models).\n\nInstall\n-------\n\nSystem packages\n................\n\nautonmie_celery needs a redis server to run\n\nOn Debian\n\n.. code-block:: console\n\n    apt-get install redis-server\n\n\nOn Fedora\n\n.. code-block:: console\n\n    dnf install redis-server\n\nPython stuff\n.............\n\nendi_celery should be run in the same environment as enDI :\nhttps://framagit.org/endi/endi\n\nYou may first run\n\n.. code-block:: console\n\n    workon endi\n\n\n.. code-block:: console\n\n    git clone https://framagit.org/endi/endi_celery.git\n    cd endi_celery\n    python setup.py install\n    cp development.ini.sample development.ini\n\nCustomize the development.ini file as needed\n\n\nStart it\n---------\n\nLaunch the following command to launch the worker daemon::\n\n    celery worker -A pyramid_celery.celery_app  --ini development.ini\n\nLaunch the following command to launch the beat daemon::\n\n    celery beat -A pyramid_celery.celery_app --ini development.ini\n\n\nCustomize accounting operation parser and producer for different general_ledger files\n---------------------------------------------------------------------------------------\n\nIn the inifile of your celery service, configure service factories\n\nSage (default)\n...............\n\n.. code-block::\n\n    endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.sage.parser_factory\n\n.. code-block::\n\n    endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.sage.producer_factory\n\nSage Generation Expert\n.......................\n\n.. code-block::\n\n    endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.sage_generation_expert.parser_factory\n\n.. code-block::\n\n    endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.sage_generation_expert.producer_factory\n\nQuadra\n.......................\n\n.. code-block::\n\n    endi_celery.interfaces.IAccountingFileParser=endi_celery.parsers.quadra.parser_factory\n\n.. code-block::\n\n    endi_celery.interfaces.IAccountingOperationProducer=endi_celery.parsers.quadra.producer_factory\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "endi_celery",
    "version": "6.7.8",
    "project_urls": {
        "Homepage": "https://framagit.org/endi/endi_celery"
    },
    "split_keywords": [
        "web",
        "wsgi",
        "bfg",
        "pylons",
        "pyramid",
        "celery"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ad1a4b7845e0e7512c9bcfdd7f1e123bb2660323b3219d6706d385155c8d3070",
                "md5": "b244bc5a4022a9b5035dfc10246d523c",
                "sha256": "5da307c25fb27c7ec6e7b1e5241fe3ff2c05e7bec0748ce16f4ff0d52c3c658d"
            },
            "downloads": -1,
            "filename": "endi_celery-6.7.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b244bc5a4022a9b5035dfc10246d523c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 69283,
            "upload_time": "2024-03-04T14:26:42",
            "upload_time_iso_8601": "2024-03-04T14:26:42.416460Z",
            "url": "https://files.pythonhosted.org/packages/ad/1a/4b7845e0e7512c9bcfdd7f1e123bb2660323b3219d6706d385155c8d3070/endi_celery-6.7.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d43c8e5f4b8fefb7608ab028dc173d9d89a8dedc1f4972ec50ea1a59e414e0b",
                "md5": "88605ab4ab991fe361a08826dd603d4a",
                "sha256": "8ffeedc4c17fb9c552165bb39cf7d4b6b8f78c6eb6eda616cf9dec4d183bd3f6"
            },
            "downloads": -1,
            "filename": "endi_celery-6.7.8.tar.gz",
            "has_sig": false,
            "md5_digest": "88605ab4ab991fe361a08826dd603d4a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 60767,
            "upload_time": "2024-03-04T14:26:44",
            "upload_time_iso_8601": "2024-03-04T14:26:44.515812Z",
            "url": "https://files.pythonhosted.org/packages/1d/43/c8e5f4b8fefb7608ab028dc173d9d89a8dedc1f4972ec50ea1a59e414e0b/endi_celery-6.7.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-04 14:26:44",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "endi-celery"
}
        
Elapsed time: 0.21014s