Skip to content
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

Merged
merged 6 commits into from
Jul 15, 2024
Merged

Docs and examples update for new API #2659

merged 6 commits into from
Jul 15, 2024

Conversation

texodus
Copy link
Member

@texodus texodus commented Jul 4, 2024

  • Updates the docs project to build against the new API
  • Updates the examples projects as well, removing deprecated examples.
  • Updates the perspective-python API for feedback from @timkpaine
  • Adds Windows and OSX build support to CI

@texodus texodus force-pushed the psp3-docs-and-examples branch 7 times, most recently from 57c0901 to ad56647 Compare July 9, 2024 04:12
texodus and others added 4 commits July 9, 2024 00:18
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>
@texodus texodus force-pushed the psp3-docs-and-examples branch 9 times, most recently from 36af4df to bf7aa8e Compare July 9, 2024 05:18
... 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)
Copy link
Member

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)
Copy link
Member

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),
Copy link
Member

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

@texodus texodus force-pushed the psp3-docs-and-examples branch from bf7aa8e to 5a0ea2e Compare July 9, 2024 16:03
@texodus texodus force-pushed the psp3-docs-and-examples branch 19 times, most recently from c2246b4 to 33eb193 Compare July 15, 2024 00:34
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus force-pushed the psp3-docs-and-examples branch from 33eb193 to 4251f91 Compare July 15, 2024 02:11
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus added the internal Internal refactoring and code quality improvement label Jul 15, 2024
@texodus texodus marked this pull request as ready for review July 15, 2024 04:06
@texodus texodus added this to the 3.0 milestone Jul 15, 2024
@texodus texodus merged commit fae9092 into master Jul 15, 2024
11 checks passed
@texodus texodus deleted the psp3-docs-and-examples branch July 15, 2024 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal refactoring and code quality improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants