Skip to content

Nanoevent is a terrifically small and simple event bus implementation for Python.

License

Notifications You must be signed in to change notification settings

berry-langerak/nanoevent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nanoevent

Nanoevent is a terrifically small and simple event dispatching library for Python 3.6+. It's key features:

  • Easy enough to start using in minutes.
  • Pretty feature complete.
  • Designed to be super simple to use.

Installation

pip install nanoevent

User guide

import nanoevent

d = nanoevent.Dispatcher()

def handler(value):
    print(value)

d.attach('event:name', handler)

# The following results in "Hi, this is a test" being printed.
d.emit('event:name', 'Hi, this is a test')

About

Nanoevent is a terrifically small and simple event bus implementation for Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages