vorte 1.0.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 (160) hide show
  1. vorte/__init__.py +97 -0
  2. vorte/cli/__init__.py +5 -0
  3. vorte/cli/main.py +959 -0
  4. vorte/core/__init__.py +27 -0
  5. vorte/core/app.py +663 -0
  6. vorte/core/config.py +281 -0
  7. vorte/core/di.py +234 -0
  8. vorte/core/module.py +259 -0
  9. vorte/core/response.py +264 -0
  10. vorte/core/router.py +148 -0
  11. vorte/middleware/__init__.py +10 -0
  12. vorte/middleware/error_handler.py +28 -0
  13. vorte/middleware/request_timing.py +17 -0
  14. vorte/modules/__init__.py +47 -0
  15. vorte/modules/agents/__init__.py +98 -0
  16. vorte/modules/agents/agent.py +564 -0
  17. vorte/modules/agents/guardrails.py +147 -0
  18. vorte/modules/agents/memory.py +475 -0
  19. vorte/modules/agents/module.py +198 -0
  20. vorte/modules/agents/orchestrator.py +579 -0
  21. vorte/modules/agents/pipeline.py +650 -0
  22. vorte/modules/agents/prompts.py +105 -0
  23. vorte/modules/agents/rag.py +475 -0
  24. vorte/modules/agents/tools.py +504 -0
  25. vorte/modules/ai/__init__.py +109 -0
  26. vorte/modules/ai/client.py +586 -0
  27. vorte/modules/ai/cost_tracker.py +336 -0
  28. vorte/modules/ai/embeddings.py +251 -0
  29. vorte/modules/ai/module.py +245 -0
  30. vorte/modules/ai/providers/__init__.py +19 -0
  31. vorte/modules/ai/providers/anthropic.py +358 -0
  32. vorte/modules/ai/providers/base.py +85 -0
  33. vorte/modules/ai/providers/gemini.py +346 -0
  34. vorte/modules/ai/providers/mistral.py +296 -0
  35. vorte/modules/ai/providers/openai.py +308 -0
  36. vorte/modules/ai/providers/registry.py +196 -0
  37. vorte/modules/ai/schemas.py +295 -0
  38. vorte/modules/ai/streaming.py +320 -0
  39. vorte/modules/auth/__init__.py +54 -0
  40. vorte/modules/auth/api_keys.py +326 -0
  41. vorte/modules/auth/guards.py +336 -0
  42. vorte/modules/auth/jwt.py +380 -0
  43. vorte/modules/auth/mfa.py +390 -0
  44. vorte/modules/auth/models.py +343 -0
  45. vorte/modules/auth/module.py +304 -0
  46. vorte/modules/auth/oauth.py +223 -0
  47. vorte/modules/auth/rbac.py +442 -0
  48. vorte/modules/auth/schemas.py +315 -0
  49. vorte/modules/auth/sessions.py +351 -0
  50. vorte/modules/cache/__init__.py +30 -0
  51. vorte/modules/cache/cache.py +516 -0
  52. vorte/modules/cache/decorators.py +258 -0
  53. vorte/modules/cache/l1_memory.py +302 -0
  54. vorte/modules/cache/l2_redis.py +418 -0
  55. vorte/modules/cache/l3_cdn.py +318 -0
  56. vorte/modules/cache/l4_db.py +431 -0
  57. vorte/modules/cache/module.py +119 -0
  58. vorte/modules/dashboard/__init__.py +5 -0
  59. vorte/modules/dashboard/module.py +118 -0
  60. vorte/modules/dashboard/static/404.html +1 -0
  61. vorte/modules/dashboard/static/__next.__PAGE__.txt +9 -0
  62. vorte/modules/dashboard/static/__next._full.txt +23 -0
  63. vorte/modules/dashboard/static/__next._head.txt +6 -0
  64. vorte/modules/dashboard/static/__next._index.txt +8 -0
  65. vorte/modules/dashboard/static/__next._tree.txt +5 -0
  66. vorte/modules/dashboard/static/_next/static/chunks/0.k7yvsa6bmck.js +1 -0
  67. vorte/modules/dashboard/static/_next/static/chunks/03~yq9q893hmn.js +1 -0
  68. vorte/modules/dashboard/static/_next/static/chunks/0f0e3edvi~g7a.js +5 -0
  69. vorte/modules/dashboard/static/_next/static/chunks/0hidhenro5qz..js +1 -0
  70. vorte/modules/dashboard/static/_next/static/chunks/0k~u_jyibvj9b.js +31 -0
  71. vorte/modules/dashboard/static/_next/static/chunks/0neevhl_o1ozu.css +2 -0
  72. vorte/modules/dashboard/static/_next/static/chunks/0pjew48sfwghj.js +26 -0
  73. vorte/modules/dashboard/static/_next/static/chunks/0wnud6qnj8g2-.js +1 -0
  74. vorte/modules/dashboard/static/_next/static/chunks/0x37azccnzmn9.css +1 -0
  75. vorte/modules/dashboard/static/_next/static/chunks/0~_1x27hmki5g.js +1 -0
  76. vorte/modules/dashboard/static/_next/static/chunks/turbopack-0dsxmtxq9y3yu.js +1 -0
  77. vorte/modules/dashboard/static/_next/static/media/4fa387ec64143e14-s.0q3udbd2bu5yp.woff2 +0 -0
  78. vorte/modules/dashboard/static/_next/static/media/7178b3e590c64307-s.11.cyxs5p-0z~.woff2 +0 -0
  79. vorte/modules/dashboard/static/_next/static/media/797e433ab948586e-s.p.0.q-h669a_dqa.woff2 +0 -0
  80. vorte/modules/dashboard/static/_next/static/media/8a480f0b521d4e75-s.06d3mdzz5bre_.woff2 +0 -0
  81. vorte/modules/dashboard/static/_next/static/media/bbc41e54d2fcbd21-s.0gw~uztddq1df.woff2 +0 -0
  82. vorte/modules/dashboard/static/_next/static/media/caa3a2e1cccd8315-s.p.16t1db8_9y2o~.woff2 +0 -0
  83. vorte/modules/dashboard/static/_next/static/vorte-build/_buildManifest.js +11 -0
  84. vorte/modules/dashboard/static/_next/static/vorte-build/_clientMiddlewareManifest.js +1 -0
  85. vorte/modules/dashboard/static/_next/static/vorte-build/_ssgManifest.js +1 -0
  86. vorte/modules/dashboard/static/_not-found/__next._full.txt +19 -0
  87. vorte/modules/dashboard/static/_not-found/__next._head.txt +6 -0
  88. vorte/modules/dashboard/static/_not-found/__next._index.txt +8 -0
  89. vorte/modules/dashboard/static/_not-found/__next._not-found/__PAGE__.txt +5 -0
  90. vorte/modules/dashboard/static/_not-found/__next._not-found.txt +5 -0
  91. vorte/modules/dashboard/static/_not-found/__next._tree.txt +3 -0
  92. vorte/modules/dashboard/static/_not-found.html +1 -0
  93. vorte/modules/dashboard/static/_not-found.txt +19 -0
  94. vorte/modules/dashboard/static/api +1 -0
  95. vorte/modules/dashboard/static/index.html +1 -0
  96. vorte/modules/dashboard/static/index.txt +23 -0
  97. vorte/modules/dashboard/static/logo.svg +29 -0
  98. vorte/modules/dashboard/static/robots.txt +14 -0
  99. vorte/modules/database/__init__.py +94 -0
  100. vorte/modules/database/connection.py +275 -0
  101. vorte/modules/database/migrations.py +736 -0
  102. vorte/modules/database/model.py +436 -0
  103. vorte/modules/database/module.py +331 -0
  104. vorte/modules/database/pagination.py +303 -0
  105. vorte/modules/database/query.py +680 -0
  106. vorte/modules/database/seeders.py +299 -0
  107. vorte/modules/features/__init__.py +5 -0
  108. vorte/modules/features/module.py +157 -0
  109. vorte/modules/graphql/__init__.py +5 -0
  110. vorte/modules/graphql/module.py +239 -0
  111. vorte/modules/i18n/__init__.py +5 -0
  112. vorte/modules/i18n/module.py +153 -0
  113. vorte/modules/logging/__init__.py +5 -0
  114. vorte/modules/logging/module.py +173 -0
  115. vorte/modules/mailer/__init__.py +10 -0
  116. vorte/modules/mailer/mailer.py +444 -0
  117. vorte/modules/mailer/module.py +70 -0
  118. vorte/modules/mpesa/__init__.py +21 -0
  119. vorte/modules/mpesa/events.py +75 -0
  120. vorte/modules/mpesa/module.py +122 -0
  121. vorte/modules/mpesa/mpesa.py +418 -0
  122. vorte/modules/notifications/__init__.py +10 -0
  123. vorte/modules/notifications/module.py +70 -0
  124. vorte/modules/notifications/notifier.py +323 -0
  125. vorte/modules/payments/__init__.py +5 -0
  126. vorte/modules/payments/module.py +258 -0
  127. vorte/modules/queue/__init__.py +17 -0
  128. vorte/modules/queue/job.py +272 -0
  129. vorte/modules/queue/module.py +77 -0
  130. vorte/modules/queue/queue.py +222 -0
  131. vorte/modules/queue/scheduler.py +392 -0
  132. vorte/modules/queue/worker.py +296 -0
  133. vorte/modules/search/__init__.py +30 -0
  134. vorte/modules/search/module.py +156 -0
  135. vorte/modules/search/search.py +700 -0
  136. vorte/modules/security/__init__.py +5 -0
  137. vorte/modules/security/module.py +249 -0
  138. vorte/modules/sockets/__init__.py +8 -0
  139. vorte/modules/sockets/events.py +37 -0
  140. vorte/modules/sockets/manager.py +197 -0
  141. vorte/modules/sockets/module.py +54 -0
  142. vorte/modules/sockets/presence.py +5 -0
  143. vorte/modules/sockets/rooms.py +8 -0
  144. vorte/modules/storage/__init__.py +10 -0
  145. vorte/modules/storage/drivers/__init__.py +5 -0
  146. vorte/modules/storage/drivers/local.py +111 -0
  147. vorte/modules/storage/drivers/s3.py +158 -0
  148. vorte/modules/storage/module.py +106 -0
  149. vorte/modules/storage/storage.py +181 -0
  150. vorte/modules/tenancy/__init__.py +5 -0
  151. vorte/modules/tenancy/module.py +163 -0
  152. vorte/modules/webhooks/__init__.py +5 -0
  153. vorte/modules/webhooks/module.py +148 -0
  154. vorte/testing/__init__.py +234 -0
  155. vorte-1.0.0.dist-info/METADATA +133 -0
  156. vorte-1.0.0.dist-info/RECORD +160 -0
  157. vorte-1.0.0.dist-info/WHEEL +5 -0
  158. vorte-1.0.0.dist-info/entry_points.txt +2 -0
  159. vorte-1.0.0.dist-info/licenses/LICENSE +21 -0
  160. vorte-1.0.0.dist-info/top_level.txt +1 -0
