Skip to main content

Small library for observation mechanism

Project description

ntt-signal

Signal library by threezinedine

Example

def Callback() -> None:
    print("Signal is emitted")

signal = Signal()
signal.Connect(Callback)

signal.Emit()

Example with type

def Callback(nValue: int) -> None:
    print(f"Signal is emitted with value {nValue}")

signal = Signal(int)
signal.Connect(Callback)

signal.Emit(3)

Project details


Download files

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

Source Distribution

ntt-signal-1.0.3.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

ntt_signal-1.0.3-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page