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

Porting the extension module to other languages? #24

Open
dpritchett opened this issue Feb 25, 2021 · 3 comments
Open

Porting the extension module to other languages? #24

dpritchett opened this issue Feb 25, 2021 · 3 comments

Comments

@dpritchett
Copy link

Hi there! I have had some success following your docs to stand up a Flask app that roughly supports the restful extension API. Very cool project, thank you.

I couldn't help but be a bit jealous of the Go examples being able to just import extension and run with it.

I'd like to help make this more accessible for would-be Python, Ruby, JS, etc. bot authors. @jaimeteb have you or @ryancurrah plotted a way to give the rest server API a quicker onramp?

I've thought about maybe building a python library to abstract a few of the basic bits of the Flask use case, but maybe a swagger-oriented codegen approach could cover more ground with less work. I haven't yet tried the RPC model so I imagine it's got some implications for potential approaches to bootstrapping new REST integrations..

@ryancurrah
Copy link
Contributor

ryancurrah commented Feb 25, 2021

Yeah I would be interested in publishing a library for each popular language. There are a couple changes in the works to solidify the extension service. Once they are in place I can take a look at this.

@jaimeteb
Copy link
Owner

First of all thank you! Yes, the advantage of Go extensions is that they're "native", so in other languages you'd have to implement your own ServeREST or ServeRPC methods. It would be really helpful for extension developers to have a library that does this.
I was actually working on a FastAPI extension server, which would tackle the swagger approach you mentioned.

@ryancurrah
Copy link
Contributor

I have a wip swagger doc here: https://app.swaggerhub.com/apis/ryancurrah/chatto-extension/1.0.0

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

No branches or pull requests

3 participants