Skip to content

Commit 45bb95d

Browse files
committed
Merge dev into main
2 parents f85b81b + 9c36ac7 commit 45bb95d

File tree

10 files changed

+175
-252
lines changed

10 files changed

+175
-252
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "modules/OSBot-Fast-API"]
22
path = modules/OSBot-Fast-API
33
url = [email protected]:owasp-sbot/OSBot-Fast-API.git
4+
[submodule "modules/OSBot-Utils"]
5+
path = modules/OSBot-Utils
6+
url = [email protected]:owasp-sbot/OSBot-Utils.git

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# OSBot-Fast-API-Serverless
22
Repo for OSBot-Fast-API-Serverless
33

4-
![Current Release](https://img.shields.io/badge/release-v1.22.0-blue)
4+
![Current Release](https://img.shields.io/badge/release-v1.22.1-blue)

modules/OSBot-Fast-API

Submodule OSBot-Fast-API updated 190 files

modules/OSBot-Utils

Submodule OSBot-Utils added at f425a9a

osbot_fast_api_serverless/fast_api/Serverless__Fast_API.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
from osbot_fast_api.api.Fast_API import Fast_API
2-
from mangum import Mangum
3-
from osbot_utils.utils.Env import load_dotenv
4-
from osbot_fast_api_serverless.fast_api.routes.Routes__Info import Routes__Info
1+
from osbot_fast_api.api.Fast_API import Fast_API
2+
from mangum import Mangum
3+
from osbot_utils.utils.Env import load_dotenv
4+
from osbot_fast_api_serverless.fast_api.routes.Routes__Info import Routes__Info
5+
from osbot_fast_api_serverless.fast_api.Serverless__Fast_API__Config import Serverless__Fast_API__Config
56

67

78
class Serverless__Fast_API(Fast_API):
8-
enable_cors : bool = True
9-
enable_api_key : bool = True
10-
default_routes : bool = False
9+
config: Serverless__Fast_API__Config
1110

1211
def setup(self):
1312
load_dotenv() # needed for api key support # todo: add this to Fast_API class (maybe as an top level option)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from osbot_fast_api.api.schemas.Schema__Fast_API__Config import Schema__Fast_API__Config
2+
3+
4+
class Serverless__Fast_API__Config(Schema__Fast_API__Config):
5+
enable_cors : bool = True
6+
enable_api_key : bool = True
7+
default_routes : bool = False

osbot_fast_api_serverless/fast_api/lambda_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from osbot_aws.aws.lambda_.boto3__lambda import load_dependencies # using the lightweight file (which only has the boto3 calls required to load_dependencies)
22

3-
LAMBDA_DEPENDENCIES = ['osbot-fast-api==v0.25.0', 'mangum']
3+
LAMBDA_DEPENDENCIES = ['osbot-fast-api==v0.28.0', 'mangum']
44

55
load_dependencies(LAMBDA_DEPENDENCIES)
66

osbot_fast_api_serverless/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.22.0
1+
v1.22.1

poetry.lock

Lines changed: 153 additions & 240 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "osbot_fast_api_serverless"
3-
version = "v1.22.0"
3+
version = "v1.22.1"
44
description = "OSBot-Fast-API-Serverless"
55
authors = ["Dinis Cruz <[email protected]>"]
66
license = "Apache 2.0"

0 commit comments

Comments
 (0)