-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wren-core-py): implement ManifestExtractor (#959)
- Loading branch information
1 parent
b221920
commit a91f5c2
Showing
23 changed files
with
1,231 additions
and
148 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
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
from functools import cache | ||
|
||
import wren_core | ||
|
||
|
||
@cache | ||
def get_session_context( | ||
manifest_str: str | None, function_path: str | ||
) -> wren_core.SessionContext: | ||
return wren_core.SessionContext(manifest_str, function_path) | ||
|
||
|
||
def get_manifest_extractor(manifest_str: str) -> wren_core.ManifestExtractor: | ||
return wren_core.ManifestExtractor(manifest_str) | ||
|
||
|
||
def to_json_base64(manifest) -> str: | ||
return wren_core.to_json_base64(manifest) |
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
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.