vorte/__init__.py ADDED
@@ -0,0 +1,97 @@
1
+ """
2
+ Vorte Framework - The AI-First Python API Framework
3
+ =====================================================
4
+ Fast, intelligent, and modular. Built on FastAPI with batteries-included architecture,
5
+ multi-provider AI integration, and production-ready features.
6
+
7
+ Version: 1.0.0
8
+ License: MIT
9
+
10
+ Quick Start:
11
+ from vorte import Vorte
12
+
13
+ # Create app with all 21 modules auto-loaded
14
+ app = Vorte(auto_load=True)
15
+
16
+ # Or cherry-pick modules
17
+ app = Vorte()
18
+ app.register(AuthModule(), AIModule(), CacheModule())
19
+
20
+ import uvicorn
21
+ uvicorn.run(app, host="0.0.0.0", port=8000)
22
+ """
23
+
24
+ __version__ = "1.0.0"
25
+ __author__ = "Vorte Framework"
26
+ __license__ = "MIT"
27
+
28
+ from vorte.core.app import Vorte
29
+ from vorte.core.module import Module, ModuleRegistry, ModuleMeta, ModuleState, ModulePriority
30
+ from vorte.core.config import Settings, settings
31
+ from vorte.core.response import VorteResponse, success_response, error_response
32
+ from vorte.core.router import router
33
+ from vorte.core.di import Container, Depends, inject
34
+
35
+ # All 21 built-in modules — directly importable
36
+ from vorte.modules.auth import AuthModule
37
+ from vorte.modules.database import DatabaseModule
38
+ from vorte.modules.ai import AIModule
39
+ from vorte.modules.agents import AgentsModule
40
+ from vorte.modules.cache import CacheModule
41
+ from vorte.modules.queue import QueueModule
42
+ from vorte.modules.search import SearchModule
43
+ from vorte.modules.storage import StorageModule
44
+ from vorte.modules.mailer import MailerModule
45
+ from vorte.modules.notifications import NotificationsModule
46
+ from vorte.modules.mpesa import MpesaModule
47
+ from vorte.modules.payments import PaymentsModule
48
+ from vorte.modules.tenancy import MultiTenancyModule
49
+ from vorte.modules.i18n import I18nModule
50
+ from vorte.modules.security import SecurityModule
51
+ from vorte.modules.webhooks import WebhooksModule
52
+ from vorte.modules.features import FeaturesModule
53
+ from vorte.modules.graphql import GraphQLModule
54
+ from vorte.modules.logging import LoggingModule
55
+ from vorte.modules.sockets import SocketModule
56
+ from vorte.modules.dashboard import DashboardModule
57
+
58
+ __all__ = [
59
+ # Core
60
+ "Vorte",
61
+ "Module",
62
+ "ModuleRegistry",
63
+ "ModuleMeta",
64
+ "ModuleState",
65
+ "ModulePriority",
66
+ "Settings",
67
+ "settings",
68
+ "VorteResponse",
69
+ "success_response",
70
+ "error_response",
71
+ "router",
72
+ "Container",
73
+ "Depends",
74
+ "inject",
75
+ # Built-in Modules
76
+ "AuthModule",
77
+ "DatabaseModule",
78
+ "AIModule",
79
+ "AgentsModule",
80
+ "CacheModule",
81
+ "QueueModule",
82
+ "SearchModule",
83
+ "StorageModule",
84
+ "MailerModule",
85
+ "NotificationsModule",
86
+ "MpesaModule",
87
+ "PaymentsModule",
88
+ "MultiTenancyModule",
89
+ "I18nModule",
90
+ "SecurityModule",
91
+ "WebhooksModule",
92
+ "FeaturesModule",
93
+ "GraphQLModule",
94
+ "LoggingModule",
95
+ "SocketModule",
96
+ "DashboardModule",
97
+ ]
vorte/cli/__init__.py ADDED
@@ -0,0 +1,5 @@
1
+ """Vorte CLI - Command-line interface for Vorte Framework."""
2
+
3
+ from vorte.cli.main import cli
4
+
5
+ __all__ = ["cli"]