{ "info": { "author": "Thomas Guyet", "author_email": "thomas.guyet@irisa.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# PyChronicle package\n\nA chronicle is a specification of the complex temporal behaviors as a temporal constraint graph. It can be used to recognize complex behaviors in sequence the temporal events.\n\nA chronicle is a multiset of events and a set of temporal constraints specifying that occurrences of pairs of events must occurs within a given temporal interval.\n\nThe package implements the model of chronicles and an efficient algorithm to recognize it.\n\nThere are three different ways to recognize chronicle in a sequence of a events:\n* the absence/presence recognition (`c.isrecognize(seq)`): its result is a boolean stating whether the chronicle occur at least once in the sequence, this is the most efficient algorithm\n* the occurrence enumeration (`c.recognize(seq)`): its result is a list of occurrence of the chronicle in a sequence. Contrary to the first implementation, it looks for all possible combinasion of events. Thus it is less efficient\n* the approximate occurrence enumeration (`c.cmp(seq, 0.7)`): its result is a list of occurrences that are similar of the chronicle with a similarity threshold of 0.7.\n\nPlease note that the author is not fully sasitfied by the function name and that it appeals to change them in a short delay ...\n\n# Requirements\n\nUse `pip install -r requirements.txt` to install requirements.\n\nNaturally, the latter may require superuser rights (consider prefixing the commands by sudo).\n\nIf you want to use Python 3 and your system defaults on Python 2.7, you may need to adjust the above commands, e.g., replace pip by pip3.\n\nThe required libraries are the following\n* numpy\n* scipy\n* lazr.restfulclient\n* larz.uri\n\nLAZR is used to instantiate chronicles from CRS files (with simple grammar).\n\n# Usage\n\nExample of usage:\n\n from pychronicles import *\n #define a sequence of events\n seq = [3,4,'b','a','a',1,3,'coucou','b','coucou',5,'coucou',5]\n\n #define a chronicle\n c=Chronicle()\n c.add_event(0,'b')\n c.add_event(1,1)\n c.add_constraint(1,3, (3,45))\n print(c)\n\n #recognize the chronicle in the sequence\n occs=c.recognize(seq)\n print(\"occurrences: \"+str(occs))\n\nIt is possible to specify chronicles using the CRS format. The following code illustrate the syntax for specifying a chronicle in this format.\n\n chronicle C27_sub_0[]()\n {\n\t event(Event_Type1[], t006)\n\t event(Event_Type1[], t004)\n\t event(Event_Type2[], t002)\n\t event(Event_Type3[], t001)\n\n\t t004-t006 in [17,25]\n\t t006-t002 in [-16,-10]\n\t t002-t001 in [14,29]\n\t t004-t001 in [27,35]\n }\n\n\n# Authorship\n\n**Author:** Thomas Guyet\n**Institution:** AGROCAMPUS-OUEST/IRISA\n**date:10/2019**\n\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://gitlab.inria.fr/tguyet/pychronicles", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pychronicles", "package_url": "https://pypi.org/project/pychronicles/", "platform": "", "project_url": "https://pypi.org/project/pychronicles/", "project_urls": { "Homepage": "https://gitlab.inria.fr/tguyet/pychronicles" }, "release_url": "https://pypi.org/project/pychronicles/0.0.5/", "requires_dist": [ "numpy", "scipy", "lazr.restfulclient", "lazr.uri", "lark-parser" ], "requires_python": "", "summary": "A package for chronicle recognition", "version": "0.0.5" }, "last_serial": 5988842, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "bf56c659d4b89b49bb5e00e73f070dd6", "sha256": "ca97a65010744ed385ca65abd68e198f0648bd54095d03236ab2e6c741751197" }, "downloads": -1, "filename": "pychronicles-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "bf56c659d4b89b49bb5e00e73f070dd6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18723, "upload_time": "2019-04-15T12:43:34", "url": "https://files.pythonhosted.org/packages/b0/13/8a173cb80570ef3f76d016a00b7e5c3b8cf7daa9fa2987a0a531d3a53a0f/pychronicles-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c6b441e037608688348f0a7cbe05eed", "sha256": "746864b424dc205c4aaeced4002b424a6909cc292db7719f4cde6e414bfb7a97" }, "downloads": -1, "filename": "pychronicles-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4c6b441e037608688348f0a7cbe05eed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5796, "upload_time": "2019-04-15T12:43:35", "url": "https://files.pythonhosted.org/packages/e3/32/6cbc3a37dede27c6476c75d171926aeb14a981a09472658e7d44895bd292/pychronicles-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "8e9948d9b994bf345c80fecbd9556163", "sha256": "19a4fc2de8ebead91bc4d678769de8eefb2c2cfc74ff718dd4e13b54c4674b1c" }, "downloads": -1, "filename": "pychronicles-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8e9948d9b994bf345c80fecbd9556163", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20027, "upload_time": "2019-10-01T14:43:23", "url": "https://files.pythonhosted.org/packages/ec/6d/8be12228efff46db6829c1e181b5ddad4adb1737458aba70436db70ca11c/pychronicles-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "edc4aedbe5cf1cc458391cc8e0ea75d4", "sha256": "a422d3fef161ec285c6407d572693635c1ecbad1bbe88ca8ed2b6973f516a2f9" }, "downloads": -1, "filename": "pychronicles-0.0.3.tar.gz", "has_sig": false, "md5_digest": "edc4aedbe5cf1cc458391cc8e0ea75d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7094, "upload_time": "2019-10-01T14:43:24", "url": "https://files.pythonhosted.org/packages/00/0d/39acdfaa26633077cd9d6c97b1424f2435f41747af5dee329bf5bbdea0f6/pychronicles-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "841dca251805fb608216c3f121e5d32c", "sha256": "62b7a3f4205fd5691cc73838279c686badfb77eb2b93fcbe8ec6ba2d72482e4f" }, "downloads": -1, "filename": "pychronicles-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "841dca251805fb608216c3f121e5d32c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21882, "upload_time": "2019-10-04T10:04:43", "url": "https://files.pythonhosted.org/packages/e5/7a/f7eef5acdc67e5c136a659fe2c2334e4d86c39458c480e90d118b98559d2/pychronicles-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7f5395ebd364e2b3f9676d347745076", "sha256": "24bca0c797dc8dba723942b8700da2f50decc473c6416972822b1666a2ad4976" }, "downloads": -1, "filename": "pychronicles-0.0.4.tar.gz", "has_sig": false, "md5_digest": "e7f5395ebd364e2b3f9676d347745076", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8930, "upload_time": "2019-10-04T10:04:44", "url": "https://files.pythonhosted.org/packages/15/9b/4925cf9eb750af87bc506f4311169d99bd9099967d74844a38d5113d05d6/pychronicles-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "01af1a952e6ab2b3cc09a4e16d509c5e", "sha256": "29bc24c90d60103162dcf7791dbc798c59f4e3e221c20403bd084a44d8865043" }, "downloads": -1, "filename": "pychronicles-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "01af1a952e6ab2b3cc09a4e16d509c5e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22707, "upload_time": "2019-10-17T10:03:58", "url": "https://files.pythonhosted.org/packages/db/30/827f5934b2639ba2ff5a1ddf5378f63cd48ffbda564b7810ebe6fb2de1fb/pychronicles-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0af9ee2d6e0c534883ad6802ef13b219", "sha256": "53af8164b45b6f51dbbdd1c8e5c5caa87d36ce81fa73c45013f6a6d46e7c686b" }, "downloads": -1, "filename": "pychronicles-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0af9ee2d6e0c534883ad6802ef13b219", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9844, "upload_time": "2019-10-17T10:04:00", "url": "https://files.pythonhosted.org/packages/5e/f8/5fdb5146c4bd6d4e9fd0706abcf20a3e3b716c10ce92506ebd816f16b68e/pychronicles-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "01af1a952e6ab2b3cc09a4e16d509c5e", "sha256": "29bc24c90d60103162dcf7791dbc798c59f4e3e221c20403bd084a44d8865043" }, "downloads": -1, "filename": "pychronicles-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "01af1a952e6ab2b3cc09a4e16d509c5e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22707, "upload_time": "2019-10-17T10:03:58", "url": "https://files.pythonhosted.org/packages/db/30/827f5934b2639ba2ff5a1ddf5378f63cd48ffbda564b7810ebe6fb2de1fb/pychronicles-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0af9ee2d6e0c534883ad6802ef13b219", "sha256": "53af8164b45b6f51dbbdd1c8e5c5caa87d36ce81fa73c45013f6a6d46e7c686b" }, "downloads": -1, "filename": "pychronicles-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0af9ee2d6e0c534883ad6802ef13b219", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9844, "upload_time": "2019-10-17T10:04:00", "url": "https://files.pythonhosted.org/packages/5e/f8/5fdb5146c4bd6d4e9fd0706abcf20a3e3b716c10ce92506ebd816f16b68e/pychronicles-0.0.5.tar.gz" } ] }