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 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
+ ]
@@ -0,0 +1,8 @@
1
+ """
2
+ Admin panel for VayuAPI
3
+ Django-style auto-generated admin interface
4
+ """
5
+
6
+ from vayuapi.admin.panel import AdminPanel, ModelAdmin
7
+
8
+ __all__ = ["AdminPanel", "ModelAdmin"]