caerp-celery


Namecaerp-celery JSON
Version 2024.2.5 PyPI version JSON
download
home_pagehttps://framagit.org/caerp/caerp_celery
Summarycaerp_celery
upload_time2024-12-16 10:20:54
maintainerNone
docs_urlNone
authorCoopérer Pour Entreprendre
requires_pythonNone
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 -A pyramid_celery.celery_app worker --ini development.ini

Launch the following command to launch the beat daemon::

    celery -A pyramid_celery.celery_app beat --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": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "web wsgi bfg pylons pyramid celery",
    "author": "Coop\u00e9rer Pour Entreprendre",
    "author_email": "contact@endi.coop",
    "download_url": "https://files.pythonhosted.org/packages/cc/87/e46b1f862a2736a791c8db80fe911682735d745a33dd0a9ef999c292dea3/caerp_celery-2024.2.5.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 -A pyramid_celery.celery_app worker --ini development.ini\n\nLaunch the following command to launch the beat daemon::\n\n    celery -A pyramid_celery.celery_app beat --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.2.5",
    "project_urls": {
        "Homepage": "https://framagit.org/caerp/caerp_celery"
    },
    "split_keywords": [
        "web",
        "wsgi",
        "bfg",
        "pylons",
        "pyramid",
        "celery"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1167b3179f7f2689871e7145550b20623d8375a0398885032aeaa10e55e25e60",
                "md5": "2fdc89784a3627edf524c01e1dd021dc",
                "sha256": "409b4467e53efb027800c7676b07ea5bf5005d9f7354096614ea49f3b116a7b9"
            },
            "downloads": -1,
            "filename": "caerp_celery-2024.2.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2fdc89784a3627edf524c01e1dd021dc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 70887,
            "upload_time": "2024-12-16T10:20:51",
            "upload_time_iso_8601": "2024-12-16T10:20:51.061172Z",
            "url": "https://files.pythonhosted.org/packages/11/67/b3179f7f2689871e7145550b20623d8375a0398885032aeaa10e55e25e60/caerp_celery-2024.2.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cc87e46b1f862a2736a791c8db80fe911682735d745a33dd0a9ef999c292dea3",
                "md5": "daf8329e3d788b959cbf6377759de4ae",
                "sha256": "2d158b8c319100158ed0e936727c4c62ce909a91f4c803af4c2a28a5b427adc1"
            },
            "downloads": -1,
            "filename": "caerp_celery-2024.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "daf8329e3d788b959cbf6377759de4ae",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 60076,
            "upload_time": "2024-12-16T10:20:54",
            "upload_time_iso_8601": "2024-12-16T10:20:54.075583Z",
            "url": "https://files.pythonhosted.org/packages/cc/87/e46b1f862a2736a791c8db80fe911682735d745a33dd0a9ef999c292dea3/caerp_celery-2024.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-16 10:20:54",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "caerp-celery"
}
        
Elapsed time: 0.66583s