-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs and examples update for new API #2659
Conversation
57c0901
to
ad56647
Compare
Signed-off-by: Andrew Stein <steinlink@gmail.com>
Signed-off-by: Andrew Stein <steinlink@gmail.com> # Conflicts: # examples/python-tornado/server.py # rust/perspective-python/Cargo.toml # rust/perspective-python/perspective/__init__.py
Signed-off-by: Andrew Stein <steinlink@gmail.com>
Signed-off-by: Andrew Stein <steinlink@gmail.com>
36af4df
to
bf7aa8e
Compare
... await handler.run() | ||
... app.add_api_websocket_route('/websocket', endpoint) | ||
""" | ||
|
||
def __init__(self, **kwargs): | ||
self._server = kwargs.pop("perspective_server") | ||
self._websocket = kwargs.pop("websocket") | ||
super().__init__(**kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed, also don't need to use kwargs (no inheritance anymore)
... await handler.run() | ||
|
||
>>> app = web.Application() | ||
>>> app.router.add_get("/websocket", websocket_handler) | ||
""" | ||
|
||
def __init__(self, **kwargs): | ||
self.server = kwargs.pop("perspective_server") | ||
self._request = kwargs.pop("request") | ||
super().__init__(**kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed, also don't need to use kwargs (no inheritance anymore)
server = Server() | ||
client = Client.from_server( | ||
server, | ||
loop_callback=lambda fn, *args: TestAsync.loop.add_callback(fn, *args), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all these blocks don't need lambdas anymore
bf7aa8e
to
5a0ea2e
Compare
c2246b4
to
33eb193
Compare
Signed-off-by: Andrew Stein <steinlink@gmail.com>
33eb193
to
4251f91
Compare
Signed-off-by: Andrew Stein <steinlink@gmail.com>
docs
project to build against the new APIexamples
projects as well, removing deprecated examples.perspective-python
API for feedback from @timkpaine