fastapi-sqla 3.3.0__py3-none-any.whl → 3.3.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.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastapi-sqla
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: SQLAlchemy extension for FastAPI with support for pagination, asyncio, SQLModel, and pytest, ready for production.
5
5
  Home-page: https://github.com/dialoguemd/fastapi-sqla
6
6
  License: MIT
7
7
  Keywords: FastAPI,SQLAlchemy,asyncio,pytest,alembic
8
8
  Author: Hadrien David
9
9
  Author-email: hadrien.david@dialogue.co
10
- Requires-Python: >=3.9,<4.0
10
+ Requires-Python: >=3.9,<3.13
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Environment :: Web Environment
13
13
  Classifier: Framework :: AsyncIO
@@ -35,29 +35,19 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
35
35
  Classifier: Typing :: Typed
36
36
  Provides-Extra: asyncpg
37
37
  Provides-Extra: aws-rds-iam
38
+ Provides-Extra: psycopg2
39
+ Provides-Extra: pytest-plugin
38
40
  Provides-Extra: sqlmodel
39
- Provides-Extra: tests
40
- Requires-Dist: Faker (>=14.2.0,<15.0.0) ; extra == "tests"
41
- Requires-Dist: alembic (>=1.4.3,<2.0.0) ; extra == "tests"
42
- Requires-Dist: asgi_lifespan (>=1.0.1,<2.0.0) ; extra == "tests"
41
+ Requires-Dist: alembic (>=1.4.3,<2.0.0) ; extra == "pytest-plugin"
43
42
  Requires-Dist: asyncpg (>=0.28.0,<0.29.0) ; extra == "asyncpg"
44
43
  Requires-Dist: boto3 (>=1.24.74,<2.0.0) ; extra == "aws-rds-iam"
45
- Requires-Dist: deprecated (>=1.2)
46
- Requires-Dist: fastapi (>=0.95.1)
47
- Requires-Dist: greenlet (>=3.0.3,<4.0.0) ; extra == "tests"
48
- Requires-Dist: httpx (>=0.23.0,<0.24.0) ; extra == "tests"
49
- Requires-Dist: mypy[tests] (>=1.0.0,<2.0.0) ; extra == "tests"
50
- Requires-Dist: pdbpp (>=0.10.2,<0.11.0) ; extra == "tests"
51
- Requires-Dist: psycopg2 (>=2.8.6,<3.0.0) ; extra == "tests"
52
- Requires-Dist: pydantic (>=1)
53
- Requires-Dist: pytest (>=7.2.1,<8.0.0) ; extra == "tests"
54
- Requires-Dist: pytest-asyncio (>=0.19.0,<0.20.0) ; extra == "tests"
55
- Requires-Dist: pytest-cov (>=2.10.1,<3.0.0) ; extra == "tests"
56
- Requires-Dist: ruff (>=0.4.5,<0.5.0) ; extra == "tests"
57
- Requires-Dist: sqlalchemy (>=1.3)
44
+ Requires-Dist: deprecated (>=1.2,<2.0)
45
+ Requires-Dist: fastapi (>=0.95.1,<0.112)
46
+ Requires-Dist: psycopg2 (>=2.8.6,<3.0.0) ; extra == "psycopg2"
47
+ Requires-Dist: pydantic (>=1,<3)
48
+ Requires-Dist: sqlalchemy (>=1.3,<3)
58
49
  Requires-Dist: sqlmodel (>=0.0.14,<0.0.15) ; extra == "sqlmodel"
59
- Requires-Dist: structlog (>=20)
60
- Requires-Dist: tox (>=3.26.0,<4.0.0) ; extra == "tests"
50
+ Requires-Dist: structlog (>=20,<25)
61
51
  Project-URL: Repository, https://github.com/dialoguemd/fastapi-sqla
62
52
  Description-Content-Type: text/markdown
63
53
 
@@ -83,6 +73,8 @@ Using [pip](https://pip.pypa.io/):
83
73
  pip install fastapi-sqla
84
74
  ```
85
75
 
76
+ Note that you need a [SQLAlchemy compatible engine](https://docs.sqlalchemy.org/en/20/core/engines.html) adapter. We test with `psycopg2` which you can install using the `psycopg2` extra.
77
+
86
78
  # Quick Example
87
79
 
88
80
  Assuming it runs against a DB with a table `user` with 3 columns, `id`, `name` and
@@ -663,7 +655,7 @@ If your project uses [SQLModel], then `Session` dependency is an SQLModel sessio
663
655
  # Pytest fixtures
664
656
 
665
657
  This library provides a set of utility fixtures, through its PyTest plugin, which is
666
- automatically installed with the library.
658
+ automatically installed with the library. Using the plugin requires the `pytest_plugin` extra.
667
659
 
668
660
  By default, no records are actually written to the database when running tests.
669
661
  There currently is no way to change this behaviour.
@@ -807,7 +799,7 @@ It returns the path of `alembic.ini` configuration file. By default, it returns
807
799
  ## Setup
808
800
 
809
801
  ```bash
810
- $ poetry install --extras tests --extras asyncpg --extras aws_rds_iam
802
+ $ poetry install --all-extras
811
803
  ```
812
804
 
813
805
  ## Running tests
@@ -9,8 +9,8 @@ fastapi_sqla/models.py,sha256=-B1xwINpTc9rEQd3KYHEC1s5s7jdVQkJ6Gy6xpmT13c,1108
9
9
  fastapi_sqla/pagination.py,sha256=1gfIGcmt1OFspbRgtJ8AZOZdFd14DGRc4FkDgyh5bJ8,4517
10
10
  fastapi_sqla/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  fastapi_sqla/sqla.py,sha256=irHuZaun027o9WJrdcZPavCN2vXNHupCWYhU5Dx-AqE,6348
12
- fastapi_sqla-3.3.0.dist-info/LICENSE,sha256=8G0-nWLqi3xRYRrtRlTE8n1mkYJcnCRoZGUhv6ZE29c,1064
13
- fastapi_sqla-3.3.0.dist-info/METADATA,sha256=sNlfIYlzk2w8fmVxJh8jsOinZLJHrmOgWMLCZi4DV4o,21391
14
- fastapi_sqla-3.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
15
- fastapi_sqla-3.3.0.dist-info/entry_points.txt,sha256=haa0EueKcRo8-AlJTpHBMn08wMBiULNGA53nkvaDWj0,53
16
- fastapi_sqla-3.3.0.dist-info/RECORD,,
12
+ fastapi_sqla-3.3.1.dist-info/LICENSE,sha256=8G0-nWLqi3xRYRrtRlTE8n1mkYJcnCRoZGUhv6ZE29c,1064
13
+ fastapi_sqla-3.3.1.dist-info/METADATA,sha256=fBq_qZ1JGhyzpjZGr30nYp4tgFNI4QvPIY26WvPdRi8,20994
14
+ fastapi_sqla-3.3.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
15
+ fastapi_sqla-3.3.1.dist-info/entry_points.txt,sha256=haa0EueKcRo8-AlJTpHBMn08wMBiULNGA53nkvaDWj0,53
16
+ fastapi_sqla-3.3.1.dist-info/RECORD,,