Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.