vayuapi 0.1.0__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.
- vayuapi/__init__.py +149 -0
- vayuapi/admin/__init__.py +8 -0
- vayuapi/admin/enhanced_panel.py +593 -0
- vayuapi/admin/panel.py +1880 -0
- vayuapi/ai/__init__.py +9 -0
- vayuapi/ai/langchain.py +332 -0
- vayuapi/ai/pydantic_ai.py +202 -0
- vayuapi/core/__init__.py +10 -0
- vayuapi/core/application.py +930 -0
- vayuapi/core/concurrency.py +715 -0
- vayuapi/core/decorators.py +49 -0
- vayuapi/core/dependencies.py +227 -0
- vayuapi/core/docs.py +245 -0
- vayuapi/core/exceptions.py +249 -0
- vayuapi/core/middleware.py +491 -0
- vayuapi/core/params.py +556 -0
- vayuapi/core/responses.py +73 -0
- vayuapi/core/routing.py +480 -0
- vayuapi/core/staticfiles.py +55 -0
- vayuapi/core/templating.py +126 -0
- vayuapi/core/uploads.py +335 -0
- vayuapi/core/websocket.py +141 -0
- vayuapi/middleware/__init__.py +33 -0
- vayuapi/orm/__init__.py +14 -0
- vayuapi/orm/async_orm.py +221 -0
- vayuapi/orm/database.py +252 -0
- vayuapi/orm/django_orm.py +178 -0
- vayuapi/scheduler/__init__.py +7 -0
- vayuapi/scheduler/tasks.py +224 -0
- vayuapi/security/__init__.py +35 -0
- vayuapi/security/auth.py +406 -0
- vayuapi/security/encryption.py +410 -0
- vayuapi/security/jwt.py +445 -0
- vayuapi/status.py +425 -0
- vayuapi/utils/__init__.py +5 -0
- vayuapi/utils/helpers.py +230 -0
- vayuapi-0.1.0.dist-info/METADATA +766 -0
- vayuapi-0.1.0.dist-info/RECORD +42 -0
- vayuapi-0.1.0.dist-info/WHEEL +5 -0
- vayuapi-0.1.0.dist-info/entry_points.txt +2 -0
- vayuapi-0.1.0.dist-info/licenses/LICENSE +21 -0
- vayuapi-0.1.0.dist-info/top_level.txt +1 -0
vayuapi/__init__.py
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
#__init__
|
|
2
|
+
"""
|
|
3
|
+
VayuAPI - The fastest Python async API framework
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
__version__ = "0.1.0"
|
|
7
|
+
__author__ = "VayuAPI Team"
|
|
8
|
+
__license__ = "MIT"
|
|
9
|
+
|
|
10
|
+
from vayuapi.core.application import VayuAPI
|
|
11
|
+
from vayuapi.core.responses import JSONResponse
|
|
12
|
+
from vayuapi.core.routing import Router, Route
|
|
13
|
+
from vayuapi.core.middleware import Middleware
|
|
14
|
+
from vayuapi.core.websocket import WebSocket, WebSocketManager
|
|
15
|
+
from vayuapi.core.templating import Jinja2Templates
|
|
16
|
+
from vayuapi.core.staticfiles import StaticFiles
|
|
17
|
+
|
|
18
|
+
# Parameter types
|
|
19
|
+
from vayuapi.core.params import (
|
|
20
|
+
Path,
|
|
21
|
+
Query,
|
|
22
|
+
Header,
|
|
23
|
+
Cookie,
|
|
24
|
+
Body,
|
|
25
|
+
Form,
|
|
26
|
+
File,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
# Dependency injection
|
|
30
|
+
from vayuapi.core.dependencies import Depends, Security
|
|
31
|
+
|
|
32
|
+
# File uploads
|
|
33
|
+
from vayuapi.core.uploads import UploadFile
|
|
34
|
+
|
|
35
|
+
# Native Concurrency & Low Overhead
|
|
36
|
+
from vayuapi.core.concurrency import (
|
|
37
|
+
run_in_thread,
|
|
38
|
+
run_in_process,
|
|
39
|
+
to_thread,
|
|
40
|
+
Semaphore,
|
|
41
|
+
RateLimiter,
|
|
42
|
+
ConnectionPool,
|
|
43
|
+
BackgroundTasks,
|
|
44
|
+
AsyncLRUCache,
|
|
45
|
+
BatchProcessor,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
# Exception handling
|
|
49
|
+
from vayuapi.core.exceptions import (
|
|
50
|
+
HTTPException,
|
|
51
|
+
RequestValidationError,
|
|
52
|
+
WebSocketException,
|
|
53
|
+
BadRequestException,
|
|
54
|
+
UnauthorizedException,
|
|
55
|
+
ForbiddenException,
|
|
56
|
+
NotFoundException,
|
|
57
|
+
MethodNotAllowedException,
|
|
58
|
+
ConflictException,
|
|
59
|
+
UnprocessableEntityException,
|
|
60
|
+
InternalServerErrorException,
|
|
61
|
+
ServiceUnavailableException,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# Request/Response types
|
|
65
|
+
from starlette.requests import Request
|
|
66
|
+
from starlette.responses import (
|
|
67
|
+
Response,
|
|
68
|
+
HTMLResponse,
|
|
69
|
+
StreamingResponse,
|
|
70
|
+
FileResponse,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
# Decorators
|
|
74
|
+
from vayuapi.core.decorators import (
|
|
75
|
+
route,
|
|
76
|
+
get,
|
|
77
|
+
post,
|
|
78
|
+
put,
|
|
79
|
+
delete,
|
|
80
|
+
patch,
|
|
81
|
+
websocket,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
# HTTP Status codes
|
|
85
|
+
from vayuapi import status
|
|
86
|
+
|
|
87
|
+
__all__ = [
|
|
88
|
+
"VayuAPI",
|
|
89
|
+
"Router",
|
|
90
|
+
"Route",
|
|
91
|
+
"Middleware",
|
|
92
|
+
"WebSocket",
|
|
93
|
+
"WebSocketManager",
|
|
94
|
+
"Jinja2Templates",
|
|
95
|
+
"StaticFiles",
|
|
96
|
+
"Request",
|
|
97
|
+
"Response",
|
|
98
|
+
"JSONResponse",
|
|
99
|
+
"HTMLResponse",
|
|
100
|
+
"StreamingResponse",
|
|
101
|
+
"FileResponse",
|
|
102
|
+
# Parameters
|
|
103
|
+
"Path",
|
|
104
|
+
"Query",
|
|
105
|
+
"Header",
|
|
106
|
+
"Cookie",
|
|
107
|
+
"Body",
|
|
108
|
+
"Form",
|
|
109
|
+
"File",
|
|
110
|
+
# Dependencies
|
|
111
|
+
"Depends",
|
|
112
|
+
"Security",
|
|
113
|
+
# File uploads
|
|
114
|
+
"UploadFile",
|
|
115
|
+
# Concurrency & Low Overhead
|
|
116
|
+
"run_in_thread",
|
|
117
|
+
"run_in_process",
|
|
118
|
+
"to_thread",
|
|
119
|
+
"Semaphore",
|
|
120
|
+
"RateLimiter",
|
|
121
|
+
"ConnectionPool",
|
|
122
|
+
"BackgroundTasks",
|
|
123
|
+
"AsyncLRUCache",
|
|
124
|
+
"BatchProcessor",
|
|
125
|
+
# Exceptions
|
|
126
|
+
"HTTPException",
|
|
127
|
+
"RequestValidationError",
|
|
128
|
+
"WebSocketException",
|
|
129
|
+
"BadRequestException",
|
|
130
|
+
"UnauthorizedException",
|
|
131
|
+
"ForbiddenException",
|
|
132
|
+
"NotFoundException",
|
|
133
|
+
"MethodNotAllowedException",
|
|
134
|
+
"ConflictException",
|
|
135
|
+
"UnprocessableEntityException",
|
|
136
|
+
"InternalServerErrorException",
|
|
137
|
+
"ServiceUnavailableException",
|
|
138
|
+
# Decorators
|
|
139
|
+
"route",
|
|
140
|
+
"get",
|
|
141
|
+
"post",
|
|
142
|
+
"put",
|
|
143
|
+
"delete",
|
|
144
|
+
"patch",
|
|
145
|
+
"websocket",
|
|
146
|
+
# Status codes
|
|
147
|
+
"status",
|
|
148
|
+
"__version__",
|
|
149
|
+
]
|