Skip to content

Commit 109d8f1

Browse files
committed
updated config files added async fn example
1 parent 713f63b commit 109d8f1

File tree

3 files changed

+249
-0
lines changed

3 files changed

+249
-0
lines changed

intro/example_magic.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import asyncio
2+
3+
from util import delay
4+
5+
6+
async def main()-> None:
7+
print('1')
8+
result = asyncio.create_task(delay(2))
9+
await delay(3)
10+
print('2')
11+
12+
asyncio.run(main())

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ readme = "README.md"
66
requires-python = ">=3.13"
77
dependencies = [
88
"aiohttp>=3.11.12",
9+
"asyncpg>=0.30.0",
10+
"flask>=3.1.0",
11+
"gunicorn>=23.0.0",
12+
"psycopg2-binary>=2.9.10",
913
"requests>=2.32.3",
14+
"starlette>=0.46.0",
15+
"uvicorn>=0.34.0",
1016
]
1117

1218
[dependency-groups]

0 commit comments

Comments
 (0)