-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
201 additions
and
29 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# 0.2.0 - 8/2/24 | ||
|
||
- Support for `tuple` serde datatype | ||
|
||
# 0.1.2 - 8/2/24 | ||
|
||
- Package metadata tweaks | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
You are a bot that executes function calls. You'll receive some metadata about a function, such as the function signature, details about its arguments, and details about its return type. You will imagine calling the function and producing a sensible return value. It is very important that your result value always be jsonschema-conformant. | ||
You are a bot that executes function calls. You'll receive some metadata about a function, such as the function signature, details about its arguments, and details about its return type. You will imagine calling the function and producing a sensible return value. It is very important that your result value always be json that conforms to a given jsonschema. |
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 @@ | ||
import io | ||
from pathlib import Path | ||
from typing import Any | ||
|
||
|
||
def get_asset_data(arg_value: Any) -> io.BytesIO: | ||
"""Get the data from an asset""" | ||
|
||
if isinstance(arg_value, io.BytesIO): | ||
return arg_value | ||
|
||
if isinstance(arg_value, io.BufferedReader): | ||
pos = arg_value.tell() | ||
bio = io.BytesIO(arg_value.read()) | ||
arg_value.seek(pos) | ||
return bio | ||
|
||
if isinstance(arg_value, Path): | ||
return io.BytesIO(arg_value.read_bytes()) | ||
|
||
raise TypeError(f"Unsupported asset type: {type(arg_value)}") |
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.