Skip to content

Support running Mesop based apps with WSGI servers#283

Merged
davorrunje merged 7 commits into
mainfrom
fix-mesop-deployment
Sep 27, 2024
Merged

Support running Mesop based apps with WSGI servers#283
davorrunje merged 7 commits into
mainfrom
fix-mesop-deployment

Conversation

@davorrunje

Copy link
Copy Markdown
Contributor

Description

Adds two protocol definitions for starting an application with WSGI server and implements WSGI support for MesopUI-based applications

Fixes #281

Type of change

  • Documentation (typos, code examples, or any documentation updates)
  • Bug fix (a non-breaking change that resolves an issue)
  • New feature (a non-breaking change that adds functionality)

Checklist

  • I have conducted a self-review of my own code
  • I have made the necessary changes to the documentation
  • My changes do not generate any new warnings
  • I have added tests to validate the effectiveness of my fix or the functionality of my new feature
  • I have included code examples to illustrate the modifications

environ: dict[str, Any],
start_response: Callable[..., Any],
) -> list[bytes]:
logger.info(f"Starting MesonUI using WSGI interface with app: {app}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@davorrunje davorrunje added this pull request to the merge queue Sep 27, 2024
@codecov

codecov Bot commented Sep 27, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 38.09524% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
fastagency/app.py 14.28% 12 Missing ⚠️
fastagency/ui/mesop/main.py 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
docs/docs_src/getting_started/main_console.py 100.00% <ø> (ø)
fastagency/base.py 92.79% <100.00%> (+0.26%) ⬆️
fastagency/exceptions.py 100.00% <100.00%> (ø)
fastagency/ui/mesop/base.py 56.81% <ø> (ø)
fastagency/ui/mesop/main.py 0.00% <0.00%> (ø)
fastagency/app.py 61.29% <14.28%> (-38.71%) ⬇️

Merged via the queue into main with commit af4e914 Sep 27, 2024
@davorrunje davorrunje deleted the fix-mesop-deployment branch September 27, 2024 13:50
@davorrunje davorrunje changed the title Support runnning Mesop based apps with WSGI servers Support running Mesop based apps with WSGI servers Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support binding mesop UI to host and port

2 participants