MIT License

项目介绍

pallets-eco/blinker 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 2.1k 个 Star、194 次 Fork。

仓库全名
pallets-eco/blinker
开源许可证
MIT License
Star 数
2.1k
Fork 数
194

README 摘要

Blinker Blinker provides a fast dispatching system that allows any number of interested parties to subscribe to events, or "signals". Pallets Community Ecosystem [!IMPORTANT]\ This project is part of the Pallets Community Ecosystem. Pallets is the open source organization that maintains Flask; Pallets-Eco enables community maintenance of related projects. If you are interested in helping maintain this project,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

blinker 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 2.1k 个 Star。

blinker 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 blinker 的源码?

可以直接克隆仓库:git clone https://github.com/pallets-eco/blinker.git,默认分支为 main;安装与运行步骤见仓库 README。

blinker 最近还在维护吗?

仓库最近一次更新为 2025年11月19日,当前没有未关闭的 Issue;Star 数为 2.1k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A fast Python in-process signal/event dispatching system.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
2537
价值分
1328
活跃状态
活跃

语言占比

Python

Release

README

Blinker

Blinker provides a fast dispatching system that allows any number of interested parties to subscribe to events, or “signals”.

Pallets Community Ecosystem

[!IMPORTANT]
This project is part of the Pallets Community Ecosystem. Pallets is the open source organization that maintains Flask; Pallets-Eco enables community maintenance of related projects. If you are interested in helping maintain this project, please reach out on the Pallets Discord server.

Example

Signal receivers can subscribe to specific senders or receive signals sent by any sender.

>>> from blinker import signal
>>> started = signal('round-started')
>>> def each(round):
...     print(f"Round {round}")
...
>>> started.connect(each)

>>> def round_two(round):
...     print("This is round two.")
...
>>> started.connect(round_two, sender=2)

>>> for round in range(1, 4):
...     started.send(round)
...
Round 1!
Round 2!
This is round two.
Round 3!

评论

暂无评论