Metadata-Version: 2.1
Name: arclet-letoderea
Version: 0.3.5
Summary: A high-performance, simple-structured event system, relies on asyncio
Home-page: https://github.com/ArcletProject/Letoderea
Author: ArcletProject
Author-email: rf_tar_railt@qq.com
License: MIT
Keywords: asyncio,dict
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/rst
License-File: LICENSE

Letoderea
=========

一个高性能，结构简洁，依赖于 Python内置库\ ``asyncio`` 的事件系统,
设计灵感来自\ ```Graia BroadcastControl`` <https://github.com/GraiaProject/BroadcastControl>`__\ 。

项目仍处于开发阶段，部分内容可能会有较大改变 ## 安装 ### 从 PyPI 安装

::

    pip install arclet-letoderea

样例
----

.. code:: python

    import asyncio
    from arclet.letoderea import EventSystem
    from arclet.letoderea.entities.event import TemplateEvent

    class ExampleEvent(TemplateEvent):
    def get_params(self):
        return self.param_export(
            msg="I'm here!"
        )

    loop = asyncio.get_event_loop()
    es = EventSystem(loop=loop)
    @es.register(ExampleEvent)
    async def test(msg: str):
        print(msg)

    async def main():
        es.event_publish(ExampleEvent())
        await asyncio.sleep(0.1)
    loop.run_until_complete(main())

开源协议
--------

本实现以 MIT 为开源协议。


