caerp-celery


Namecaerp-celery JSON
Version 2024.1.1 PyPI version JSON
download
home_pagehttps://framagit.org/caerp/caerp_celery
Summarycaerp_celery
upload_time2024-03-08 17:13:03
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.
            CAErp asynchronous tasks
============================

Since version 6, caerp-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 CAErp

scheduler:

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

Results
-------

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

CAErp celery provides all the models that should be used to store task
execution related stuff (see caerp_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
.............

caerp_celery should be run in the same environment as CAErp :
https://framagit.org/caerp/caerp

You may first run

.. code-block:: console

    workon caerp


.. code-block:: console

    git clone https://framagit.org/caerp/caerp_celery.git
    cd caerp_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::

    caerp_celery.interfaces.IAccountingFileParser=caerp_celery.parsers.sage.parser_factory

.. code-block::

    caerp_celery.interfaces.IAccountingOperationProducer=caerp_celery.parsers.sage.producer_factory

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

.. code-block::

    caerp_celery.interfaces.IAccountingFileParser=caerp_celery.parsers.sage_generation_expert.parser_factory

.. code-block::

    caerp_celery.interfaces.IAccountingOperationProducer=caerp_celery.parsers.sage_generation_expert.producer_factory

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

.. code-block::

    caerp_celery.interfaces.IAccountingFileParser=caerp_celery.parsers.quadra.parser_factory

.. code-block::

    caerp_celery.interfaces.IAccountingOperationProducer=caerp_celery.parsers.quadra.producer_factory

            

Raw data

            {
    "_id": null,
    "home_page": "https://framagit.org/caerp/caerp_celery",
    "name": "caerp-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/c8/9e/4cc35fed2428fedacd60021434bef97bc82db60cafa09ed859a2822c030e/caerp_celery-2024.1.1.tar.gz",
    "platform": null,
    "description": "CAErp asynchronous tasks\n============================\n\nSince version 6, caerp-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 CAErp\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 CAErp's database to\nreturn datas.\n\nCAErp celery provides all the models that should be used to store task\nexecution related stuff (see caerp_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\ncaerp_celery should be run in the same environment as CAErp :\nhttps://framagit.org/caerp/caerp\n\nYou may first run\n\n.. code-block:: console\n\n    workon caerp\n\n\n.. code-block:: console\n\n    git clone https://framagit.org/caerp/caerp_celery.git\n    cd caerp_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    caerp_celery.interfaces.IAccountingFileParser=caerp_celery.parsers.sage.parser_factory\n\n.. code-block::\n\n    caerp_celery.interfaces.IAccountingOperationProducer=caerp_celery.parsers.sage.producer_factory\n\nSage Generation Expert\n.......................\n\n.. code-block::\n\n    caerp_celery.interfaces.IAccountingFileParser=caerp_celery.parsers.sage_generation_expert.parser_factory\n\n.. code-block::\n\n    caerp_celery.interfaces.IAccountingOperationProducer=caerp_celery.parsers.sage_generation_expert.producer_factory\n\nQuadra\n.......................\n\n.. code-block::\n\n    caerp_celery.interfaces.IAccountingFileParser=caerp_celery.parsers.quadra.parser_factory\n\n.. code-block::\n\n    caerp_celery.interfaces.IAccountingOperationProducer=caerp_celery.parsers.quadra.producer_factory\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "caerp_celery",
    "version": "2024.1.1",
    "project_urls": {
        "Homepage": "https://framagit.org/caerp/caerp_celery"
    },
    "split_keywords": [
        "web",
        "wsgi",
        "bfg",
        "pylons",
        "pyramid",
        "celery"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eb772de03e4c7756044ec0c17f67bd74e0a9f8d7d84d236e57b4ffef9c37daa4",
                "md5": "61eead1ae2f944c18458e5e6dd370949",
                "sha256": "50e7f35c39addf20f56bb41c62512412c2bb228b69425dfa66a4b0ab1c79e2f4"
            },
            "downloads": -1,
            "filename": "caerp_celery-2024.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "61eead1ae2f944c18458e5e6dd370949",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 68962,
            "upload_time": "2024-03-08T17:13:02",
            "upload_time_iso_8601": "2024-03-08T17:13:02.206684Z",
            "url": "https://files.pythonhosted.org/packages/eb/77/2de03e4c7756044ec0c17f67bd74e0a9f8d7d84d236e57b4ffef9c37daa4/caerp_celery-2024.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c89e4cc35fed2428fedacd60021434bef97bc82db60cafa09ed859a2822c030e",
                "md5": "beb5c2a455ce901c22c4a6f0a750c882",
                "sha256": "9a9f8f25f88af56f1b86e1850e54d331da0c3b4a96a5040d791a2961c3191bef"
            },
            "downloads": -1,
            "filename": "caerp_celery-2024.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "beb5c2a455ce901c22c4a6f0a750c882",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 57860,
            "upload_time": "2024-03-08T17:13:03",
            "upload_time_iso_8601": "2024-03-08T17:13:03.589153Z",
            "url": "https://files.pythonhosted.org/packages/c8/9e/4cc35fed2428fedacd60021434bef97bc82db60cafa09ed859a2822c030e/caerp_celery-2024.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-08 17:13:03",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "caerp-celery"
}
        
Elapsed time: 0.25527s