delegate-events: Python implementation of the Event Pattern.
delegate-events provides a basic implementation of the well-known Event or Pub/Sub Pattern, and is built on top of the delegate-pattern package which handles the delegation part.
Example
from delegate.pattern import delegate
from delegate.events import Channel, Event
class OnSomethingEvent(Event):
def __init__(self, what: str, why: str):
self.what = what
self.why = why
def __str__(self):
return f"{self.what} happened because of {self.why}"
class Class1:
on_something = delegate(Channel[OnSomethingEvent])
inst = Class1()
msg_queue: list[Event] = []
def fn(publisher, event: OnSomethingEvent):
msg_queue.append(event)
inst.on_something.subscribe(fn)
inst.on_something.fire(OnSomethingEvent("Something", "some other thing"))
str(msg_queue[0]) # => "Something happened because of some other thing"
Full documentation
Metadata
Release files for delegate-events 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| delegate_events-0.0.3.tar.gz | 6.8 kB | With provenance | Details for delegate_events-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| delegate_events-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for delegate_events-0.0.3-py3-none-any.whl |
Total release size: 13.1 kB
Release files / delegate_events-0.0.3.tar.gz
| Download URL | delegate_events-0.0.3.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce636454737536141abb05f7f9ef360073785b5ef0ef530748250843652b0c95
|
|
BLAKE2b-256 checksum How to use checksums |
28957c926c6c1944eed57d9811786685d5a533f6d5b7962c76b5dbbaa30a9ae0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / delegate_events-0.0.3-py3-none-any.whl
| Download URL | delegate_events-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10ce49da51976c019429234ddb714dbdf31923d02bf0212168431443045aa196
|
|
BLAKE2b-256 checksum How to use checksums |
396c9f9bc9b28a0ae5e0273b218416e5ac959b18dfb6b5ac172f0b71ea5aae78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for delegate-events 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for delegate_events-0.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.