Skip to content

Releases: syngenta/acai-python

2.2.1 (2024-05-30)

31 May 00:27
f470fe5
Compare
Choose a tag to compare

Just a small change to the request body parser to be more accurate.

Full Changelog: 2.2.0...2.2.1

2.2.0 (2024-05-22)

22 May 19:11
06b25fe
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.1.0...2.2.0

2.1.0 (2024-05-01)

02 May 01:05
c287965
Compare
Choose a tag to compare

What's Changed

PYDANTIC SUPPORT

You can now use pydantic models as request_body validations. See example below:

from typing import List

from acai_aws.apigateway.requirements import requirements
from pydantic import BaseModel, PositiveInt


class UserRequest(BaseModel):
    id: PositiveInt 
    email: str
    active: bool 
    favorites: List[str]
    notification_config: dict[str, bool]

@requirements(required_body=UserRequest)
def post(_, response):
    response.body = {'pydantic_pass': True}
    return response

Other Changes

Full Changelog: 2.0.1...2.1.0

2.0.1 (2023-10-25)

26 Oct 03:41
4bf009e
Compare
Choose a tag to compare

What's Changed

  • changed open_cors to just cors (open_cors is still available for use a property and falls under the same underlying property as cors)

Full Changelog: 2.0.0...2.0.1

2.0.0 (2023-10-24)

24 Oct 23:28
ccb82a2
Compare
Choose a tag to compare

2.0 RELEASE IS READY!!!

Its been a long time coming but out 2.0 release is now ready! There is a lot of changes in this release so if you want all the fully details please review our new documentation website here: https://syngenta.github.io/acai-python-docs/

Notable Features

  • Apigateway
    • New routing options for APIGateway
    • Use openapi schema as baseline validation logic (without needing @requirements decorator)
    • Ability to validate responses as defined by openapi schema
    • Apply Verbose logging
    • Able to establish timeout outside of lambda configurations
    • Control of whether to output detail internal server error as API response
    • Cache routing options for faster routing (configurable)
    • Able to run custom functions before every request
    • Able to run custom functions after every request
    • Able to define in place, authentication logic and then able to programmatically determine which endpoints require it
    • Able to run custom functions after internal server error
    • Able to run custom functions after timeout error
  • DocumentDB event supported
  • Firehouse event supported
  • Kinesis event supported
  • MQ event supported
  • MSK event supported
  • S3
    • Able to run custom function before handler
    • Able to run custom function after handler
    • Able to pull S3 object down before handler runs
    • Able to serialize S3 object to JSON or CSV dict/list
    • Able to validate S3 object against openapi
  • SNS event supported
    • Able to run custom function before handler
    • Able to run custom function after handler
    • Able to validate event object against openapi
  • SQS event supported
    • Able to run custom function before handler
    • Able to run custom function after handler
    • Able to validate event object against openapi
  • Logger
    • Better error trace in logs
    • Able to control log with min log settings
    • Able to switch between json logs and inline logs for different environments

Full Changelog: https://github.com/syngenta/acai-python/commits/2.0.0

1.0 (rerelease of legacy functionality)

24 Oct 22:59
f803b57
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/syngenta/acai-python/commits/1.0.0