turboapi 0.4.1__cp313-cp313-win_amd64.whl → 0.4.12__cp313-cp313-win_amd64.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.
- turboapi/main_app.py +5 -0
- turboapi/rust_integration.py +1 -1
- turboapi/{_rust.cp313-win_amd64.pyd → turbonet.cp313-win_amd64.pyd} +0 -0
- {turboapi-0.4.1.dist-info → turboapi-0.4.12.dist-info}/METADATA +1 -1
- {turboapi-0.4.1.dist-info → turboapi-0.4.12.dist-info}/RECORD +6 -6
- {turboapi-0.4.1.dist-info → turboapi-0.4.12.dist-info}/WHEEL +0 -0
turboapi/main_app.py
CHANGED
|
@@ -32,6 +32,11 @@ class TurboAPI(Router):
|
|
|
32
32
|
|
|
33
33
|
print(f"{ROCKET} TurboAPI application created: {title} v{version}")
|
|
34
34
|
|
|
35
|
+
@property
|
|
36
|
+
def routes(self):
|
|
37
|
+
"""Get all registered routes."""
|
|
38
|
+
return self.registry.get_routes() if hasattr(self, 'registry') else []
|
|
39
|
+
|
|
35
40
|
def add_middleware(self, middleware_class, **kwargs):
|
|
36
41
|
"""Add middleware to the application."""
|
|
37
42
|
self.middleware_stack.append((middleware_class, kwargs))
|
turboapi/rust_integration.py
CHANGED
|
@@ -12,7 +12,7 @@ from .request_handler import create_enhanced_handler, ResponseHandler
|
|
|
12
12
|
from .version_check import CHECK_MARK, CROSS_MARK, ROCKET
|
|
13
13
|
|
|
14
14
|
try:
|
|
15
|
-
import turbonet
|
|
15
|
+
from turboapi import turbonet
|
|
16
16
|
RUST_CORE_AVAILABLE = True
|
|
17
17
|
except ImportError:
|
|
18
18
|
RUST_CORE_AVAILABLE = False
|
|
Binary file
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
turboapi-0.4.
|
|
2
|
-
turboapi-0.4.
|
|
1
|
+
turboapi-0.4.12.dist-info/METADATA,sha256=IBt2GTnjmkVpSOn-PzMpMzXtwdB4jcqesqC2Bvj64_E,1482
|
|
2
|
+
turboapi-0.4.12.dist-info/WHEEL,sha256=TJQY77QRLvXq32tEs9ATmwKO6NAOtuKOAw50eyiSmWU,96
|
|
3
3
|
turboapi/__init__.py,sha256=r9Fphtu9ruHFUhSpBMAGxY5en2wvcnsE1nMp2DDRM6w,692
|
|
4
|
-
turboapi/_rust.cp313-win_amd64.pyd,sha256=C_Dwmlg87zZ4-8CXqiu99XMu6EQV6ovMiIZATO4c3Fo,3659264
|
|
5
4
|
turboapi/async_limiter.py,sha256=x2qkloPbg2YelDNUXKya2BwBTq5zVxDHxuaQspIgYBg,2416
|
|
6
5
|
turboapi/async_pool.py,sha256=UVm0A-0jIN4V43jY8a5XEU_L0SSyWGMV2bs5FiQGr2M,4489
|
|
7
6
|
turboapi/decorators.py,sha256=jjJrIXZ3y_yJ231ar24hS09OCDtTqmYA7arpIOcr2kk,1788
|
|
8
|
-
turboapi/main_app.py,sha256=
|
|
7
|
+
turboapi/main_app.py,sha256=_rH5xUahFvyqk8Y9O4rs7v5m1q4_AbkBHitg04KL6O4,11678
|
|
9
8
|
turboapi/middleware.py,sha256=iqtklH5_GMICuAmmxMBfaFSNZkR8wHSNbwhNscGe-pA,11200
|
|
10
9
|
turboapi/models.py,sha256=VCU68f9MGtDdFb4crsx2e0SHghICg8zjU8OumfdpZLQ,5363
|
|
11
10
|
turboapi/request_handler.py,sha256=KrN9d3r7bO8LUU68X6cXTtl3a2dCoRqmdWrjDW2V2qQ,8413
|
|
12
11
|
turboapi/routing.py,sha256=iCbty56a2J9qnCtxIHQtYf66ZoKVxgISxwCxYvGmgEs,7746
|
|
13
|
-
turboapi/rust_integration.py,sha256=
|
|
12
|
+
turboapi/rust_integration.py,sha256=AsdB14odDYHFcMNlKeef0Dh8uqE0lfEqcC4MjSld0tM,14930
|
|
14
13
|
turboapi/security.py,sha256=-XgwBhiqQZdfU7oKLHi-3xN_UwlKiQxpfSQ6kTA0ko8,17230
|
|
15
14
|
turboapi/server_integration.py,sha256=drUhhTasWgQfyhFiAaHKd987N3mnE0qkMab1ylmqd4c,18340
|
|
15
|
+
turboapi/turbonet.cp313-win_amd64.pyd,sha256=M6HuhjYQyUeuzyvYqViyuoyRzmQBIJ6JDls8uZAejms,3659264
|
|
16
16
|
turboapi/version_check.py,sha256=z3O1vIJsWmG_DO271ayYWSwaDfgpFnfJzYRYyowKYMc,9625
|
|
17
|
-
turboapi-0.4.
|
|
17
|
+
turboapi-0.4.12.dist-info/RECORD,,
|
|
File without changes
|