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.
Files changed (44) hide show
  1. tachyon_api/__init__.py +59 -0
  2. tachyon_api/app.py +699 -0
  3. tachyon_api/background.py +72 -0
  4. tachyon_api/cache.py +270 -0
  5. tachyon_api/cli/__init__.py +9 -0
  6. tachyon_api/cli/__main__.py +8 -0
  7. tachyon_api/cli/commands/__init__.py +5 -0
  8. tachyon_api/cli/commands/generate.py +190 -0
  9. tachyon_api/cli/commands/lint.py +186 -0
  10. tachyon_api/cli/commands/new.py +82 -0
  11. tachyon_api/cli/commands/openapi.py +128 -0
  12. tachyon_api/cli/main.py +69 -0
  13. tachyon_api/cli/templates/__init__.py +8 -0
  14. tachyon_api/cli/templates/project.py +194 -0
  15. tachyon_api/cli/templates/service.py +330 -0
  16. tachyon_api/core/__init__.py +12 -0
  17. tachyon_api/core/lifecycle.py +106 -0
  18. tachyon_api/core/websocket.py +92 -0
  19. tachyon_api/di.py +86 -0
  20. tachyon_api/exceptions.py +39 -0
  21. tachyon_api/files.py +14 -0
  22. tachyon_api/middlewares/__init__.py +4 -0
  23. tachyon_api/middlewares/core.py +40 -0
  24. tachyon_api/middlewares/cors.py +159 -0
  25. tachyon_api/middlewares/logger.py +123 -0
  26. tachyon_api/models.py +73 -0
  27. tachyon_api/openapi.py +419 -0
  28. tachyon_api/params.py +268 -0
  29. tachyon_api/processing/__init__.py +14 -0
  30. tachyon_api/processing/dependencies.py +172 -0
  31. tachyon_api/processing/parameters.py +484 -0
  32. tachyon_api/processing/response_processor.py +93 -0
  33. tachyon_api/responses.py +92 -0
  34. tachyon_api/router.py +161 -0
  35. tachyon_api/security.py +295 -0
  36. tachyon_api/testing.py +110 -0
  37. tachyon_api/utils/__init__.py +15 -0
  38. tachyon_api/utils/type_converter.py +113 -0
  39. tachyon_api/utils/type_utils.py +162 -0
  40. tachyon_api-0.9.0.dist-info/METADATA +291 -0
  41. tachyon_api-0.9.0.dist-info/RECORD +44 -0
  42. tachyon_api-0.9.0.dist-info/WHEEL +4 -0
  43. tachyon_api-0.9.0.dist-info/entry_points.txt +3 -0
  44. tachyon_api-0.9.0.dist-info/licenses/LICENSE +17 -0
@@ -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
+ ]