tachyon-api 0.9.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.
- tachyon_api/__init__.py +59 -0
- tachyon_api/app.py +699 -0
- tachyon_api/background.py +72 -0
- tachyon_api/cache.py +270 -0
- tachyon_api/cli/__init__.py +9 -0
- tachyon_api/cli/__main__.py +8 -0
- tachyon_api/cli/commands/__init__.py +5 -0
- tachyon_api/cli/commands/generate.py +190 -0
- tachyon_api/cli/commands/lint.py +186 -0
- tachyon_api/cli/commands/new.py +82 -0
- tachyon_api/cli/commands/openapi.py +128 -0
- tachyon_api/cli/main.py +69 -0
- tachyon_api/cli/templates/__init__.py +8 -0
- tachyon_api/cli/templates/project.py +194 -0
- tachyon_api/cli/templates/service.py +330 -0
- tachyon_api/core/__init__.py +12 -0
- tachyon_api/core/lifecycle.py +106 -0
- tachyon_api/core/websocket.py +92 -0
- tachyon_api/di.py +86 -0
- tachyon_api/exceptions.py +39 -0
- tachyon_api/files.py +14 -0
- tachyon_api/middlewares/__init__.py +4 -0
- tachyon_api/middlewares/core.py +40 -0
- tachyon_api/middlewares/cors.py +159 -0
- tachyon_api/middlewares/logger.py +123 -0
- tachyon_api/models.py +73 -0
- tachyon_api/openapi.py +419 -0
- tachyon_api/params.py +268 -0
- tachyon_api/processing/__init__.py +14 -0
- tachyon_api/processing/dependencies.py +172 -0
- tachyon_api/processing/parameters.py +484 -0
- tachyon_api/processing/response_processor.py +93 -0
- tachyon_api/responses.py +92 -0
- tachyon_api/router.py +161 -0
- tachyon_api/security.py +295 -0
- tachyon_api/testing.py +110 -0
- tachyon_api/utils/__init__.py +15 -0
- tachyon_api/utils/type_converter.py +113 -0
- tachyon_api/utils/type_utils.py +162 -0
- tachyon_api-0.9.0.dist-info/METADATA +291 -0
- tachyon_api-0.9.0.dist-info/RECORD +44 -0
- tachyon_api-0.9.0.dist-info/WHEEL +4 -0
- tachyon_api-0.9.0.dist-info/entry_points.txt +3 -0
- tachyon_api-0.9.0.dist-info/licenses/LICENSE +17 -0
tachyon_api/__init__.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Tachyon Web Framework
|
|
3
|
+
|
|
4
|
+
A lightweight, FastAPI-inspired web framework with built-in dependency injection,
|
|
5
|
+
automatic parameter validation, and high-performance JSON serialization.
|
|
6
|
+
|
|
7
|
+
Copyright (C) 2025 Juan Manuel Panozzo Zenere
|
|
8
|
+
|
|
9
|
+
This program is free software: you can redistribute it and/or modify
|
|
10
|
+
it under the terms of the GNU General Public License as published by
|
|
11
|
+
the Free Software Foundation, either version 3 of the License.
|
|
12
|
+
|
|
13
|
+
For more information, see the documentation and examples.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from .app import Tachyon
|
|
17
|
+
from .models import Struct
|
|
18
|
+
from .params import Query, Body, Path, Header, Cookie, Form, File
|
|
19
|
+
from .files import UploadFile
|
|
20
|
+
from .di import injectable, Depends
|
|
21
|
+
from .exceptions import HTTPException
|
|
22
|
+
from .router import Router
|
|
23
|
+
from .cache import (
|
|
24
|
+
cache,
|
|
25
|
+
CacheConfig,
|
|
26
|
+
create_cache_config,
|
|
27
|
+
set_cache_config,
|
|
28
|
+
get_cache_config,
|
|
29
|
+
InMemoryCacheBackend,
|
|
30
|
+
BaseCacheBackend,
|
|
31
|
+
RedisCacheBackend,
|
|
32
|
+
MemcachedCacheBackend,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
__all__ = [
|
|
36
|
+
"Tachyon",
|
|
37
|
+
"Struct",
|
|
38
|
+
"Query",
|
|
39
|
+
"Body",
|
|
40
|
+
"Path",
|
|
41
|
+
"Header",
|
|
42
|
+
"Cookie",
|
|
43
|
+
"Form",
|
|
44
|
+
"File",
|
|
45
|
+
"UploadFile",
|
|
46
|
+
"injectable",
|
|
47
|
+
"Depends",
|
|
48
|
+
"HTTPException",
|
|
49
|
+
"Router",
|
|
50
|
+
"cache",
|
|
51
|
+
"CacheConfig",
|
|
52
|
+
"create_cache_config",
|
|
53
|
+
"set_cache_config",
|
|
54
|
+
"get_cache_config",
|
|
55
|
+
"InMemoryCacheBackend",
|
|
56
|
+
"BaseCacheBackend",
|
|
57
|
+
"RedisCacheBackend",
|
|
58
|
+
"MemcachedCacheBackend",
|
|
59
|
+
]
|