Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

ractogateway

Latest version: v0.3.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: impathak
2 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

ractogateway was last scanned on 29 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.3.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.3.0

Findings

Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

RactoGateway

One Python package for all production-grade LLM solutions.

RactoGateway is a unified AI SDK that gives you a single, clean interface to OpenAI, Google Gemini, Anthropic Claude, Ollama (local), and HuggingFace. It includes anti-hallucination prompting, strict Pydantic validation, streaming, tool calling, embeddings, fine-tuning, RAG, prebuilt workflows, and production operations in one package. No more provider lock-in. No more inconsistent response formats. No more fragile glue code.

PyPI version Python 3.10+ License: Apache 2.0 Documentation


Table of Contents

  • Why RactoGateway?
    • Use-Case Map
    • Why It Stands Different
    • Platform Architecture
    • End-to-End Delivery Pipeline
  • Installation
  • 5-Line Quick Start
  • RACTO Prompt Engine
  • Developer Kits
    • Ollama — Run Any Model Locally, Zero API Key
    • HuggingFace — Cloud Inference API + Local TGI / vLLM
  • Streaming
  • Async Support
  • Embeddings
  • Tool Calling
  • Validated Response Models
  • Multi-turn Conversations
  • Chain of Thoughts
  • Multimodal Attachments — Images & Files
  • Low-Level Gateway
  • Switching Providers
  • Fine-Tuning
  • RAG — Retrieval-Augmented Generation
    • PageIndexRAG — Vectorless BM25 RAG
  • Prebuilt Pipelines
    • SQLAnalystPipeline
    • ListClassifierPipeline
    • VideoProcessorPipeline
    • RactoMailKit
    • AgentPipeline
  • Performance & Cost Optimization
    • Exact-Match Cache
    • Semantic Cache
    • Cost-Aware Routing
    • Token Truncation
    • Batch Processing
    • Combining All Optimizations
  • MCP (Model Context Protocol)
  • Redis Infrastructure
    • RedisExactCache — Distributed Response Cache
    • RedisRateLimiter — Fleet-Wide Rate Limiting
    • RedisChatMemory — Sliding-Window Conversation History
    • Production Pattern — Combining Redis Utilities
  • Celery Task Queue
    • Never-Fail LLM Generation
    • Background Document Ingestion
    • Parallel Batch Inference
    • RetryConfig — Exponential Backoff Policy
  • Environment Variables

Why RactoGateway?

Every LLM provider has a different SDK, different request format, different response structure, and different tool-calling schema. Building production AI applications means writing glue code, parsing deeply nested objects, and manually stripping markdown fences from JSON responses.

RactoGateway solves this by providing:

  • RACTO Prompt Engine — a structured prompt framework (Role, Aim, Constraints, Tone, Output) that compiles into optimized, anti-hallucination system prompts
  • Five Developer Kits — gpt (OpenAI), gemini (Google), claude (Anthropic), local (Ollama), and hf (HuggingFace) — each with chat(), achat(), stream(), astream(), embed(), and aembed()
  • Strict Pydantic models for every input and output — no raw dicts anywhere
  • Automatic JSON parsing — responses are cleaned of markdown fences and auto-parsed
  • Unified tool calling — define tools once as Python functions, use them with any provider
  • Streaming with typed chunks — every StreamChunk has .delta.text, .accumulated_text, .is_final, .usage
  • Chain of Thoughts — ChatConfig(chain_of_thought=True) injects step-by-step reasoning into the system prompt across all five provider kits
  • RAG pipeline — ingest files, embed, store, retrieve, and generate answers with one class
  • PageIndexRAG — vectorless, page-level BM25 RAG; no embedding API, no vector store — pure Python decision-tree + Okapi BM25 retrieval
  • Four prebuilt pipelines — SQL analytics, list classification, agentic tool loops, and video intelligence workflows with sync/async APIs
  • RactoMailKit — grounded email intelligence with references, saved searches, memory, and V8 DAG helpers
  • Low-level Gateway — wraps any adapter for direct prompt execution without ChatConfig
  • Exact-match cache — SHA-256 LRU cache eliminates duplicate API calls with zero latency
  • Semantic cache — cosine-similarity cache returns cached answers for semantically equivalent queries
  • Cost-aware routing — model="auto" dynamically picks the cheapest model that can handle the request
  • Token truncation — automatically trims conversation history before hitting context limits
  • Batch processing — submit thousands of tasks at ~50 % cost via OpenAI & Anthropic Batch APIs
  • Redis distributed cache — drop-in RedisExactCache shares the response cache across all servers in a fleet
  • Redis rate limiter — fleet-wide token-budget enforcement per user ID, safe across concurrent processes
  • Redis chat memory — sliding-window conversation history backed by Redis Lists, survives rolling deployments
  • Celery task queue — background generation, retry-safe workflows, and parallel inference across worker nodes
Use-Case Map

RactoGateway is designed to cover the full lifecycle from prototype to production.\ These are the most common real-world use cases and the built-in modules used for each:

Use case What teams usually struggle with How RactoGateway solves it
Build a production chatbot/API endpoint Different SDKs, request formats, and response parsing rules Use one ChatConfig + one LLMResponse shape across OpenAI, Gemini, and Claude
Return strict JSON for backend automation Models wrap JSON in markdown fences or drift from schema RactoPrompt(output_format=YourModel) embeds JSON Schema and auto-cleans/parses JSON
Add tool calling to business workflows Provider-specific function-calling payloads and parsing Register Python functions once with ToolRegistry; execute tool calls through a unified interface
Add streaming UX in web/mobile apps Different stream event formats per provider Consume typed StreamChunk objects (delta, accumulated_text, is_final, usage)
Build retrieval-augmented assistants (RAG) Integrating readers, chunkers, embedders, stores, and retrieval prompts RactoRAG handles ingest -> embed -> store -> retrieve -> generate with pluggable components
Search and reason over mailbox history Email threads are fragmented, noisy, and hard to cite RactoMailKit adds grounded search, saved searches, memory, and typed references
Analyze PDFs/images alongside text prompts Multimodal payload formats vary by provider RactoFile + to_messages(provider=...) translates content blocks automatically
Keep costs predictable at scale Duplicate requests, overpowered model usage, token overruns Exact cache, semantic cache, cost-aware routing (model="auto"), and token truncation
Run resilient background AI jobs Long-running tasks fail in request threads RactoCeleryWorker supports retries, async ingestion, and parallel fan-out
Operate across many app servers In-memory cache/memory/rate limits do not scale horizontally Redis modules provide distributed cache, fleet-wide limiter, and shared chat memory
Plug into MCP ecosystems Extra glue to expose or consume tool servers Built-in MCP server/client/multi-client + agent loop for stdio/SSE flows
Fine-tune and ship provider-specific models Data formatting and job lifecycle management differ by platform Unified dataset APIs plus provider adapters for OpenAI, Gemini, and Anthropic fine-tuning
Why It Stands Different

Most libraries solve one layer (only chat calls, only RAG, or only prompting).\ RactoGateway is different because it combines provider abstraction, strict typing, and production infrastructure in one package.

Dimension Typical approach RactoGateway approach Practical impact
Provider support Rebuild code when switching SDKs Same mental model across OpenAI, Gemini, Claude Easier migration and multi-provider strategy
Prompt reliability Ad-hoc strings scattered across code Structured RACTO prompt model with guardrails More consistent outputs and fewer hallucinations
Output safety Manual json.loads and fragile parsing Typed response models + automatic JSON cleanup Less runtime parsing failure in APIs/jobs
Tool integration Vendor-specific tool schemas Single ToolRegistry and normalized ToolCallResult Faster implementation of tool-based assistants
End-to-end RAG Stitch multiple libraries together One orchestrator with swappable readers/stores/embedders Shorter path from idea to working RAG
Scale and operations Teams bolt infra on later Redis, Celery, batching, routing, and caching are first-class Better cost, reliability, and throughput from day one
Extensibility Hard to mix low-level and high-level APIs High-level kits plus low-level gateway in the same architecture Use simple APIs first, drop lower only where needed
Platform Architecture

RactoGateway is designed as one composable stack rather than disconnected helper utilities:

Layer Primary modules Responsibilities
Prompt + guardrails RactoPrompt, RactoFile Role/aim/constraints/tone/output control, anti-hallucination defaults, multimodal message composition
Provider abstraction openai_developer_kit, google_developer_kit, anthropic_developer_kit, ollama_developer_kit, huggingface_developer_kit Unified chat/stream/embed APIs across cloud and local providers
Tool runtime ToolRegistry, tool, runtime adapters Register Python callables once and execute tool calls through a normalized interface
Output safety response_model, strict validation Parse and validate model output into typed Pydantic objects
Retrieval RactoRAG, PageIndexRAG, readers/chunkers/embedders/stores Document ingestion, indexing, retrieval, and grounded answer generation
Mail intelligence ractogateway.mail Multi-connector email sync, grounded search, citations, memory, and V8 DAG helpers
Turn-key workflows pipelines package SQL analyst, list classifier, video processor, and ReAct-style agent pipelines
Cost + throughput cache, routing, truncation, batch Cache hits, auto model routing, context trimming, and bulk provider jobs
Ops + scale redis, celery, kafka, mcp, telemetry Distributed cache/memory/rate limits, background workers, event transport, MCP interoperability, observability
End-to-End Delivery Pipeline

A typical production flow with RactoGateway looks like this:

  1. Define behavior with RactoPrompt and optional output schema (BaseModel).
  2. Select provider at runtime using any developer kit without changing business logic.
  3. Execute request with typed config (ChatConfig, EmbeddingConfig) and optional streaming.
  4. Run tools when needed through ToolRegistry (uniform across providers).
  5. Ground answers with retrieval (RactoRAG or PageIndexRAG) when your use case depends on private docs.
  6. Promote common business tasks to a prebuilt workflow (SQLAnalystPipeline, ListClassifierPipeline, VideoProcessorPipeline, RactoMailKit, AgentPipeline).
  7. Add cost and reliability controls (ExactMatchCache, SemanticCache, CostAwareRouter, TokenTruncator, batch APIs).
  8. Scale safely with Redis infrastructure, Celery workers, Kafka streams, and MCP-compatible tool ecosystems.

Installation

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases ractogateway

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229