
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
A small library that includes details mocks of AWS Lambda event sources, Python implementation.
Python implementation of serverless / event-mocks
A small library that includes details mocks of AWS Lambda event sources, same with original event-mocks. Useful for use when unit testing your Lambda functions. Supported Event Sources are:
The library simply uses default event source mock templates and merge it with any overwrite you provide. Check out the JSON template files to learn more about the data structure of each event source.
pip install py-event-mocks
from py_event_mocks import create_event
event = create_event("aws:s3")
# event would be
# {
# "Records": [
# {
# "eventVersion": "2.0",
# "eventSource": "aws:s3",
# "awsRegion": "us-east-1",
# ...
# }
Allowed event_type (first parameter) is as follows:
You can overwrite default template with "body" parameter.
event = create_event(
event_type="aws:s3",
body={
"Records": [{
"eventName": "ObjectCreated:Put",
"s3": {
"bucket": {
"name": "my-bucket-name"
},
"object": {
"key": "object-key"
}
}
}]
}
)
FAQs
A small library that includes details mocks of AWS Lambda event sources, Python implementation.
We found that py-event-mocks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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 pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.