Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions pccommon/pccommon/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def add_timeout(app: FastAPI, timeout_seconds: float) -> None:
depends=depends, path=route.path_format
),
)
# TODO: `get_body_field` was updated after fastapi==0.112.4
# https://github.com/fastapi/fastapi/blob/999eeb6c76ff37f94612dd140ce8091932f56c54/fastapi/dependencies/utils.py#L830-L832 # noqa: E501
route.body_field = get_body_field(
dependant=route.dependant, name=route.unique_id
)
Expand Down
4 changes: 2 additions & 2 deletions pccommon/pccommon/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def rate_limit(
"""

def _decorator(
fn: Callable[..., Coroutine[Any, Any, T]]
fn: Callable[..., Coroutine[Any, Any, T]],
) -> Callable[..., Coroutine[Any, Any, T]]:
async def _wrapper(*args: Any, **kwargs: Any) -> T:
request: Optional[Request] = kwargs.get("request")
Expand Down Expand Up @@ -320,7 +320,7 @@ def back_pressure(
"""

def _decorator(
fn: Callable[..., Coroutine[Any, Any, T]]
fn: Callable[..., Coroutine[Any, Any, T]],
) -> Callable[..., Coroutine[Any, Any, T]]:
async def _wrapper(*args: Any, **kwargs: Any) -> T:
request: Optional[Request] = kwargs.get("request")
Expand Down
2 changes: 1 addition & 1 deletion pccommon/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"azure-identity>=1.16.1",
"azure-storage-blob>=12.20.0",
"cachetools~=5.3",
"fastapi-slim>=0.111.0",
"fastapi==0.112.3",
"html-sanitizer>=2.4.4",
"idna>=3.7.0",
"lxml_html_clean>=0.1.0",
Expand Down
118 changes: 62 additions & 56 deletions pccommon/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,167 +6,173 @@
#
annotated-types==0.7.0
# via pydantic
anyio==4.4.0
anyio==4.9.0
# via starlette
async-timeout==4.0.3
async-timeout==5.0.1
# via redis
azure-core==1.30.2
azure-core==1.34.0
# via
# azure-data-tables
# azure-identity
# azure-storage-blob
# opencensus-ext-azure
azure-data-tables==12.5.0
azure-data-tables==12.7.0
# via pccommon (pccommon/pyproject.toml)
azure-identity==1.16.1
azure-identity==1.23.0
# via
# opencensus-ext-azure
# pccommon (pccommon/pyproject.toml)
azure-storage-blob==12.20.0
azure-storage-blob==12.25.1
# via pccommon (pccommon/pyproject.toml)
beautifulsoup4==4.12.3
beautifulsoup4==4.13.4
# via html-sanitizer
cachetools==5.3.3
cachetools==5.5.2
# via
# google-auth
# pccommon (pccommon/pyproject.toml)
certifi==2024.7.4
certifi==2025.6.15
# via requests
cffi==1.16.0
cffi==1.17.1
# via cryptography
charset-normalizer==3.3.2
charset-normalizer==3.4.2
# via requests
cryptography==42.0.8
cryptography==45.0.4
# via
# azure-identity
# azure-storage-blob
# msal
# pyjwt
exceptiongroup==1.2.1
exceptiongroup==1.3.0
# via anyio
fastapi-slim==0.111.0
fastapi==0.112.3
# via pccommon (pccommon/pyproject.toml)
google-api-core==2.19.0
google-api-core==2.25.1
# via opencensus
google-auth==2.30.0
google-auth==2.40.3
# via google-api-core
googleapis-common-protos==1.63.1
googleapis-common-protos==1.70.0
# via google-api-core
html-sanitizer==2.4.4
html-sanitizer==2.5.0
# via pccommon (pccommon/pyproject.toml)
idna==3.7
idna==3.10
# via
# anyio
# pccommon (pccommon/pyproject.toml)
# requests
# yarl
isodate==0.6.1
isodate==0.7.2
# via
# azure-data-tables
# azure-storage-blob
lxml==5.2.2
lxml==5.4.0
# via
# html-sanitizer
# lxml-html-clean
lxml-html-clean==0.1.0
lxml-html-clean==0.4.2
# via
# html-sanitizer
# pccommon (pccommon/pyproject.toml)
msal==1.28.1
msal==1.32.3
# via
# azure-identity
# msal-extensions
msal-extensions==1.1.0
msal-extensions==1.3.1
# via azure-identity
multidict==6.0.5
multidict==6.5.0
# via yarl
opencensus==0.11.4
# via
# opencensus-ext-azure
# opencensus-ext-logging
opencensus-context==0.1.3
# via opencensus
opencensus-ext-azure==1.1.13
opencensus-ext-azure==1.1.15
# via pccommon (pccommon/pyproject.toml)
opencensus-ext-logging==0.1.1
# via pccommon (pccommon/pyproject.toml)
orjson==3.10.5
orjson==3.10.18
# via pccommon (pccommon/pyproject.toml)
packaging==24.1
# via msal-extensions
portalocker==2.8.2
# via msal-extensions
proto-plus==1.23.0
propcache==0.3.2
# via yarl
proto-plus==1.26.1
# via google-api-core
protobuf==4.25.3
protobuf==6.31.1
# via
# google-api-core
# googleapis-common-protos
# proto-plus
psutil==5.9.8
psutil==7.0.0
# via opencensus-ext-azure
pyasn1==0.6.0
pyasn1==0.6.1
# via
# pyasn1-modules
# rsa
pyasn1-modules==0.4.0
pyasn1-modules==0.4.2
# via google-auth
pycparser==2.22
# via cffi
pydantic==2.7.4
pydantic==2.11.7
# via
# fastapi-slim
# fastapi
# pccommon (pccommon/pyproject.toml)
# pydantic-settings
pydantic-core==2.18.4
pydantic-core==2.33.2
# via pydantic
pydantic-settings==2.3.3
pydantic-settings==2.9.1
# via pccommon (pccommon/pyproject.toml)
pyhumps==3.5.3
pyhumps==3.8.0
# via pccommon (pccommon/pyproject.toml)
pyjwt[crypto]==2.8.0
pyjwt[crypto]==2.10.1
# via msal
python-dotenv==1.0.1
python-dotenv==1.1.0
# via pydantic-settings
redis==4.6.0
redis==6.2.0
# via pccommon (pccommon/pyproject.toml)
requests==2.32.3
requests==2.32.4
# via
# azure-core
# google-api-core
# msal
# opencensus-ext-azure
# pccommon (pccommon/pyproject.toml)
rsa==4.9
rsa==4.9.1
# via google-auth
six==1.16.0
six==1.17.0
# via
# azure-core
# isodate
# opencensus
sniffio==1.3.1
# via anyio
soupsieve==2.5
soupsieve==2.7
# via beautifulsoup4
starlette==0.37.2
starlette==0.38.6
# via
# fastapi-slim
# fastapi
# pccommon (pccommon/pyproject.toml)
types-cachetools==4.2.9
types-cachetools==6.0.0.20250525
# via pccommon (pccommon/pyproject.toml)
typing-extensions==4.12.2
typing-extensions==4.14.0
# via
# anyio
# azure-core
# azure-data-tables
# azure-identity
# azure-storage-blob
# fastapi-slim
# beautifulsoup4
# exceptiongroup
# fastapi
# multidict
# pydantic
# pydantic-core
# starlette
urllib3==2.2.2
# typing-inspection
typing-inspection==0.4.1
# via
# pydantic
# pydantic-settings
urllib3==2.4.0
# via
# pccommon (pccommon/pyproject.toml)
# requests
yarl==1.9.4
yarl==1.20.1
# via azure-data-tables
2 changes: 1 addition & 1 deletion pcfuncs/tests/ipban/test_ipban.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def integration_clients(

@pytest.mark.integration
def test_update_banned_ip_integration(
integration_clients: Tuple[LogsQueryClient, TableClient]
integration_clients: Tuple[LogsQueryClient, TableClient],
) -> None:
logger.info(f"Test id: {TEST_ID} - integration test is running")
logs_query_client, table_client = integration_clients
Expand Down
Loading
Loading