-
Notifications
You must be signed in to change notification settings - Fork 102
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
gj
authored and
gj
committed
Sep 8, 2018
1 parent
0033621
commit 62a3c48
Showing
17 changed files
with
207 additions
and
138 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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
Version 0.1.9 | ||
============= | ||
|
||
|
||
#. Officially rename project to Botflow. | ||
|
||
#. Enable Http Server support.Pipe can be work as Coroutine for intergate other asyncio framework. | ||
|
||
.. code-block:: python | ||
from botflow import * | ||
from aiohttp import web | ||
p = Pipe( | ||
{"msg":"hello world!"} | ||
) | ||
app = web.Application() | ||
app.add_routes([ | ||
web.get('/', p.aiohttp_json_handle) | ||
]) | ||
Bot.run_app(app) | ||
#. Add new Route "SendTo". It can be used for redirect to data flow to the Node. | ||
|
||
.. code-block:: python | ||
def filter(url): | ||
global count | ||
if 'http' not in url: | ||
url = "http://127.0.0.1:8080{}".format(url) | ||
|
||
if url in seen : #filter out processed links | ||
return None | ||
seen.add(url) | ||
return url | ||
|
||
|
||
def find_all_links(r): | ||
for a in r.soup.find_all('a', href=True): | ||
yield a.get('href') | ||
|
||
|
||
|
||
|
||
b = Return( | ||
|
||
filter, | ||
HttpLoader(), | ||
find_all_links, | ||
) | ||
|
||
Pipe( | ||
"http://127.0.0.1:8080/", | ||
b, | ||
SendTo(b), | ||
|
||
) | ||
|
||
#. Add new Node type "SpeedLimit" "Delay" .For speed control | ||
|
||
#. Add new Node type "Zip". For zip multi flow item to list. | ||
|
||
#. Rewrite whole project for code more readable. | ||
|
||
#. import flow graph performance by reduce the node . |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ Change | |
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
0.1.9 | ||
0.1.8 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.