wing icon indicating copy to clipboard operation
wing copied to clipboard

Allow consuming Winglibs from JSII-supported languages

Open eladb opened this issue 1 year ago • 4 comments

Use Case

I'd like to consume Winglibs from Python, Java, Golang and .NET.

The top priority is to support preflight APIs.

Proposed Solution

Generate .jsii manifest when compiling a Winglib and then use JSII to produce language bindings.

This will only work for preflight code, but may be good enough for many use cases.

Implementation Notes

No response

Component

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
  • If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Discord.

eladb avatar Jul 15 '24 05:07 eladb

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] avatar Oct 14 '24 06:10 github-actions[bot]

Sharing my use case: I need to set up a very common type of LLM pipeline in Python. If I could call/execute Wing from in Python via any reasonable API, it would be my go-to for the project. Especially because it means I can run locally & remotely without writing extra code.

gofri avatar Nov 25 '24 21:11 gofri

@gofri would it make sense to stand up a cloud.Api wing endpoint and call it via a simple http request from your python code?

eladb avatar Nov 28 '24 08:11 eladb

@eladb Yes, I think that would be a good step forward, and I can wrap it with some RPC. I'm not sure if py-to-js interop libs would work with Wing, but that would probably save a lot of boilerplate for that kind of server.

gofri avatar Nov 28 '24 08:11 gofri