from orionis.mcp import Server
classOrionisServer(Server):
name = "Orionis Server" version = "1.0.0" instructions = "Describe the capabilities of this server." tools = ()
resources = ()
prompts = ()
from typing import ClassVar
from orionis.console import Argument
from orionis.console.base import BaseCommand
classGreetCommand(BaseCommand):
signature: str = "app:greet" description: str = "Greet a developer." arguments: ClassVar[list[Argument]] = [
Argument(
name_or_flags="name",
help="Developer name.",
),
]
asyncdefhandle(self) -> None:
self.success(f"Hello, {self.getArgument('name')}!")
from orionis.mail import Content, Envelope, Mailable
classWelcomeMail(Mailable):
defenvelope(self) -> Envelope:
returnEnvelope(subject="Welcome aboard")
defcontent(self) -> Content:
returnContent(
text="Your next great idea starts with Orionis.",
html="<h1>Welcome to Orionis.</h1>",
)
from orionis.database import Migration
from orionis.support.facades import Schema
classCreateSchedulerTasksTable(Migration):
asyncdefup(self) -> None:
asyncwith Schema.create("scheduler_tasks") as table:
table.unicode("id", 191).primary().comment("Job ID")
table.float("next_run_time").nullable().index().comment("Next Run Time")
table.largeBinary("job_state").comment("Job State")
table.comment("Table to store scheduled jobs (tasks).")
asyncdefdown(self) -> None:
await Schema.drop("scheduler_tasks")
from orionis.container.facades.facade import Facade
classMyService(Facade):
@classmethoddefgetFacadeAccessor(cls) -> str:
return"my-service"
<!-- Soon you can use Vue, React or Svelte with Orionis. --><scriptsetup>import { Link } from'@inertiajs/vue3';defineProps({ project: { type: Object, required: true } });</script><template><Link:href="project.url">{{ project.name }}</Link></template>
Creation command
$python -B reactor make:http-controller status --api
A complete foundation. An advantage at every layer.
From your first endpoint to background work and AI clients. Components designed to share contracts, configuration and application lifecycles.
HTTP / ASGI + RSGI01
Python meets Rust. Requests take flight.
One request API, two server interfaces. Granian supplies the Rust engine; Orionis brings compiled routing, middleware pipelines and streaming responses.
Rust
Orionis
Native interface to the Rust engine.Compatible with Python’s ASGI servers.Granian
Native Granian RSGI and ASGI compatibility
Typed routes and composable middleware
JSON, files, streams and content negotiation
Realtime / Typed hubs02
The moment it happens. Everywhere it matters.
Build collaborative experiences with bidirectional RPC, client events and streamed results. Typed hubs compile their invocation plans before the first connection.
Clients
Hub
Groups
@remoteJSONMessagePack
Explicit @remote methods and injected services
JSON or MessagePack over native WebSockets
Groups and worker-local broadcast with bounded fan-out
WebSocket / SSE03
Keep the conversation open.
Live dashboards, progress updates and long-lived connections belong in your framework, not in a separate stack.
WebSockets on ASGI and RSGI
Typed ServerSentEvent encoding
Streaming, disconnect handling and configurable budgets
Async Active Record / ORM04
Your data. A fluent language.
Express your domain through models, relationships and fluent queries. Engine-neutral plans keep application code independent of the SQL dialect.
PostgreSQL, MySQL, SQLite, Oracle, SQL Server and Amazon Redshift
Eager loading, pagination, scopes and soft deletes
Migrations, transactions and model factories
Cache / Five backends05
Do the work. Reuse the result.
One asynchronous API for cache-aside reads, batch operations and backend-aware locks. Stores initialize only when you need them.
Memory, file, Redis, Memcached and database
TTL, counters and remember resolvers
Source-aware caching for compiled artifacts
Queues / Reliable jobs06
Move the work off the request.
Dispatch serializable jobs, inject their dependencies and let durable workers handle retries. Every execution gets its own application scope.
Sync, database and Redis drivers
Delays, retry backoff, timeouts and leases
Primitive job payloads, without arbitrary unpickling
Native MCP / HTTP + STDIO07
Make your application agent-ready.
Expose your application to AI clients with typed tools, resources and prompts. The same compiled server definition works across transports.
Tools, resources and prompts as Python classes
Schema validation and dependency injection
HTTP, STDIO and an in-process testing client
Container / Providers / Facades08
Architecture that grows with you.
Type annotations connect your services. Explicit lifetimes and eager or deferred providers keep dependencies predictable from controllers to jobs and tests.
Singleton, transient and context-local scopes
Automatic callable and constructor injection
Replaceable contracts and lazy service facades
Async HTTP client09
Call external APIs from controllers and jobs.
Choose a named client with an allowed HTTPS origin. Orionis reuses connections and enforces deadlines, concurrency limits and body size limits.
Named profiles for external services
Structured searches with HTTP QUERY
Record calls and reject unexpected requests in tests with Http.fake()
MCP / Browser testing10
Orionis MCP Inspector
Explore tools, resources and prompts on a stateless MCP server from your browser. The Inspector connects directly to your HTTP endpoint.
Inspect schemas and run tests
Export reports locally
Allow the Inspector origin through CORS to connect
A request has a journey. A service has a lifetime. Compiled plans and explicit responsibilities keep your application clear as it grows.
01Request
02Route
03Middleware
04Controller
05Response
A scope for every execution
HTTP, jobs and commands keep dependencies local to their execution context.
Work prepared ahead of time
Routes, schemas and dispatch plans are compiled to reduce repeated work.
Replaceable contracts
Swap service implementations without mixing infrastructure and business logic.
bootstrap/app.pyOne application, one explicit configuration entry point.
The pieces that complete your product
And the rest? Already here.
Authentication, mail, files, testing and operational tools. The capabilities a real application needs, integrated into the same architecture.
Auth & permissions
Sessions, personal tokens, roles, permissions and resource policies.
Typed schemas
Compiled constraints, nested error collection and async validation rules.
Storage, anywhere
One async API for local files, S3, Azure Blob and Google Cloud Storage.
Expressive mail
Reusable mailables, templates, attachments and SMTP or custom transports.
Reactor CLI
Generate components, run workers and restore missing files with bootstrap:config. The development server reloads projects in paths with spaces on Windows and Linux.
Persistent scheduling
Schedule registered commands with the integrated scheduling service.
Server-rendered templates connected to routes, sessions and localization.
Lazy sessions
Server-side state, flash data and secure identifiers, activated on first write.
Hashing & encryption
Argon2id, bcrypt and application-keyed AES-CBC or AES-GCM encryption.
Logging & configuration
Lazy rotating log channels, typed environment values and validated configuration.
Built-in localization
JSON translations, fallback locales, replacements and plural forms.
HTTP BENCHMARK · 1.x
Performance you can verify.
All the power of Orionis. Open results to explore its HTTP performance.
Loading results…
Orionis—requests / second
— ms · mean latency
—
Requests per second · higher is better
Orionis (ASGI and RSGI) with Granian · FastAPI, Litestar and Starlette with Uvicorn.
——
P95 — ms · — errors
——
P95 — ms · — errors
——
P95 — ms · — errors
——
P95 — ms · — errors
——
P95 — ms · — errors
Date, environment and methodology
Measurements from this CI run; performance depends on environment and workload. Only successful results are shown. ASGI and RSGI are distinct configurations.
Your sponsorship gives us more time to build Orionis and write its documentation. You can support the project as an individual or through your organization.