{ "info": { "author": "Rapha\u00ebl Barrois", "author_email": "raphael.barrois+aionotify@polytechnique.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Filesystems" ], "description": "aionotify\n=========\n\n.. image:: https://secure.travis-ci.org/rbarrois/aionotify.png?branch=master\n :target: http://travis-ci.org/rbarrois/aionotify/\n\n.. image:: https://img.shields.io/pypi/v/aionotify.svg\n :target: http://aionotify.readthedocs.org/en/latest/changelog.html\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/pyversions/aionotify.svg\n :target: https://pypi.python.org/pypi/aionotify/\n :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/wheel/aionotify.svg\n :target: https://pypi.python.org/pypi/aionotify/\n :alt: Wheel status\n\n.. image:: https://img.shields.io/pypi/l/aionotify.svg\n :target: https://pypi.python.org/pypi/aionotify/\n :alt: License\n\n\n``aionotify`` is a simple, asyncio-based inotify library.\n\n\nIts use is quite simple:\n\n.. code-block:: python\n\n import asyncio\n import aionotify\n\n # Setup the watcher\n watcher = aionotify.Watcher()\n watcher.watch(alias='logs', path='/var/log', flags=aionotify.Flags.MODIFY)\n\n # Prepare the loop\n loop = asyncio.get_eventloop()\n\n async def work():\n await watcher.setup(loop)\n for _i in range(10):\n # Pick the 10 first events\n event = await watcher.get_event()\n print(event)\n watcher.close()\n\n loop.run_until_completed(work())\n loop.stop()\n loop.close()\n\n\nEvents\n------\n\nAn event is a simple object with a few attributes:\n\n* ``name``: the path of the modified file\n* ``flags``: the modification flag; use ``aionotify.Flags.parse()`` to retrieve a list of individual values.\n* ``alias``: the alias of the watch triggering the event\n* ``cookie``: for renames, this integer value links the \"renamed from\" and \"renamed to\" events.\n\n\nWatches\n-------\n\n``aionotify`` uses a system of \"watches\", similar to inotify.\n\nA watch may have an alias; by default, it uses the path name:\n\n.. code-block:: python\n\n watcher = aionotify.Watcher()\n watcher.watch('/var/log', flags=aionotify.Flags.MODIFY)\n\n # Similar to:\n watcher.watch('/var/log', flags=aionotify.Flags.MODIFY, alias='/var/log')\n\n\nA watch can be removed by using its alias:\n\n.. code-block:: python\n\n watcher = aionotify.Watcher()\n watcher.watch('/var/log', flags=aionotify.Flags.MODIFY)\n\n watcher.unwatch('/var/log')\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rbarrois/aionotify", "keywords": "asyncio,inotify", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "aionotify", "package_url": "https://pypi.org/project/aionotify/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/aionotify/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rbarrois/aionotify" }, "release_url": "https://pypi.org/project/aionotify/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Asyncio-powered inotify library", "version": "0.2.0" }, "last_serial": 2044564, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2e4af3c4b6cfba0a3f4b17ed73c1c12d", "sha256": "d26d9fd6396bab38de47e0ed49bf73752a69243ec1c7aa34967fcc961d5b53e9" }, "downloads": -1, "filename": "aionotify-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2e4af3c4b6cfba0a3f4b17ed73c1c12d", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6171, "upload_time": "2016-04-03T23:58:20", "url": "https://files.pythonhosted.org/packages/8b/a8/81fe9c1c12f1c4aa88c8f5a4d14d1b158774079e608710d4d495e5dc8226/aionotify-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7b2e827dd9d4eab93f73c85317766a1a", "sha256": "7f288f32bdf44f6f500247c35b2b3b5eafb4dffd6823b7881adb179d37672675" }, "downloads": -1, "filename": "aionotify-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7b2e827dd9d4eab93f73c85317766a1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6475, "upload_time": "2016-04-03T23:57:29", "url": "https://files.pythonhosted.org/packages/3c/48/e29d861163dfdbe6bb7ef09ba3544e93b5652f4decfd25b6dd9ce939e064/aionotify-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "7b27d9aba253789aaee2145805538f08", "sha256": "385e1becfaac2d9f4326673033d53912ef9565b6febdedbec593ee966df392c6" }, "downloads": -1, "filename": "aionotify-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7b27d9aba253789aaee2145805538f08", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6571, "upload_time": "2016-04-04T11:54:54", "url": "https://files.pythonhosted.org/packages/d4/ca/104c3332c6c9be78108840fb3b08f40cfd2c598df4ce1cd7eb999416825c/aionotify-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "252066f7ab85aa71a89d23d3e42ce041", "sha256": "64b702ad0eb115034533f9f62730a9253b79f5ff0fbf3d100c392124cdf12507" }, "downloads": -1, "filename": "aionotify-0.2.0.tar.gz", "has_sig": false, "md5_digest": "252066f7ab85aa71a89d23d3e42ce041", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7200, "upload_time": "2016-04-04T11:54:02", "url": "https://files.pythonhosted.org/packages/57/c0/237d434870a024a16d89751ec9f4e5340a6d84d49ccb1ab738b3fdee907a/aionotify-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b27d9aba253789aaee2145805538f08", "sha256": "385e1becfaac2d9f4326673033d53912ef9565b6febdedbec593ee966df392c6" }, "downloads": -1, "filename": "aionotify-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7b27d9aba253789aaee2145805538f08", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6571, "upload_time": "2016-04-04T11:54:54", "url": "https://files.pythonhosted.org/packages/d4/ca/104c3332c6c9be78108840fb3b08f40cfd2c598df4ce1cd7eb999416825c/aionotify-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "252066f7ab85aa71a89d23d3e42ce041", "sha256": "64b702ad0eb115034533f9f62730a9253b79f5ff0fbf3d100c392124cdf12507" }, "downloads": -1, "filename": "aionotify-0.2.0.tar.gz", "has_sig": false, "md5_digest": "252066f7ab85aa71a89d23d3e42ce041", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7200, "upload_time": "2016-04-04T11:54:02", "url": "https://files.pythonhosted.org/packages/57/c0/237d434870a024a16d89751ec9f4e5340a6d84d49ccb1ab738b3fdee907a/aionotify-0.2.0.tar.gz" } ] }