Registry / devops / aionotify

aionotify

JSON →
library0.3.1pypypi✓ verified 84d ago

A simple, asyncio-powered inotify library for Linux. Provides an asynchronous interface to monitor filesystem events. Current version 0.3.1, requires Python >=3.8. Low release cadence (last release 2020).

pip install aionotify
INSTALL
IMPORT
SIG · AIONOTIFY
A
aionotify
devopspythonv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Flags
✓ from aionotify import Flags
✗ from aionotify import Inotify
Watcher
✓ from aionotify import Watcher
✗ from aionotify import Inotify
aioutils
✓ from aionotify import aioutils
✗ from aionotify import Inotify

Sets up an inotify watch on /tmp, prints create and delete events.

import asyncio import os from aionotify import Inotify, Flags async def main(): inotify = Inotify() inotify.watch(path='/tmp', flags=Flags.CREATE | Flags.DELETE) await inotify.setup() while True: events = await inotify.get_events() for event in events: print(event) asyncio.run(main())
Debug
Known issues
deprecatedaionotify is effectively in maintenance mode; no releases since 2020. Consider inotify replacement for projects requiring ongoing support.
fix
Migrate to inotify (https://pypi.org/project/inotify/) or use pyinotify with asyncio wrappers.
affects: >=0.2.0
gotchaaionotify requires Linux (inotify is Linux-specific). Importing on other platforms will raise ImportError.
fix
Guard imports with sys.platform check or use conditional dependency.
affects: all
gotchaThe library uses byte paths internally; event.alias may be bytes, not str.
fix
Decode event.name (and related fields) explicitly: event.name.decode('utf-8') if needed.
affects: all
Upgrade
Version history
0.3.1latest on PyPI · released May 15, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
30
OpenAI (training)
1
Resources
aionotify — pip install aionotify · libregistry