AioPlugin
A tool inspired by the way pluggy works with pytest but is meant to help build application-like builds using asynchronous event wrappers. It is the successor to aiocallback as it's primary rewrite, however aiocallback does plan to get some of this project's backend stuff in the future so that aiocallback never goes stale but helps keep aioplugin a bit more neat and organized.
It takes inspiration from the popular discord.py and pluggy libraries allowing you to build very cleaver asynchronous programs. It can be ran in some very unique ways and allows for other developers to add on to your application's callbacks in some very clean/unique and surprising ways.
It can be used with virtually any asynchronous implementations as long as it uses the await
syntax. A few examples would include, anyio, trio and asyncio, curio and twisted are not tested but I can
gaurentee that it is likely to work with those implementations too.
Small example
from aioplugin.event import event
from aioplugin.plugin import Plugin
class MyEvent(Plugin):
# you can very easily add your own data, it's recommended
# to use typing.Generic for the best results if the data
# can be combined to other events.
def __init__(self, items):
super().__init__()
self._items = items
@event
async def on_name(self, name: str) -> None:
pass
events = MyEvent()
print(events.__event_names__)
@events.on_name
async def hello(name: str):
print(f"Hello {name}")
async def main():
# Like aiosignal this comes with it's own freezing funciton.
# This is inspired by aiocallback as aioplugin was meant
# to remedy some of aiocallback's shortcomings and other various bugs.
events.freeze()
await events.on_name.send("World!")
if __name__ == "__main__":
import winloop
winloop.run(main())
There is much more documentation is coming soon.
Other Dependencies
Libraries such as these are the library's main back bones. They were developed for this library specifically with very a tiny footprint, these will not eat diskspace at all if this was your primary concern, these were seperated specifically if developers had something else in mind:
-
freezabledict2 there were so many names taken so many times that a #2 was needed. It works the same way as FrozenList giving the option to mutate a dictionary/hash-table until frozen.
-
reductable-params This library is the main tool responsible for giving developers like you the freedom of positioning parameters however you want or ignore them or create custom parameters using hooks. If you want to make your own stuff, reductable-params is perfect for writing your own callable plugin systems and has powerful performance benefits thanks to it's use of C & Cython, it also has a pure python fallback if you plan to use something a little bit more unsupported like pypy.
Metadata
Release files for aioplugin 0.5.0
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 |
|---|---|---|---|---|
| aioplugin-0.5.0.tar.gz | 11.9 kB | With provenance | Details for aioplugin-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioplugin-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for aioplugin-0.5.0-py3-none-any.whl |
Total release size: 21.4 kB
Release files / aioplugin-0.5.0.tar.gz
| Download URL | aioplugin-0.5.0.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad2f93925dea327f38cf5a6894ea67280dfcfaf3bbe793db75e76aae7cd923f2
|
|
BLAKE2b-256 checksum How to use checksums |
b9d128de2f89cd1b981b53aa252f7f47e68755b8678ce9469542faa5d455e200
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 15, 2026.
Transparency logRelease files / aioplugin-0.5.0-py3-none-any.whl
| Download URL | aioplugin-0.5.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
867b548e0ec957486343ad3bc2fa0394948868733fa0fd4f73600496526426be
|
|
BLAKE2b-256 checksum How to use checksums |
93d29de3f0e8615e4cae162caa926238742e725a1c21fd14faafc30a97a5aa2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 15, 2026.
Transparency logSecurity for aioplugin 0.5.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aioplugin-0.5.0.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 Jun 15, 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.