Skip to content

Commit 1e31b17

Browse files
Suman DasSuman Das
Suman Das
authored and
Suman Das
committed
added example for aync IO
1 parent fe09b19 commit 1e31b17

File tree

3 files changed

+52
-37
lines changed

3 files changed

+52
-37
lines changed

Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "pypi"
77
fastapi = "==0.68.1"
88
uvicorn = "==0.15.0"
99
sqlalchemy = "==1.4.23"
10-
httpx = "*"
10+
httpx = "==0.21.1"
1111

1212
[dev-packages]
1313

Pipfile.lock

+46-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ It provides a full suite of well known enterprise-level persistence patterns, de
3737

3838
Data validation and settings management using python type annotations.
3939

40-
pydantic enforces type hints at runtime, and provides user friendly errors when data is invalid.
40+
pydantic enforces type hints at runtime, and provides user-friendly errors when data is invalid.
4141

4242
## Setting up the VirtualEnv and install dependencies
4343

@@ -49,7 +49,7 @@ pipenv install
4949
5050
```
5151

52-
Dependencies will be installed from the Pipfile. Python version 3.8.7 is used for this project.
52+
Dependencies will be installed from the Pipfile. Python version 3.9.2 is used for this project.
5353

5454
## Run the Application
5555

@@ -62,10 +62,12 @@ This will start the application on port 9000
6262

6363
## Test the application
6464

65-
FastAPI also automatically generated fully interactive API documentation that we can use to interact with our API. We can visit http://127.0.0.1:9000/docs in our browser to see the interactive API documentation provided by [Swagger UI](https://github.com/swagger-api/swagger-ui):
65+
FastAPI also automatically generated fully interactive API documentation that we can use to interact with our API.
66+
We can visit http://127.0.0.1:9000/docs in our browser to see the interactive API documentation provided by [Swagger UI](https://github.com/swagger-api/swagger-ui):
6667

6768
![alt text](sample-FastAPI.png)
6869

6970
The server will start at <http://localhost:9000/docs>.
7071

72+
7173
Please check my write-up for further details <https://dassum.medium.com/building-rest-apis-using-fastapi-sqlalchemy-uvicorn-8a163ccf3aa1>

0 commit comments

Comments
 (0)