
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
##Provides helpful tools for parsing database responses and handling routes inside of Lambda for AWS Appsync.
Aurora results are returned as a list of dictionaries with the column names being the key. Nulls (returned by Aurora as isNull) are returned as None types. Any value that can be parsed as json is cast from a string to a list/dictionary. Responses are returned formated as:
[
{"columnOneName": "value", "columnTwoName": "value"},
{"columnOneName": "value", "columnTwoName": "value"}
]
Where each item in the top level array is a separate row.
Dynamodb results are returned as either a dictionary (for get_item operations) or a list of dictionaries (query).
pretty_parse_aurora(records, type_attribute=None) -> list
Arguments:
Keyword Args:
from appsync_tools import pretty_parse_aurora
response = client.execute_statement(
secretArn=environ["PG_SECRET"],
database=environ["DB_NAME"],
parameters=parameters,
resourceArn=environ["DB_ARN"],
includeResultMetadata=True,
sql=sql
)
print(pretty_parse_aurora(response))
pretty_parse_dynamo(records, type_attribute=None) -> list | dict
Arguments:
Keyword Args:
from appsync_tools import pretty_parse_dynamo
response = client.get_item(
Key={"pk": "foo", "sk": "bar"}
)
print(response.get("Item"))
typify(records, type_attribute="type") -> list | dict Arguments:
Keyword Args:
from appsync_tools import typify
response = client.get_item(
Key={"pk": "foo", "sk": "BarType"}
)
print(typify(response.get("Item"), type_attribute="sk"))
FAQs
Tools for handling appsync responses and routes.
We found that appsync-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.