-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
2,208 additions
and
4,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ __pycache__/ | |
*.so | ||
|
||
# Distribution / packaging | ||
.idea | ||
.Python | ||
env/ | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
========== | ||
AUTHORS | ||
========== | ||
|
||
Finchan is written and maintained by qytz and | ||
various contributors: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
History | ||
======= | ||
|
||
0.0.1 (2017-02-23) | ||
0.1.0 (2018-09-22) | ||
------------------ | ||
|
||
* First release on PyPI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
click = "*" | ||
uvloop = "*" | ||
python-dateutil = "*" | ||
"ruamel.yaml" = "*" | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.6" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
APIS | ||
====== | ||
|
||
.. toctree:: | ||
event | ||
event_source | ||
kvstore | ||
env | ||
dispatcher | ||
ext_manager | ||
timer_source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
========================= | ||
system architecture | ||
========================= | ||
Finchan is a event system framework, | ||
its main modules are `Event`, `EventSource`, `Dispatcher`, `Subscribers`, `env` and `ExtManager`. | ||
|
||
concept | ||
===================== | ||
|
||
The :class:`Event <finchan.event.Event>` is the input manner for `finchan`. | ||
|
||
The :class:`EventSource <finchan.interface.event_source.AbsEventSource>` | ||
is the original input for the system, it simulate the real world's things to `Event` as input. | ||
|
||
The :class:`Dispatcher <finchan.dispatcher.LiveDispatcher>` is the engine of the system, | ||
it manage all `EventSource`, all event `Subscriber`, | ||
and dispath the events generated by `EventSource` or `Subscriber`, call the `Subscriber`'s callback. | ||
|
||
The `Subscriber` is event subscriber, it subscriber event with a callback function, | ||
when the event occurs, the `Dispatcher` dispatch the event and call the callback function. | ||
The `Subscriber` can do anything with the callback function, include generate new events. | ||
|
||
The :class:`env <finchan.env.Env>` is global environment for the system, | ||
you can access it just by `from finchan.env import env`, | ||
you can access environment variable setted by other modules, or set your own environment variable. | ||
|
||
the :class:`ExtManager <finchan.exts.ExtManager>` manage all extensions for `finchan`. | ||
|
||
Interfaces | ||
================ | ||
|
||
kvstore | ||
---------------- | ||
:class:`kvstore <finchan.interface.kvstore.AbsKvStore>` is persistent storage for finchan, | ||
`finchan` framework just specified the interface for kvstore, | ||
the implemention is done by extensions. | ||
|
||
EventSource | ||
---------------- | ||
The :class:`EventSource <finchan.interface.event_source.AbsEventSource>` defines the interface to | ||
implent an EventSource, `finchan` system include a :any:`TimerSource <finchan.exts.timer_source>`, | ||
if you need other EventSource, you should write an extension for `finchan`, | ||
or check `finchan_exts <https://github.com/qytz/finchan_exts>`_ first. | ||
|
||
Write an extension for finchan | ||
================================== | ||
refer :doc:`extend`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../AUTHORS.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../CONTRIBUTING.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
finchan.dispatcher | ||
====================== | ||
|
||
.. automodule:: finchan.dispatcher | ||
|
||
Dispatcher | ||
-------------------- | ||
.. autoclass:: BaseDispatcher | ||
:members: | ||
|
||
BackTrackDispatcher | ||
-------------------- | ||
.. autoclass:: BackTrackDispatcher | ||
:members: | ||
|
||
LiveDispatcher | ||
-------------------- | ||
.. autoclass:: LiveDispatcher | ||
:members: |
Oops, something went wrong.