-
Notifications
You must be signed in to change notification settings - Fork 803
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements Python support in miniflare. (#4873)
- Loading branch information
Showing
8 changed files
with
2,118 additions
and
3,456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
"miniflare": minor | ||
--- | ||
|
||
feature: implemented basic Python support | ||
|
||
Here is an example showing how to construct a MiniFlare instance with a Python module: | ||
|
||
```js | ||
const mf = new Miniflare({ | ||
modules: [ | ||
{ | ||
type: "PythonModule", | ||
path: "index", | ||
contents: | ||
"from js import Response;\ndef fetch(request):\n return Response.new('hello')", | ||
}, | ||
], | ||
compatibilityFlags: ["experimental"], | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.