{ "info": { "author": "Cl\u00e9ment Doumergue", "author_email": "doumer_c@etna-alternance.net", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "Dulcinea\n========\n\nScript allowing to test Quixote moulinettes locally.\n\n## Install\n```\npip install -r requirements.txt\n```\n\n## How to use dulcinea\n\n```python\nusage: dulcinea.py [-h] -c CONFIG_FILE -i INFO_FILE [-r ROOT_DIR] moulinette_directory\n\npositional arguments:\n moulinette_directory\n\noptional arguments:\n -h, --help show this help message and exit\n -c CONFIG_FILE, --config-file CONFIG_FILE json file containing the user informations\n -i INFO_FILE,\t --info-file INFO_FILE json file containing the information of the jobs to execute\n -r ROOT_DIR,\t--root-dir ROOT_DIR directory where the jobs will be executed\n```\n\n### Conf file example\n\nThe conf file must be given using the `-c` option and contain usefull meta-data to insert in the context such as the user's information\n\n```json\n{\n \"intra_user\": \"login_z\",\n \"intra_password\": \"superPassSecure\",\n \"gitlab_token\": \"superCuteToken\"\n}\n```\n\n\n### Blueprint\n\nIn order to test the moulinette locally, the script must be able to fetch some dummy delivery to test.\n\nUsually, it is achieved by replacing the fetching step with a \"local\" fetch using the `fetch.copy` built-in:\n\n```python\nimport quixote.fetch.copy as fetch\n\n@quixote.fetcher\ndef fetch_by_copying():\n fetch.copy(path_to_the_dummy_delivery_folder)\n\n```\n\n> The dummy delivery folder must contain a directory for each group_id specified in the info file\n> which will act as dummy delivery for the specific job. See the documentation for `fetch.copy`.\n\n### Info file example\n\nThe info file must be given using the `-i` option and should contain the meta-data of all dummy deliveries.\n\n```\n[\n {\n \"module_id\": 1,\n \"activity_id\": 1,\n \"group_id\": 1\n },\n {\n \"module_id\": 1,\n \"activity_id\": 1,\n \"group_id\": 2\n }\n]\n```\n\n> The values for `module_id` and `activity_id` don't really matter, they are just dummy values to insert into the context.\n> `group_id` however must match the directory name inside the dummy delivery folder.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/etna-alternance/dulcinea", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "etna-dulcinea", "package_url": "https://pypi.org/project/etna-dulcinea/", "platform": "", "project_url": "https://pypi.org/project/etna-dulcinea/", "project_urls": { "Homepage": "https://github.com/etna-alternance/dulcinea" }, "release_url": "https://pypi.org/project/etna-dulcinea/1.0.1/", "requires_dist": [ "etna-panza" ], "requires_python": "", "summary": "Script to test Quixote moulinettes locally", "version": "1.0.1" }, "last_serial": 5906406, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "0c9dad9c07dc0ca97ec5f47738cccea9", "sha256": "c3ea33b2bfad203ab14ad845d07fb1394897bae01502eb5f99c5486fde09d75f" }, "downloads": -1, "filename": "etna_dulcinea-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0c9dad9c07dc0ca97ec5f47738cccea9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3099, "upload_time": "2019-09-11T13:06:24", "url": "https://files.pythonhosted.org/packages/1c/be/f73b74094e682df584c272e91f3251afb52d809809a1778b1f17d014d6ea/etna_dulcinea-1.0.0-py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b21b47bf9cc233e20041e3e836f2fe7f", "sha256": "2faa677047f377117696adf9239ec60306ed2c3b3af530cbc6df8c33223d13e4" }, "downloads": -1, "filename": "etna_dulcinea-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b21b47bf9cc233e20041e3e836f2fe7f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3153, "upload_time": "2019-09-30T10:37:10", "url": "https://files.pythonhosted.org/packages/c1/75/c310e925385cf527e7ef442697599511a0fc14be6a0b8b37fae80963199d/etna_dulcinea-1.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b21b47bf9cc233e20041e3e836f2fe7f", "sha256": "2faa677047f377117696adf9239ec60306ed2c3b3af530cbc6df8c33223d13e4" }, "downloads": -1, "filename": "etna_dulcinea-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b21b47bf9cc233e20041e3e836f2fe7f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3153, "upload_time": "2019-09-30T10:37:10", "url": "https://files.pythonhosted.org/packages/c1/75/c310e925385cf527e7ef442697599511a0fc14be6a0b8b37fae80963199d/etna_dulcinea-1.0.1-py3-none-any.whl" } ] }