dwhitacre / dwhitacre/ff-bot

support functions written in another language like python

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

i think the best way to do this would be to create a plugin for the build system (esbuild) that can import a python file. this imported python file would generate javascript in the bundle that is just a module that execs the python code and pipes stdout as the function response. additionally it can pass in some of the request data to stdin of the python code.

additionally this likely needs to include the python binary in the build somehow...
- could do this by just downloading and putting in dist as part of yarn build
- or could just assume the bin is in path and include it in the dockerfile

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.