@@ -12,112 +12,117 @@ readme = "README.md"
1212
1313[tool .poetry .dependencies ]
1414python = " ^3.9"
15- fastapi = " ^0.89.1"
16- uvicorn = { version = " ^0.20.0" , extras = [" standard" ] }
17- pydantic = {version = " ^1.10.4" , extras = [" dotenv" ]}
18- yarl = " ^1.8.2"
19- ujson = " ^5.7.0"
15+ fastapi = " ^0.100.0"
16+ uvicorn = { version = " ^0.22.0" , extras = [" standard" ] }
17+ {%- if cookiecutter.pydanticv1 == "True" %}
18+ pydantic = { version = " ^1" , extras =[" dotenv" ] }
19+ {%- else %}
20+ pydantic = " ^2"
21+ pydantic-settings = " ^2"
22+ {%- endif %}
23+ yarl = " ^1.9.2"
24+ ujson = " ^5.8.0"
2025{%- if cookiecutter.orm == "piccolo" %}
2126{%- if cookiecutter.db_info.name == "postgresql" %}
22- piccolo = {version = " ^0.105 .0" , extras = [" postgres" ]}
27+ piccolo = {version = " ^0.117 .0" , extras = [" postgres" ]}
2328{%- elif cookiecutter.db_info.name == "sqlite" %}
24- piccolo = {version = " ^0.105 .0" , extras = [" sqlite" ]}
29+ piccolo = {version = " ^0.117 .0" , extras = [" sqlite" ]}
2530{%- endif %}
2631{%- endif %}
2732{%- if cookiecutter.orm == "sqlalchemy" %}
28- SQLAlchemy = {version = " ^2.0.0 " , extras = [" asyncio" ]}
33+ SQLAlchemy = {version = " ^2.0.18 " , extras = [" asyncio" ]}
2934{%- if cookiecutter.enable_migrations == "True" %}
30- alembic = " ^1.9.2 "
35+ alembic = " ^1.11.1 "
3136{%- endif %}
3237{%- if cookiecutter.db_info.name == "postgresql" %}
33- asyncpg = {version = " ^0.27 .0" , extras = [" sa" ]}
38+ asyncpg = {version = " ^0.28 .0" , extras = [" sa" ]}
3439{%- elif cookiecutter.db_info.name == "sqlite" %}
35- aiosqlite = " ^0.18 .0"
40+ aiosqlite = " ^0.19 .0"
3641{%- elif cookiecutter.db_info.name == "mysql" %}
37- aiomysql = " ^0.1.1 "
38- mysqlclient = " ^2.1.1 "
42+ aiomysql = " ^0.2.0 "
43+ mysqlclient = " ^2.2.0 "
3944{%- endif %}
4045{%- endif %}
4146{%- if cookiecutter.orm == "tortoise" %}
42- tortoise-orm = " ^0.19.2 "
47+ tortoise-orm = " ^0.19.3 "
4348{%- if cookiecutter.enable_migrations == "True" %}
4449aerich = " ^0.7.1"
4550{%- endif %}
4651{%- if cookiecutter.db_info.name == "postgresql" %}
47- asyncpg = " ^0.27 .0"
52+ asyncpg = " ^0.28 .0"
4853{%- elif cookiecutter.db_info.name == "sqlite" %}
49- aiosqlite = " <0.18 .0"
54+ aiosqlite = " <0.19 .0"
5055{%- elif cookiecutter.db_info.name == "mysql" %}
51- aiomysql = " ^0.1.1 "
52- mysqlclient = " ^2.1.1 "
53- cryptography = " ^39 .0.0 "
56+ aiomysql = " ^0.2.0 "
57+ mysqlclient = " ^2.2.0 "
58+ cryptography = " ^41 .0.1 "
5459{%- endif %}
5560{%- endif %}
5661{%- if cookiecutter.orm == "ormar" %}
57- ormar = " ^0.12.0 "
62+ ormar = " ^0.12.2 "
5863{%- if cookiecutter.enable_migrations == "True" %}
59- alembic = " ^1.9.2 "
64+ alembic = " ^1.11.1 "
6065{%- endif %}
6166{%- if cookiecutter.db_info.name == "postgresql" %}
62- asyncpg = " ^0.27 .0"
63- psycopg2-binary = " ^2.9.5 "
67+ asyncpg = " ^0.28 .0"
68+ psycopg2-binary = " ^2.9.6 "
6469{%- elif cookiecutter.db_info.name == "sqlite" %}
65- aiosqlite = " ^0.18 .0"
70+ aiosqlite = " ^0.19 .0"
6671{%- elif cookiecutter.db_info.name == "mysql" %}
67- aiomysql = " ^0.1.1 "
68- mysqlclient = " ^2.1.1 "
72+ aiomysql = " ^0.2.0 "
73+ mysqlclient = " ^2.2.0 "
6974{%- endif %}
7075{%- endif %}
7176{%- if cookiecutter.enable_redis == "True" %}
72- redis = {version = " ^4.4.2 " , extras = [" hiredis" ]}
77+ redis = {version = " ^4.6.0 " , extras = [" hiredis" ]}
7378{%- endif %}
7479{%- if cookiecutter.self_hosted_swagger == 'True' %}
75- aiofiles = " ^22 .1.0"
80+ aiofiles = " ^23 .1.0"
7681{%- endif %}
7782{%- if cookiecutter.orm == "psycopg" %}
78- psycopg = { version = " ^3.1.8 " , extras = [" binary" , " pool" ] }
83+ psycopg = { version = " ^3.1.9 " , extras = [" binary" , " pool" ] }
7984{%- endif %}
80- httptools = " ^0.5 .0"
85+ httptools = " ^0.6 .0"
8186{%- if cookiecutter.api_type == "graphql" %}
82- strawberry-graphql = { version = " ^0.155.2 " , extras = [" fastapi" ] }
87+ strawberry-graphql = { version = " ^0.194.4 " , extras = [" fastapi" ] }
8388{%- endif %}
8489{%- if cookiecutter.enable_rmq == "True" %}
85- aio-pika = " ^8.3.0 "
90+ aio-pika = " ^9.1.4 "
8691{%- endif %}
8792{%- if cookiecutter.prometheus_enabled == "True" %}
88- prometheus-client = " ^0.16 .0"
89- prometheus-fastapi-instrumentator = " 5.9.1 "
93+ prometheus-client = " ^0.17 .0"
94+ prometheus-fastapi-instrumentator = " 6.0.0 "
9095{%- endif %}
9196{%- if cookiecutter.sentry_enabled == "True" %}
92- sentry-sdk = " ^1.14.0 "
97+ sentry-sdk = " ^1.27.1 "
9398{%- endif %}
9499{%- if cookiecutter.otlp_enabled == "True" %}
95- opentelemetry-api = " ^1.15 .0"
96- opentelemetry-sdk = " ^1.15 .0"
97- opentelemetry-exporter-otlp = " ^1.15 .0"
98- opentelemetry-instrumentation = " ^0.36b0 "
99- opentelemetry-instrumentation-fastapi = " ^0.36b0 "
100+ opentelemetry-api = " ^1.18 .0"
101+ opentelemetry-sdk = " ^1.18 .0"
102+ opentelemetry-exporter-otlp = " ^1.18 .0"
103+ opentelemetry-instrumentation = " ^0.39b0 "
104+ opentelemetry-instrumentation-fastapi = " ^0.39b0 "
100105{%- if cookiecutter.enable_loguru != "True" %}
101- opentelemetry-instrumentation-logging = " ^0.36b0 "
106+ opentelemetry-instrumentation-logging = " ^0.39b0 "
102107{%- endif %}
103108{%- if cookiecutter.enable_redis == "True" %}
104- opentelemetry-instrumentation-redis = " ^0.36b0 "
109+ opentelemetry-instrumentation-redis = " ^0.39b0 "
105110{%- endif %}
106111{%- if cookiecutter.db_info.name == "postgresql" and cookiecutter.orm in ["ormar", "tortoise"] %}
107- opentelemetry-instrumentation-asyncpg = " ^0.36b0 "
112+ opentelemetry-instrumentation-asyncpg = " ^0.39b0 "
108113{%- endif %}
109114{%- if cookiecutter.orm == "sqlalchemy" %}
110- opentelemetry-instrumentation-sqlalchemy = " ^0.36b0 "
115+ opentelemetry-instrumentation-sqlalchemy = " ^0.39b0 "
111116{%- endif %}
112117{%- if cookiecutter.enable_rmq == "True" %}
113- opentelemetry-instrumentation-aio-pika = " ^0.36b0 "
118+ opentelemetry-instrumentation-aio-pika = " ^0.39b0 "
114119{%- endif %}
115120{%- endif %}
116121{%- if cookiecutter.enable_loguru == "True" %}
117- loguru = " ^0.6 .0"
122+ loguru = " ^0.7 .0"
118123{%- endif %}
119124{%- if cookiecutter.enable_kafka == "True" %}
120- aiokafka = " ^0.8.0 "
125+ aiokafka = " ^0.8.1 "
121126{%- endif %}
122127{%- if cookiecutter.enable_taskiq == "True" %}
123128taskiq = " ^0"
@@ -132,7 +137,7 @@ taskiq-aio-pika = "^0"
132137 {%- endif %}
133138
134139 {%- if (cookiecutter.enable_rmq or cookiecutter.enable_rmq) != "True" %}
135- pyzmq = " ^25.0.2 "
140+ pyzmq = " ^25"
136141 {%- endif %}
137142
138143{%- endif %}
@@ -179,6 +184,9 @@ allow_untyped_decorators = true
179184warn_unused_ignores = false
180185warn_return_any = false
181186namespace_packages = true
187+ {%- if cookiecutter.api_type == "graphql" %}
188+ plugins = [" strawberry.ext.mypy_plugin" ]
189+ {%- endif %}
182190
183191{%- if cookiecutter.enable_redis == "True" %}
184192
0 commit comments