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.
- vorte/__init__.py +97 -0
- vorte/cli/__init__.py +5 -0
- vorte/cli/main.py +959 -0
- vorte/core/__init__.py +27 -0
- vorte/core/app.py +663 -0
- vorte/core/config.py +281 -0
- vorte/core/di.py +234 -0
- vorte/core/module.py +259 -0
- vorte/core/response.py +264 -0
- vorte/core/router.py +148 -0
- vorte/middleware/__init__.py +10 -0
- vorte/middleware/error_handler.py +28 -0
- vorte/middleware/request_timing.py +17 -0
- vorte/modules/__init__.py +47 -0
- vorte/modules/agents/__init__.py +98 -0
- vorte/modules/agents/agent.py +564 -0
- vorte/modules/agents/guardrails.py +147 -0
- vorte/modules/agents/memory.py +475 -0
- vorte/modules/agents/module.py +198 -0
- vorte/modules/agents/orchestrator.py +579 -0
- vorte/modules/agents/pipeline.py +650 -0
- vorte/modules/agents/prompts.py +105 -0
- vorte/modules/agents/rag.py +475 -0
- vorte/modules/agents/tools.py +504 -0
- vorte/modules/ai/__init__.py +109 -0
- vorte/modules/ai/client.py +586 -0
- vorte/modules/ai/cost_tracker.py +336 -0
- vorte/modules/ai/embeddings.py +251 -0
- vorte/modules/ai/module.py +245 -0
- vorte/modules/ai/providers/__init__.py +19 -0
- vorte/modules/ai/providers/anthropic.py +358 -0
- vorte/modules/ai/providers/base.py +85 -0
- vorte/modules/ai/providers/gemini.py +346 -0
- vorte/modules/ai/providers/mistral.py +296 -0
- vorte/modules/ai/providers/openai.py +308 -0
- vorte/modules/ai/providers/registry.py +196 -0
- vorte/modules/ai/schemas.py +295 -0
- vorte/modules/ai/streaming.py +320 -0
- vorte/modules/auth/__init__.py +54 -0
- vorte/modules/auth/api_keys.py +326 -0
- vorte/modules/auth/guards.py +336 -0
- vorte/modules/auth/jwt.py +380 -0
- vorte/modules/auth/mfa.py +390 -0
- vorte/modules/auth/models.py +343 -0
- vorte/modules/auth/module.py +304 -0
- vorte/modules/auth/oauth.py +223 -0
- vorte/modules/auth/rbac.py +442 -0
- vorte/modules/auth/schemas.py +315 -0
- vorte/modules/auth/sessions.py +351 -0
- vorte/modules/cache/__init__.py +30 -0
- vorte/modules/cache/cache.py +516 -0
- vorte/modules/cache/decorators.py +258 -0
- vorte/modules/cache/l1_memory.py +302 -0
- vorte/modules/cache/l2_redis.py +418 -0
- vorte/modules/cache/l3_cdn.py +318 -0
- vorte/modules/cache/l4_db.py +431 -0
- vorte/modules/cache/module.py +119 -0
- vorte/modules/dashboard/__init__.py +5 -0
- vorte/modules/dashboard/module.py +118 -0
- vorte/modules/dashboard/static/404.html +1 -0
- vorte/modules/dashboard/static/__next.__PAGE__.txt +9 -0
- vorte/modules/dashboard/static/__next._full.txt +23 -0
- vorte/modules/dashboard/static/__next._head.txt +6 -0
- vorte/modules/dashboard/static/__next._index.txt +8 -0
- vorte/modules/dashboard/static/__next._tree.txt +5 -0
- vorte/modules/dashboard/static/_next/static/chunks/0.k7yvsa6bmck.js +1 -0
- vorte/modules/dashboard/static/_next/static/chunks/03~yq9q893hmn.js +1 -0
- vorte/modules/dashboard/static/_next/static/chunks/0f0e3edvi~g7a.js +5 -0
- vorte/modules/dashboard/static/_next/static/chunks/0hidhenro5qz..js +1 -0
- vorte/modules/dashboard/static/_next/static/chunks/0k~u_jyibvj9b.js +31 -0
- vorte/modules/dashboard/static/_next/static/chunks/0neevhl_o1ozu.css +2 -0
- vorte/modules/dashboard/static/_next/static/chunks/0pjew48sfwghj.js +26 -0
- vorte/modules/dashboard/static/_next/static/chunks/0wnud6qnj8g2-.js +1 -0
- vorte/modules/dashboard/static/_next/static/chunks/0x37azccnzmn9.css +1 -0
- vorte/modules/dashboard/static/_next/static/chunks/0~_1x27hmki5g.js +1 -0
- vorte/modules/dashboard/static/_next/static/chunks/turbopack-0dsxmtxq9y3yu.js +1 -0
- vorte/modules/dashboard/static/_next/static/media/4fa387ec64143e14-s.0q3udbd2bu5yp.woff2 +0 -0
- vorte/modules/dashboard/static/_next/static/media/7178b3e590c64307-s.11.cyxs5p-0z~.woff2 +0 -0
- vorte/modules/dashboard/static/_next/static/media/797e433ab948586e-s.p.0.q-h669a_dqa.woff2 +0 -0
- vorte/modules/dashboard/static/_next/static/media/8a480f0b521d4e75-s.06d3mdzz5bre_.woff2 +0 -0
- vorte/modules/dashboard/static/_next/static/media/bbc41e54d2fcbd21-s.0gw~uztddq1df.woff2 +0 -0
- vorte/modules/dashboard/static/_next/static/media/caa3a2e1cccd8315-s.p.16t1db8_9y2o~.woff2 +0 -0
- vorte/modules/dashboard/static/_next/static/vorte-build/_buildManifest.js +11 -0
- vorte/modules/dashboard/static/_next/static/vorte-build/_clientMiddlewareManifest.js +1 -0
- vorte/modules/dashboard/static/_next/static/vorte-build/_ssgManifest.js +1 -0
- vorte/modules/dashboard/static/_not-found/__next._full.txt +19 -0
- vorte/modules/dashboard/static/_not-found/__next._head.txt +6 -0
- vorte/modules/dashboard/static/_not-found/__next._index.txt +8 -0
- vorte/modules/dashboard/static/_not-found/__next._not-found/__PAGE__.txt +5 -0
- vorte/modules/dashboard/static/_not-found/__next._not-found.txt +5 -0
- vorte/modules/dashboard/static/_not-found/__next._tree.txt +3 -0
- vorte/modules/dashboard/static/_not-found.html +1 -0
- vorte/modules/dashboard/static/_not-found.txt +19 -0
- vorte/modules/dashboard/static/api +1 -0
- vorte/modules/dashboard/static/index.html +1 -0
- vorte/modules/dashboard/static/index.txt +23 -0
- vorte/modules/dashboard/static/logo.svg +29 -0
- vorte/modules/dashboard/static/robots.txt +14 -0
- vorte/modules/database/__init__.py +94 -0
- vorte/modules/database/connection.py +275 -0
- vorte/modules/database/migrations.py +736 -0
- vorte/modules/database/model.py +436 -0
- vorte/modules/database/module.py +331 -0
- vorte/modules/database/pagination.py +303 -0
- vorte/modules/database/query.py +680 -0
- vorte/modules/database/seeders.py +299 -0
- vorte/modules/features/__init__.py +5 -0
- vorte/modules/features/module.py +157 -0
- vorte/modules/graphql/__init__.py +5 -0
- vorte/modules/graphql/module.py +239 -0
- vorte/modules/i18n/__init__.py +5 -0
- vorte/modules/i18n/module.py +153 -0
- vorte/modules/logging/__init__.py +5 -0
- vorte/modules/logging/module.py +173 -0
- vorte/modules/mailer/__init__.py +10 -0
- vorte/modules/mailer/mailer.py +444 -0
- vorte/modules/mailer/module.py +70 -0
- vorte/modules/mpesa/__init__.py +21 -0
- vorte/modules/mpesa/events.py +75 -0
- vorte/modules/mpesa/module.py +122 -0
- vorte/modules/mpesa/mpesa.py +418 -0
- vorte/modules/notifications/__init__.py +10 -0
- vorte/modules/notifications/module.py +70 -0
- vorte/modules/notifications/notifier.py +323 -0
- vorte/modules/payments/__init__.py +5 -0
- vorte/modules/payments/module.py +258 -0
- vorte/modules/queue/__init__.py +17 -0
- vorte/modules/queue/job.py +272 -0
- vorte/modules/queue/module.py +77 -0
- vorte/modules/queue/queue.py +222 -0
- vorte/modules/queue/scheduler.py +392 -0
- vorte/modules/queue/worker.py +296 -0
- vorte/modules/search/__init__.py +30 -0
- vorte/modules/search/module.py +156 -0
- vorte/modules/search/search.py +700 -0
- vorte/modules/security/__init__.py +5 -0
- vorte/modules/security/module.py +249 -0
- vorte/modules/sockets/__init__.py +8 -0
- vorte/modules/sockets/events.py +37 -0
- vorte/modules/sockets/manager.py +197 -0
- vorte/modules/sockets/module.py +54 -0
- vorte/modules/sockets/presence.py +5 -0
- vorte/modules/sockets/rooms.py +8 -0
- vorte/modules/storage/__init__.py +10 -0
- vorte/modules/storage/drivers/__init__.py +5 -0
- vorte/modules/storage/drivers/local.py +111 -0
- vorte/modules/storage/drivers/s3.py +158 -0
- vorte/modules/storage/module.py +106 -0
- vorte/modules/storage/storage.py +181 -0
- vorte/modules/tenancy/__init__.py +5 -0
- vorte/modules/tenancy/module.py +163 -0
- vorte/modules/webhooks/__init__.py +5 -0
- vorte/modules/webhooks/module.py +148 -0
- vorte/testing/__init__.py +234 -0
- vorte-1.0.0.dist-info/METADATA +133 -0
- vorte-1.0.0.dist-info/RECORD +160 -0
- vorte-1.0.0.dist-info/WHEEL +5 -0
- vorte-1.0.0.dist-info/entry_points.txt +2 -0
- vorte-1.0.0.dist-info/licenses/LICENSE +21 -0
- 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
|
+
]
|