Skip to content

Commit

Permalink
Add class-base doc
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRn76 committed Aug 4, 2023
1 parent ad77f72 commit 3a2b184
Show file tree
Hide file tree
Showing 31 changed files with 2,364 additions and 75 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.venv/
**/__pycache__/
52 changes: 50 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,61 @@




<li class="md-nav__item md-nav__item--nested">




<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >



<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="0">
First Crud
<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
First Crud
</label>
<ul class="md-nav__list" data-md-scrollfix>






<li class="md-nav__item">
<a href="/first_crud/" class="md-nav__link">
First Crud
<a href="/function_first_crud/" class="md-nav__link">
Function Base
</a>
</li>









<li class="md-nav__item">
<a href="/class_first_crud/" class="md-nav__link">
Class Base
</a>
</li>




</ul>
</nav>
</li>





Expand Down
52 changes: 50 additions & 2 deletions authentications/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,61 @@




<li class="md-nav__item md-nav__item--nested">




<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >



<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="0">
First Crud
<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
First Crud
</label>
<ul class="md-nav__list" data-md-scrollfix>






<li class="md-nav__item">
<a href="../first_crud/" class="md-nav__link">
First Crud
<a href="../function_first_crud/" class="md-nav__link">
Function Base
</a>
</li>









<li class="md-nav__item">
<a href="../class_first_crud/" class="md-nav__link">
Class Base
</a>
</li>




</ul>
</nav>
</li>





Expand Down
9 changes: 6 additions & 3 deletions benchmarks/fastapi/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from fastapi import FastAPI
from fastapi.responses import Response
from fastapi.responses import JSONResponse


app = FastAPI()


@app.get("/")
@app.get('/')
async def root():
return Response(status_code=200)
data = {'detail': 'hello world'}
return JSONResponse(content=data, status_code=200)
5 changes: 3 additions & 2 deletions benchmarks/fastapi/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
fastapi==0.93.0
uvicorn==0.20.0
fastapi==0.100.1
uvicorn==0.23.2
uvloop==0.17.0
52 changes: 50 additions & 2 deletions benchmarks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,61 @@




<li class="md-nav__item md-nav__item--nested">




<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >



<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="0">
First Crud
<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
First Crud
</label>
<ul class="md-nav__list" data-md-scrollfix>






<li class="md-nav__item">
<a href="../first_crud/" class="md-nav__link">
First Crud
<a href="../function_first_crud/" class="md-nav__link">
Function Base
</a>
</li>









<li class="md-nav__item">
<a href="../class_first_crud/" class="md-nav__link">
Class Base
</a>
</li>




</ul>
</nav>
</li>





Expand Down
3 changes: 2 additions & 1 deletion benchmarks/panther/core/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

@API()
async def hello_world():
return Response(status_code=status.HTTP_200_OK)
data = {'detail': 'hello world'}
return Response(data=data, status_code=status.HTTP_200_OK)
2 changes: 1 addition & 1 deletion benchmarks/panther/core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@


urls = {
'': hello_world,
'/': hello_world,
}
4 changes: 4 additions & 0 deletions benchmarks/panther/logs/main.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
2023-08-05 00:26:06 | Base directory: /home/ali/dev/panther/docs/docs/benchmarks/panther
2023-08-05 00:26:06 | Configs loaded.
2023-08-05 00:32:11 | Base directory: /home/ali/dev/panther/docs/docs/benchmarks/panther
2023-08-05 00:32:11 | Configs loaded.
Empty file.
Empty file.
3 changes: 2 additions & 1 deletion benchmarks/panther/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
panther==1.7.13
panther==2.1.0
uvloop==0.17.0
2 changes: 1 addition & 1 deletion benchmarks/panther/run.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
panther run
uvicorn main:app --no-access-log
52 changes: 50 additions & 2 deletions caching/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,61 @@




<li class="md-nav__item md-nav__item--nested">




<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >



<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="0">
First Crud
<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
First Crud
</label>
<ul class="md-nav__list" data-md-scrollfix>






<li class="md-nav__item">
<a href="../first_crud/" class="md-nav__link">
First Crud
<a href="../function_first_crud/" class="md-nav__link">
Function Base
</a>
</li>









<li class="md-nav__item">
<a href="../class_first_crud/" class="md-nav__link">
Class Base
</a>
</li>




</ul>
</nav>
</li>





Expand Down
Loading

0 comments on commit 3a2b184

Please sign in to comment.