fastlifeweb 0.16.0__py3-none-any.whl → 0.16.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,7 @@ def generate_docstring(
62
62
  docstring = (ast.get_docstring(func_def, clean=True) or "").strip()
63
63
  if docstring:
64
64
  docstring = textwrap.dedent(docstring)
65
- docstring_lines = [l for l in docstring.split("\n")]
65
+ docstring_lines = [line for line in docstring.split("\n")]
66
66
  # Add a newline for separation after the function docstring
67
67
  docstring_lines.append("")
68
68
  else:
@@ -1,10 +1,9 @@
1
1
  """HTTP Request representation in a python object."""
2
2
 
3
- from typing import TYPE_CHECKING, Any
3
+ from typing import TYPE_CHECKING, Annotated, Any, Generic
4
4
 
5
5
  from fastapi import Request as FastAPIRequest
6
6
  from fastapi.params import Depends
7
- from typing_extensions import Annotated, Generic
8
7
 
9
8
  from fastlife.config.registry import DefaultRegistry, TRegistry
10
9
 
@@ -2,16 +2,14 @@
2
2
 
3
3
  import abc
4
4
  import logging
5
- from typing import Annotated, Any, Callable, Coroutine, Literal, TypeVar
5
+ from typing import Annotated, Any, Callable, Coroutine, Generic, Literal, TypeVar
6
6
  from uuid import UUID
7
7
 
8
8
  from fastapi import Depends, HTTPException
9
9
  from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN
10
- from typing_extensions import Generic
11
10
 
12
- from fastlife import get_request
11
+ from fastlife import GenericRequest, get_request
13
12
  from fastlife.config.registry import TRegistry
14
- from tests.fastlife_app.config import GenericRequest
15
13
 
16
14
  CheckPermissionHook = Callable[..., Coroutine[Any, Any, None]] | Callable[..., None]
17
15
  CheckPermission = Callable[[str], CheckPermissionHook]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastlifeweb
3
- Version: 0.16.0
3
+ Version: 0.16.1
4
4
  Summary: High-level web framework
5
5
  Home-page: https://github.com/mardiros/fastlife
6
6
  License: BSD-derived
@@ -1,7 +1,7 @@
1
1
  fastlife/__init__.py,sha256=fokakuhI0fdAjHP5w6GWi-YfCx7iTnrVzjSyZ11Cdgg,676
2
2
  fastlife/adapters/__init__.py,sha256=WYjEN8gp4r7LCHqmIO5VzzvsT8QGRE3w4G47UwYDtAo,94
3
3
  fastlife/adapters/jinjax/__init__.py,sha256=jy88zyqk7nFlaY-0lmgAoe0HyO5r_NKckQb3faQiUv4,137
4
- fastlife/adapters/jinjax/renderer.py,sha256=tKX_C0fGnooMcMXBz4_8Ym2VLCKEkRk9_AXq6HrN11I,13040
4
+ fastlife/adapters/jinjax/renderer.py,sha256=rj2KI4GB8tZstJwImdDYHuswxjdbGri2f8H6YuByaLo,13046
5
5
  fastlife/adapters/jinjax/widgets/__init__.py,sha256=HERnX9xiXUbTDz3XtlnHWABTBjhIq_kkBgWs5E6ZIMY,42
6
6
  fastlife/adapters/jinjax/widgets/base.py,sha256=JoB1bLI97ZW2ycfBcHgrPxiOszE9t_SFFK5L1bR-cSo,4015
7
7
  fastlife/adapters/jinjax/widgets/boolean.py,sha256=w4hZMo_8xDoThStlIUR4eVfLm8JwUp0-TaGCjGSyCbA,1145
@@ -1685,13 +1685,13 @@ fastlife/request/__init__.py,sha256=-wrh12uWM7ysmIUE6FszBit2H6iI5LWVEnHxQJ_23ZE,
1685
1685
  fastlife/request/form.py,sha256=Ln9TySvAccYhFY9zc49P6YGE9cQSi_o3mByxvcuCIKY,3516
1686
1686
  fastlife/request/form_data.py,sha256=DNKpXUxeDMYb43zSBnSPTBjAB8OhsYlNjERSsLgFdvI,4454
1687
1687
  fastlife/request/localizer.py,sha256=9MXAcsod-Po5qeg4lttD3dyumiI0y5vGHCwSSmt9or8,349
1688
- fastlife/request/request.py,sha256=bJydiRLkhRaA2Y5OCYN6p1rIlhSRsRicCFNVeM-RdgI,2597
1688
+ fastlife/request/request.py,sha256=h4Ji0GElWJ3W2hHgOwjSKHQcxUjjPuOk09v-oyfjEd0,2568
1689
1689
  fastlife/routing/__init__.py,sha256=8EMnQE5n8oA4J9_c3nxzwKDVt3tefZ6fGH0d2owE8mo,195
1690
1690
  fastlife/routing/route.py,sha256=O0gwPtP7ur2EHRf76kBASgoLMQciGHXcrJkW8zEPFJA,1413
1691
1691
  fastlife/routing/router.py,sha256=bLZ4k2aDs4L423znwGnw-X2LnM36O8fjhDWc8q1WewI,481
1692
1692
  fastlife/security/__init__.py,sha256=QYDcJ3oXQzqXQxoDD_6biGAtercFrtePttoifiL1j34,25
1693
1693
  fastlife/security/csrf.py,sha256=PvC9Fqdb6c0IzzsnaMx2quQdjjKrb-nOPoAHfcwoAe8,2141
1694
- fastlife/security/policy.py,sha256=BYGXmtEFlJgQSydFd88huHWJNLEScbmnjO--eVNBMok,5181
1694
+ fastlife/security/policy.py,sha256=8FWtjcOjkK5UvnjKluVkJIZdec2bfXbkKx7ouiiyjBs,5115
1695
1695
  fastlife/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1696
1696
  fastlife/services/locale_negociator.py,sha256=b1Fsx-r_zIZe0GD8WH1gmslMb0mNrvxuacxD4LNX63o,819
1697
1697
  fastlife/services/policy.py,sha256=ZK4K3fVGT1fUeBdo5sSWnEcJg49CZuaI3z2gyg3KguQ,1653
@@ -1707,7 +1707,7 @@ fastlife/testing/__init__.py,sha256=vuqwoNUd3BuIp3fm7nkvmYkIGjIimf5zUGhDkeWrg2s,
1707
1707
  fastlife/testing/testclient.py,sha256=BC7lLQ_jc59UmknAKzgRtW9a3cpX_V_QLp9Mg2ScLA8,20546
1708
1708
  fastlife/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1709
1709
  fastlife/views/pydantic_form.py,sha256=ZYOXKudmSqtRvFn5ZY75DOXZVunGXJBKpjh9FJcqu6k,1386
1710
- fastlifeweb-0.16.0.dist-info/LICENSE,sha256=F75xSseSKMwqzFj8rswYU6NWS3VoWOc_gY3fJYf9_LI,1504
1711
- fastlifeweb-0.16.0.dist-info/METADATA,sha256=Q875Q1ELgr_qbBTGf5huMPCQwpwqovev2_OU0CNX4yU,3345
1712
- fastlifeweb-0.16.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1713
- fastlifeweb-0.16.0.dist-info/RECORD,,
1710
+ fastlifeweb-0.16.1.dist-info/LICENSE,sha256=F75xSseSKMwqzFj8rswYU6NWS3VoWOc_gY3fJYf9_LI,1504
1711
+ fastlifeweb-0.16.1.dist-info/METADATA,sha256=La4IIIjXXg0eXH5pyshmlUCJdW4InYOusZ-h6oSYtiU,3345
1712
+ fastlifeweb-0.16.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1713
+ fastlifeweb-0.16.1.dist-info/RECORD,,