{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/16"}],"enrichment":{"capability":"An event emitter library that lets you register handlers for named events, emit those events with arguments, and optionally match events using wildcards and namespace patterns.","skillfed_tags":["event-driven","pub-sub","async-support"],"use_cases":["Build a plugin system where components register handlers for lifecycle events and emit them at appropriate times.","Implement a message broker or pub-sub layer for decoupling different parts of an application that need to react to state changes.","Create a notification system where handlers listen to namespaced events like \"user.login\" and \"order.shipped\" with wildcard subscriptions.","Coordinate async tasks in a web framework by emitting events when requests complete or background jobs reach milestones.","Build a game engine where game objects emit events like collision and death that other systems listen to and react to."],"what_it_does":"Pymitter is a Python port of Node.js EventEmitter2, providing a publish-subscribe mechanism for event-driven architectures. It lets you register handler functions (sync or async) to named events, then emit those events with arbitrary arguments to trigger all matching handlers in registration order. The library supports namespaced event names with wildcard matching (e.g., listening to \"my_event.*\" catches both \"my_event.foo\" and \"my_event.bar\"), time-to-live (TTL) limits on how many times a handler fires, and both decorator and callback registration styles.\n\nThe package is lightweight with minimal dependencies and works with modern Python versions. It handles async functions by running them in an event loop when needed, and provides three emission modes: synchronous emit, async-aware emit_async for use within an existing event loop, and emit_future for fire-and-forget async execution. This makes it suitable for building event-driven systems, plugin architectures, and inter-component communication patterns.","worth_installing":"Yes. Pymitter is a stable, actively maintained library with low install friction, no known vulnerabilities, and permissive licensing. It solves the event-emitter problem cleanly with wildcard and namespace support, async-friendly design, and a small dependency footprint. Install it if you need publish-subscribe or event-driven communication in your application."},"id":"pymitter","links":{"html":"https://skillfed.io/packages/pymitter","md":"https://skillfed.io/packages/pymitter.md","pypi":"https://pypi.org/project/pymitter/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-07-11","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"pymitter","python_support":"supports_current","summary":"Python port of the extended Node.js EventEmitter 2 approach providing namespaces, wildcards and TTL."},"popularity":{"monthly_downloads":118330,"position":12124,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.3"}
