Skip to content

chore: ease maintenance of upcoming parser #118 #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8539002
fix: comment out validators #118
heitorlessa Oct 4, 2020
df854d3
improv: rename advanced_parser to parser
heitorlessa Oct 4, 2020
1e4a49c
chore: remove test for commented code
heitorlessa Oct 4, 2020
991bec7
improv: envelope structure & import
heitorlessa Oct 4, 2020
c7f242a
fix: snake_case
heitorlessa Oct 4, 2020
64f3261
improv: raise own exception; remove duplicates
heitorlessa Oct 5, 2020
ad00cb0
fix: unnecessary return; better error handling
heitorlessa Oct 9, 2020
292c045
improv: test parser
heitorlessa Oct 9, 2020
f0ff926
improv: simplify base envelope; increase test cov
heitorlessa Oct 10, 2020
b868e1f
fix: code inspect issues
heitorlessa Oct 10, 2020
7840d6b
chore: kwarg over arg to ease refactoring
heitorlessa Oct 10, 2020
89929b3
feat: add standalone parse function
heitorlessa Oct 10, 2020
002cc54
chore: lint
heitorlessa Oct 10, 2020
89122ac
improv: propagate exception to parser
heitorlessa Oct 11, 2020
f21b3ca
improv: add docstrings; event internal param renamed
heitorlessa Oct 11, 2020
974a98c
improv: adjust high level imports
heitorlessa Oct 12, 2020
b1a4821
improv: expose all pydantic imports
heitorlessa Oct 12, 2020
0189db0
chore: explicit DynamoDB Stream schema naming
heitorlessa Oct 12, 2020
22a9a84
chore: remove flake8 polyfill as explicit dep
heitorlessa Oct 12, 2020
bcb763b
Update aws_lambda_powertools/utilities/parser/pydantic.py
heitorlessa Oct 13, 2020
404530f
improv: rename to event_parser as per Tom's review
heitorlessa Oct 14, 2020
7480985
improv: rename schema to model as per Tom's review
heitorlessa Oct 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions aws_lambda_powertools/utilities/advanced_parser/__init__.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

68 changes: 0 additions & 68 deletions aws_lambda_powertools/utilities/advanced_parser/parser.py

This file was deleted.

This file was deleted.

This file was deleted.

65 changes: 0 additions & 65 deletions aws_lambda_powertools/utilities/advanced_parser/schemas/sqs.py

This file was deleted.

17 changes: 17 additions & 0 deletions aws_lambda_powertools/utilities/parser/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Advanced event_parser utility
"""
from . import envelopes
from .envelopes import BaseEnvelope
from .exceptions import ModelValidationError
from .parser import event_parser
from .pydantic import BaseModel, root_validator, validator

__all__ = [
"event_parser",
"envelopes",
"BaseEnvelope",
"BaseModel",
"validator",
"root_validator",
"ModelValidationError",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .base import BaseEnvelope
from .dynamodb import DynamoDBEnvelope
from .event_bridge import EventBridgeEnvelope
from .sqs import SqsEnvelope

__all__ = ["DynamoDBEnvelope", "EventBridgeEnvelope", "SqsEnvelope", "BaseEnvelope"]
Loading