{ "info": { "author": "Steven Liebregt", "author_email": "stevenliebregt@outlook.com", "bugtrack_url": null, "classifiers": [], "description": "# Grigori\n\nGrigori is a small Python 3 module that watches over your files and notifies you of changes.\n\n## Usage\n\nThere are currently 2 ways you can use Grigori, with a for loop, or with callbacks.\n\n**For loops**\n\nFor the complete example, see `/examples/basic.py`.\n\n```python\nw = Watcher(directory)\n\nfor changes in w.watch():\n for change in changes:\n print(\"file '%s' has been changed in the following way: '%s'\" % (change[\"file\"], change[\"type\"]))\n```\n\n**Callbacks**\n\nFor the complete example, see `/examples/callbacks.py`.\n\n```python\nw = Watcher(\"./directory/to/watch\")\n\n# Bind the callbacks.\nw.on(Change.ADDED, on_added)\nw.on(Change.MODIFIED, on_modified)\nw.on(Change.DELETED, on_deleted)\n\nw.wait() # Start watching the files.\n```\n\n## To Do\n\nAllow for watching multiple top-level directories, which will be each watched in threads using a thread pool.\n\nAdd `inotify` support.\n\nAdd Handler classes that can be used instead of for loops or callbacks.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stevenliebregt/grigori", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Grigori", "package_url": "https://pypi.org/project/Grigori/", "platform": "", "project_url": "https://pypi.org/project/Grigori/", "project_urls": { "Homepage": "https://github.com/stevenliebregt/grigori" }, "release_url": "https://pypi.org/project/Grigori/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Watches a directory for file changes.", "version": "1.0.1" }, "last_serial": 4117513, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a40b839859781001701c5cf541070e01", "sha256": "69add1f400ec948df53376b71332be49693d552337ca4102e5cffaa364820157" }, "downloads": -1, "filename": "Grigori-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a40b839859781001701c5cf541070e01", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3473, "upload_time": "2018-07-29T18:07:31", "url": "https://files.pythonhosted.org/packages/57/ac/4001541a10a03161d3d058fc5415593e602f6fce4fb5f5f72100b6be317b/Grigori-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "29e2385d522e66d3bc1f7227495da104", "sha256": "7935c6fa83aef5ea5da1e76809cd0eede4aafad2bc07f70b54ed04a7a66d918e" }, "downloads": -1, "filename": "Grigori-1.0.0.tar.gz", "has_sig": false, "md5_digest": "29e2385d522e66d3bc1f7227495da104", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3245, "upload_time": "2018-07-29T18:07:32", "url": "https://files.pythonhosted.org/packages/75/cd/227eafc6f648efd8d5362742ad262db299e5320f735ba39161735fd8a1f2/Grigori-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e098c692852d953ccff7386757aecc42", "sha256": "bce56bfc82a6c4234ec4db48da5d4dfdde7f10efd05a2a632558072a5f2c50c1" }, "downloads": -1, "filename": "Grigori-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e098c692852d953ccff7386757aecc42", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4179, "upload_time": "2018-07-30T19:03:40", "url": "https://files.pythonhosted.org/packages/d6/06/8f44218fa7e050355c53b7bdade7024e23c9bd0657ae7fb3397707a9beb9/Grigori-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "191f72b3edf3dc099ba0428968cd5691", "sha256": "5c908698de0f0f3bae439850f2a334a775fbfa5f67aebb8a7f004eac189da070" }, "downloads": -1, "filename": "Grigori-1.0.1.tar.gz", "has_sig": false, "md5_digest": "191f72b3edf3dc099ba0428968cd5691", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3630, "upload_time": "2018-07-30T19:03:41", "url": "https://files.pythonhosted.org/packages/33/a2/48b03e0cb1e41d08e2c0cd819454340c81fab87ba1b14e1340efc32c1104/Grigori-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e098c692852d953ccff7386757aecc42", "sha256": "bce56bfc82a6c4234ec4db48da5d4dfdde7f10efd05a2a632558072a5f2c50c1" }, "downloads": -1, "filename": "Grigori-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e098c692852d953ccff7386757aecc42", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4179, "upload_time": "2018-07-30T19:03:40", "url": "https://files.pythonhosted.org/packages/d6/06/8f44218fa7e050355c53b7bdade7024e23c9bd0657ae7fb3397707a9beb9/Grigori-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "191f72b3edf3dc099ba0428968cd5691", "sha256": "5c908698de0f0f3bae439850f2a334a775fbfa5f67aebb8a7f004eac189da070" }, "downloads": -1, "filename": "Grigori-1.0.1.tar.gz", "has_sig": false, "md5_digest": "191f72b3edf3dc099ba0428968cd5691", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3630, "upload_time": "2018-07-30T19:03:41", "url": "https://files.pythonhosted.org/packages/33/a2/48b03e0cb1e41d08e2c0cd819454340c81fab87ba1b14e1340efc32c1104/Grigori-1.0.1.tar.gz" } ] }