{"id":27277,"library":"pyeventsystem","title":"pyeventsystem","description":"An event-driven middleware library for Python. Version 0.1.0 is the initial release; it enables defining event handlers and middleware pipelines. Development appears early stage with no recent updates.","status":"active","version":"0.1.0","language":"python","source_language":"en","source_url":"https://github.com/cloudve/pyeventsystem","tags":["event-driven","middleware","events","cloudve"],"install":[{"cmd":"pip install pyeventsystem","lang":"bash","label":"default"}],"dependencies":[{"reason":"Part of the cloudve ecosystem; may require other cloudve packages for full functionality","package":"cloudve","optional":true}],"imports":[{"note":"","wrong":"","symbol":"EventSystem","correct":"from pyeventsystem import EventSystem"},{"note":"","wrong":"","symbol":"Event","correct":"from pyeventsystem import Event"},{"note":"","wrong":"","symbol":"middleware","correct":"from pyeventsystem import middleware"}],"quickstart":{"code":"from pyeventsystem import EventSystem, Event\n\napp = EventSystem()\n\n@app.middleware('before')\ndef logging_middleware(event):\n    print(f'Before event: {event.name}')\n\n@event_handler\ndef my_handler(event):\n    print(f'Handling {event.name}')\n\napp.emit(Event('test'))","lang":"python","description":"Create an EventSystem, add middleware, define handlers, and emit events."},"warnings":[{"fix":"Pin exact version in requirements.txt and test thoroughly before upgrading.","message":"Library is very early stage (v0.1.0). API is unstable and likely to change. Do not rely on it for production without careful version pinning.","severity":"gotcha","affected_versions":"==0.1.0"},{"fix":"Check the source code or README for the correct decorator name (likely 'app.handler' or similar).","message":"The decorator '@event_handler' is not explicitly documented; may not exist or may be called differently. The README shows minimal examples.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Review source code or test middleware behavior manually.","message":"No documentation for middleware ordering or priority. Middleware execution order may be undefined.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install pyeventsystem' in the correct Python environment.","cause":"Package not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'pyeventsystem'"},{"fix":"Use 'from pyeventsystem import *' or examine the module's __init__.py for correct symbols.","cause":"The API may not match the expected import; check the exact exported names.","error":"ImportError: cannot import name 'EventSystem' from 'pyeventsystem'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}