Skip to main content

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')

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanoevent-1.1.0.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file nanoevent-1.1.0.tar.gz.

File metadata

  • Download URL: nanoevent-1.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for nanoevent-1.1.0.tar.gz
Algorithm Hash digest
SHA256 468152f473160cb25bdd94f542aa2fa835fa24e60a79f64b97c42a7631dac20c
MD5 7b9d33e852c03b10831cab7dcb209e83
BLAKE2b-256 030ab69e07452b5acac7bdaf83d9b783f690cc9fb4c907707f6f9164388027ff

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page